From 0bf56f79f14d320538a23623c6d9d4840bd4740c Mon Sep 17 00:00:00 2001 From: snowyServer Date: Tue, 19 Mar 2024 22:06:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=AF=B9mar?= =?UTF-8?q?kdown=E7=9A=84=E7=AE=80=E5=8D=95=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/message.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 )