Merge PR #1727: feat(qq): send messages using markdown payload

feat(qq): send messages using markdown payload
This commit is contained in:
Xubin Ren 2026-03-08 23:40:30 +08:00 committed by GitHub
commit 51d113d5a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,16 +113,16 @@ class QQChannel(BaseChannel):
if msg_type == "group": if msg_type == "group":
await self._client.api.post_group_message( await self._client.api.post_group_message(
group_openid=msg.chat_id, group_openid=msg.chat_id,
msg_type=0, msg_type=2,
content=msg.content, markdown={"content": msg.content},
msg_id=msg_id, msg_id=msg_id,
msg_seq=self._msg_seq, msg_seq=self._msg_seq,
) )
else: else:
await self._client.api.post_c2c_message( await self._client.api.post_c2c_message(
openid=msg.chat_id, openid=msg.chat_id,
msg_type=0, msg_type=2,
content=msg.content, markdown={"content": msg.content},
msg_id=msg_id, msg_id=msg_id,
msg_seq=self._msg_seq, msg_seq=self._msg_seq,
) )