-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: 主动消息撤回 #564
Labels
Milestone
Comments
YiriMirai使用了比较抽象的元编程方式对mah接口进行映射,目前估计问题是协议兼容性问题,待复现并查明 |
RockChinQ
added
IM: YiriMirai
mirai-api-http 协议适配器相关
待复现
需要测试以复现的issue,若您遇到相同问题,请提供更多的有价值的信息
labels
Sep 11, 2023
这个戳一戳问题,是mirai配置导致的,你得用支持接收戳一戳的协议(手机QQ应该可以),具体请到mirai的仓库去找 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
这是一个?
新功能
详细描述
我在QChatGPT\pkg\qqbot\sources\yirimirai.py中加入了如下适配器:
此注册器在python\Lib\site-packages\mirai\bot.pyi中有如下描述(第1009行开始):
他们的具体实现我在python\Lib\site-packages\miraicle\mirai.py中找到了疑似的方法(第330行开始):
但是并不能工作,具体的报错反馈如下
目测为mirai-api-http的问题。
此外,有一些事件并不能监听到。比如:好友头像戳一戳事件。这里我想说明一下,qq的戳一戳有三类,头像戳一戳无法监听(logging.debug也不行),然后才是class Poke,也就是正常的戳一戳动态表情,此类方法能被正常监听。但是戳一戳动态表情里面只有前三个能正常监听,后面的内容不知道是一个什么类,反正不是Poke,也不能被message_chain[1].type in ["Poke"]:这个代码捕捉,日志记录如下,几乎像一个文本了都:
正常戳一戳日志:
异常戳一戳日志:
但是除了头像戳一戳事件,别的戳一戳都能够通过Poke类正常发送。
这个戳一戳可能也和撤回消息有关?因为我手动用bot的QQ撤回也得不到返回值,按理说应该有一个Response的返回值,但反正logging.debug也监听不到bot的手动撤回消息事件
The text was updated successfully, but these errors were encountered: