diff --git a/src/utils/message.py b/src/utils/message.py index 200b57a3..84271cc8 100644 --- a/src/utils/message.py +++ b/src/utils/message.py @@ -31,13 +31,14 @@ async def send_markdown(markdown: str, bot: T_Bot, message_type: str, session_id ) data = await bot.send_msg( message_type=message_type, - message=[{ - "type": "longmsg", - "data": { + message=[ + v11.MessageSegment( + type="longmsg", + data={ "id": forward_data["forward_id"] } - }], - + ) + ], user_id=session_id if message_type == "private" else None, group_id=session_id if message_type == "group" else None )