botpy icon indicating copy to clipboard operation
botpy copied to clipboard

QQ频道机器人PythonSDK

Results 63 botpy issues
Sort by recently updated
recently updated
newest added

当我尝试监听私信消息并获取用户私信发送的图片时,我无法通过attachments获取图片的地址

- botpy 版本:1.2.3 发送群消息代码如下 ```python async def post_group_message( self, group_openid: str, msg_type: int = 0, content: str = None, embed: message.Embed = None, ark: message.Ark = None, message_reference: message.Reference =...

我开发了一款QQ机器人服务端小程序,在windows10上运行良好。但部署到CentOS7.6 下,运行时抛出下列异常: aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host [bots.qq.com:443](http://bots.qq.com:443/) ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)')] windows10与CentOS7.6下,安装的python版本都是3.8.6。 而且将 源码 ./examples/demo_api_permission.py,放到CentOS7.6下,也抛出上述异常。 请问怎么解决上述异常?

使用api.get_channels时提示“频道末对机器人末授权”。请问究竟是需要授权还是不需要授权? 另外,即使在机器人权限中把所有权限都打开,还是会出现此错误。 示例报错如下 [ERROR] (http.py:76)_handle_response [botpy] 接口请求异常,请求连接: https://api.sgroup.qq.com/guilds/10290137413427843821/channels, 错误代码: 400, 返回内容: {'message': '频道末对机器人末授权', 'code': 11264, 'err_code': 40012009, 'trace_id': '51b47340e42f1bb52031c3c14cdbe5b3'}, trace_id:51b47340e42f1bb52031c3c14cdbe5b3 Traceback (most recent call last): File "/Users/cubicstone31/Desktop/Crypto/lib/python3.12/site-packages/botpy/client.py", line 285, in...

因为在处理一些费时间的请求 所以超时了 日志:(http.py:192)request 请求超时

修改前的代码,如果在文本中出现了和指令相同的字符串,会直接执行指令,示例如下: ```python import botpy from botpy import logger from botpy.message import GroupMessage from botpy.ext.command_util import Commands @Commands("cmd_01") async def cmd_01(api: BotAPI, message: GroupMessage, params=None): await message.reply(content=f"/cmd_01 {params}") return True @Commands("cmd_02")...