Skip to content

Commit

Permalink
πŸ› Fix: MessageReference cannot be sent
Browse files Browse the repository at this point in the history
  • Loading branch information
ssttkkl committed Jan 27, 2025
1 parent 60e1849 commit 0915104
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions nonebot/adapters/qq/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,11 @@ async def post_c2c_messages(
embed.dict(exclude_none=True) if embed is not None else None
),
"image": image,
"message_reference": message_reference,
"message_reference": (
message_reference.dict(exclude_none=True)
if message_reference is not None
else None
),
"event_id": event_id,
"msg_id": msg_id,
"msg_seq": msg_seq,
Expand Down Expand Up @@ -1782,7 +1786,11 @@ async def post_group_messages(
embed.dict(exclude_none=True) if embed is not None else None
),
"image": image,
"message_reference": message_reference,
"message_reference": (
message_reference.dict(exclude_none=True)
if message_reference is not None
else None
),
"event_id": event_id,
"msg_id": msg_id,
"msg_seq": msg_seq,
Expand Down

0 comments on commit 0915104

Please sign in to comment.