Soulter / AstrBot

QQ、Telegram、微信 等多平台兼容的支持 LLM 聊天的机器人平台。支持自定义插件扩展。
GNU Affero General Public License v3.0
597 stars 60 forks source link

bug-不能发图片 #170

Closed xinghanxu666 closed 3 months ago

xinghanxu666 commented 3 months ago

log:

2024-07-07 14:17:44 [06:17:44| astrbot-core - INFO|general_utils.py:335]: 保存临时图片: temp/1720333064.jpg 2024-07-07 14:17:44 Traceback (most recent call last): 2024-07-07 14:17:44 File "/AstrBot/model/platform/qq_official.py", line 246, in reply_msg 2024-07-07 14:17:44 await self._send_wrapper(data) 2024-07-07 14:17:44 File "/AstrBot/model/platform/qq_official.py", line 287, in _send_wrapper 2024-07-07 14:17:44 await self.client.api.post_group_message(media=media, kwargs) 2024-07-07 14:17:44 TypeError: BotAPI.post_group_message() got an unexpected keyword argument 'file_image' 2024-07-07 14:17:44 2024-07-07 14:17:44 During handling of the above exception, another exception occurred: 2024-07-07 14:17:44 2024-07-07 14:17:44 Traceback (most recent call last): 2024-07-07 14:17:44 File "/AstrBot/model/platform/qq_official.py", line 262, in reply_msg 2024-07-07 14:17:44 await self._send_wrapper(data) 2024-07-07 14:17:44 File "/AstrBot/model/platform/qq_official.py", line 287, in _send_wrapper 2024-07-07 14:17:44 await self.client.api.post_group_message(media=media, kwargs) 2024-07-07 14:17:44 TypeError: BotAPI.post_group_message() got an unexpected keyword argument 'file_image' 2024-07-07 14:17:44 2024-07-07 14:17:44 During handling of the above exception, another exception occurred: 2024-07-07 14:17:44 2024-07-07 14:17:44 Traceback (most recent call last): 2024-07-07 14:17:44 File "/AstrBot/model/platform/qq_official.py", line 267, in reply_msg 2024-07-07 14:17:44 await self._send_wrapper(data) 2024-07-07 14:17:44 File "/AstrBot/model/platform/qq_official.py", line 287, in _send_wrapper 2024-07-07 14:17:44 await self.client.api.post_group_message(media=media, kwargs) 2024-07-07 14:17:44 TypeError: BotAPI.post_group_message() got an unexpected keyword argument 'file_image' 2024-07-07 14:17:44 2024-07-07 14:17:44 During handling of the above exception, another exception occurred: 2024-07-07 14:17:44 2024-07-07 14:17:44 Traceback (most recent call last): 2024-07-07 14:17:44 File "/usr/local/lib/python3.10/site-packages/botpy/client.py", line 285, in _run_event 2024-07-07 14:17:44 await coro(*args, kwargs) 2024-07-07 14:17:44 File "/AstrBot/model/platform/qq_official.py", line 36, in on_group_at_message_create 2024-07-07 14:17:44 await self.platform.handle_msg(abm) 2024-07-07 14:17:44 File "/AstrBot/model/platform/qq_official.py", line 146, in handle_msg 2024-07-07 14:17:44 await self.reply_msg(message, message_result.result_message) 2024-07-07 14:17:44 File "/AstrBot/model/platform/qq_official.py", line 273, in reply_msg 2024-07-07 14:17:44 await self._send_wrapper(data) 2024-07-07 14:17:44 File "/AstrBot/model/platform/qq_official.py", line 287, in _send_wrapper 2024-07-07 14:17:44 await self.client.api.post_group_message(media=media, **kwargs) 2024-07-07 14:17:44 TypeError: BotAPI.post_group_message() got an unexpected keyword argument 'file_image'