Skip to content

Commit

Permalink
更新 bot.py
Browse files Browse the repository at this point in the history
在发送按钮时,msg_type没有正确地更改以至于无法正常发送,修改后可识别按钮并发送
  • Loading branch information
sxyubai committed Sep 23, 2024
1 parent 6ecd845 commit 5b5085c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot/adapters/qq/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ async def send_to_group(
msg_type = 4
elif kwargs.get("ark"):
msg_type = 3
elif kwargs.get("markdown"):
elif kwargs.get("markdown") or kwargs.get("keyboard"):
msg_type = 2
elif (
message["image"]
Expand Down

0 comments on commit 5b5085c

Please sign in to comment.