Open KAWATAAAAAA opened 1 year ago
1. Versions
- What is your wechaty version? Answer: "@juzi/wechaty": "1.0.47"
- What is your wechaty-puppet-padplus version? Answer: "@juzi/wechaty-puppet-padplus": "1.2.4",
- What is your node version? (run
node --version
) Answer: v16.17.0- What os are you using Answer: Mac Os
2. Describe the bug
当我使用
await room.say()
的时候,即使群不存在,或者机器人不在群中,say方法返回的Promise依然是 Promise,这使得我无法得到消息是否正确交付的状态
3. To Reproduce
4. Expected behavior
Promise应当为 ==> rejected
5. Actual behavior
Promise依然是 Promise,
6. Full Output Logs
请关注日志关键词
areyousure
输出Show Logs
7. Additional context
如何创造一个不存在的群,或者说如何获取到一个bot不在群中的群,参考bug:
底层无法检测群聊ID是否正确或者该群聊是否存在,只能通过超时来判断。
解决这个问题主要还是得通过 room.has(bot)
这个方法来判断。
那么这个问题是不是只要等待room.has() 方法的bug修复了,就能解决了
是的发自我的 iPhone在 2023年4月1日,09:11,KAWATAAAAAA @.***> 写道:
那么这个问题是不是只要等待room.has() 方法的bug修复了,就能解决了
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
1. Versions
What is your wechaty version? Answer: "@juzi/wechaty": "1.0.47"
What is your wechaty-puppet-padplus version? Answer: "@juzi/wechaty-puppet-padplus": "1.2.4",
What is your node version? (run
node --version
) Answer: v16.17.0What os are you using Answer: Mac Os
2. Describe the bug
当我使用,
await room.say()
的时候,即使群不存在,或者机器人不在群中,say方法返回的Promise依然是 Promise这使得我无法得到消息是否正确交付的状态
3. To Reproduce
4. Expected behavior
Promise应当为 ==> rejected
5. Actual behavior
Promise依然是 Promise,
6. Full Output Logs
请关注日志关键词
areyousure
输出Show Logs
```shell 开始推送 1511635223 2023-03-27 17:52:01 17:52:01 SILL Room find({"id":"49169751155@chatroom"}) 17:52:01 SILL Room ready() 17:52:01 SILL PuppetLoginMixin get currentUserId() 17:52:01 SILL PuppetPadplus roomMemberList(49169751155@chatroom) [2023-03-27T17:52:01.126+08:00] [INFO] [85279] [] [wuyuweideMacBook-Pro.local] [172.21.144.49] [wechaty-robot] [] [] [] [] [8ms , requestInfo:{"method":"POST","url":"/robot/pushTask","host":"127.0.0.1:3000"}] ## '' areyousure false 17:52:01 VERB Room say(FileBox#Url<1817638618.png>, ) 17:52:01 SILL PuppetPadplus messageSendFile(49169751155@chatroom) 17:52:01 SILL PuppetPadplus file url : https://front-xps-cdn.xsyx.xyz/custom/day360/2023/03/23/1817638618.png 17:52:01 SILL PuppetPadplus fileType image/png 17:52:01 SILL PuppetLoginMixin get currentUserId() 17:52:01 VERB PadplusManager sendFile() 17:52:01 VERB PadplusMessage sendFile() 17:52:01 SILL RequestClient request() 17:52:01 SILL DedupeApi dedupe() no need to dedupe api SEND_FILE. 17:52:01 SILL GRPC_GATEWAY GRPC Request ApiType: SEND_FILE 17:52:02 SILL GRPC_GATEWAY throttleQueue emit heartbeat. 17:52:02 VERB Watchdog7. Additional context