wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.62k stars 234 forks source link

🐛🐛 Bug Report: įž¤é‡Œæ‹ä¸€æ‹īŧŒä¸čƒŊæ•čŽˇå…ˇäŊ“č°æ“äŊœįš„ #248

Open biofer opened 3 years ago

biofer commented 3 years ago

įž¤é‡Œæ‹ä¸€æ‹īŧŒä¸čƒŊæ•čŽˇå…ˇäŊ“č°æ“äŊœįš„

在įž¤é‡Œæ‹ä¸€æ‹īŧŒčŋ”å›žåŽ†å˛čŽ°åŊ•æ˜¯ä¸‹éĸã€‚æ˛Ąæœ‰čŋ”å›žå…ˇäŊ“č°æ“äŊœįš„。

Reproduce your problem

    async def on_message(self, msg: Message):
        from_contact = msg.talker()
        text = msg.text()
        room = msg.room()

        if msg.type() == MessageType.MESSAGE_TYPE_RECALLED:
            print(from_contact)

Error info

wj-Mcat commented 3 years ago

This will depend on the type of token you use. If the token protocol doesn't implement function, python-wechaty will not return the action data to developer.

And more, 拍一拍 is not the normal chatbot action in IM, and it should appear in wechaty system.