Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/nonebot/nonebot2
/ image
Method
image
tests/utils.py:42–43 ·
view source on GitHub ↗
(url: str)
Source
from the content-addressed store, hash-verified
40
41
@staticmethod
42
def
image(url: str):
43
return
FakeMessageSegment(
"image"
, {
"url"
: url})
44
45
@staticmethod
46
def
nested(content:
"FakeMessage"
):
Callers
9
test_echo
Function · 0.80
test_trie
Function · 0.80
test_shell_command
Function · 0.80
test_rich_template_message
Function · 0.80
test_message_getitem
Function · 0.80
test_message_contains
Function · 0.80
test_message_only
Function · 0.80
test_message_include
Function · 0.80
test_message_exclude
Function · 0.80
Calls
1
FakeMessageSegment
Class · 0.85
Tested by
9
test_echo
Function · 0.64
test_trie
Function · 0.64
test_shell_command
Function · 0.64
test_rich_template_message
Function · 0.64
test_message_getitem
Function · 0.64
test_message_contains
Function · 0.64
test_message_only
Function · 0.64
test_message_include
Function · 0.64
test_message_exclude
Function · 0.64