mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-27 16:04:21 +00:00
@@ -31,13 +31,15 @@ class AiocqhttpMessageConverter(adapter.MessageConverter):
|
|||||||
msg_time = msg.time
|
msg_time = msg.time
|
||||||
elif type(msg) is mirai.Image:
|
elif type(msg) is mirai.Image:
|
||||||
arg = ''
|
arg = ''
|
||||||
|
if msg.base64:
|
||||||
if msg.url:
|
arg = msg.base64
|
||||||
|
msg_list.append(aiocqhttp.MessageSegment.image(f"base64://{arg}"))
|
||||||
|
elif msg.url:
|
||||||
arg = msg.url
|
arg = msg.url
|
||||||
|
msg_list.append(aiocqhttp.MessageSegment.image(arg))
|
||||||
elif msg.path:
|
elif msg.path:
|
||||||
arg = msg.path
|
arg = msg.path
|
||||||
|
msg_list.append(aiocqhttp.MessageSegment.image(arg))
|
||||||
msg_list.append(aiocqhttp.MessageSegment.image(arg))
|
|
||||||
elif type(msg) is mirai.At:
|
elif type(msg) is mirai.At:
|
||||||
msg_list.append(aiocqhttp.MessageSegment.at(msg.target))
|
msg_list.append(aiocqhttp.MessageSegment.at(msg.target))
|
||||||
elif type(msg) is mirai.AtAll:
|
elif type(msg) is mirai.AtAll:
|
||||||
|
|||||||
Reference in New Issue
Block a user