mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 04:07:23 +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(
|
||||
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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user