mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-25 00:25:04 +08:00
feat: 添加了对markdown的简单封装
This commit is contained in:
parent
edf390ff43
commit
0bf56f79f1
@ -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
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user