1
0
forked from bot/app

feat: 添加了对markdown的简单封装

This commit is contained in:
远野千束 2024-03-19 22:06:30 +08:00
parent edf390ff43
commit 0bf56f79f1

View File

@ -31,13 +31,14 @@ async def send_markdown(markdown: str, bot: T_Bot, message_type: str, session_id
) )
data = await bot.send_msg( data = await bot.send_msg(
message_type=message_type, message_type=message_type,
message=[{ message=[
"type": "longmsg", v11.MessageSegment(
"data": { type="longmsg",
data={
"id": forward_data["forward_id"] "id": forward_data["forward_id"]
} }
}], )
],
user_id=session_id if message_type == "private" else None, user_id=session_id if message_type == "private" else None,
group_id=session_id if message_type == "group" else None group_id=session_id if message_type == "group" else None
) )