MCPcopy
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_echoFunction · 0.80
test_trieFunction · 0.80
test_shell_commandFunction · 0.80
test_message_getitemFunction · 0.80
test_message_containsFunction · 0.80
test_message_onlyFunction · 0.80
test_message_includeFunction · 0.80
test_message_excludeFunction · 0.80

Calls 1

FakeMessageSegmentClass · 0.85

Tested by 9

test_echoFunction · 0.64
test_trieFunction · 0.64
test_shell_commandFunction · 0.64
test_message_getitemFunction · 0.64
test_message_containsFunction · 0.64
test_message_onlyFunction · 0.64
test_message_includeFunction · 0.64
test_message_excludeFunction · 0.64