Skip to content

Commit

Permalink
fix: 修复画图报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed Feb 6, 2024
1 parent 4d34585 commit 641e64f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions model/platform/qq_official.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ def reply_msg(self,
'message_reference': msg_ref
}
if is_group:
data['channel_id'] = message.channel_id
data['channel_id'] = str(message.channel_id)
else:
data['guild_id'] = message.guild_id
data['guild_id'] = str(message.guild_id)
if image_path != '':
data['file_image'] = image_path

Expand Down Expand Up @@ -207,6 +207,7 @@ def reply_msg(self,
self._send_wrapper(**data)

def _send_wrapper(self, **kwargs):
print(kwargs)
if 'channel_id' in kwargs:
asyncio.run_coroutine_threadsafe(self.client.api.post_message(**kwargs), self.loop).result()
else:
Expand Down

0 comments on commit 641e64f

Please sign in to comment.