We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
需要将 type: 'revoke' 的类型转换为RECALL类型的消息。但是在 onMessageRevokeEveryone 事件中,newMsg 和 revokedMsg 的id相同,导致无法判别出具体撤回的是哪条消息。
onMessageRevokeEveryone
18: 15: 07 SILL PuppetWhatsApp onMessageRevokeEveryone( newMsg: { "id": { "fromMe": true, "remote": "[email protected]", "id": "3EB0063979CAD97A2FD5", "_serialized": "[email protected]_3EB0063979CAD97A2FD5" }, "ack": -1, "hasMedia": false, "body": "", "type": "revoked", "timestamp": 1644228906, "from": "[email protected]", "to": "[email protected]", "deviceType": "web", "isForwarded": false, "forwardingScore": 0, "isStatus": false, "isStarred": false, "fromMe": true, "hasQuotedMsg": false, "vCards": [], "mentionedIds": [], "isGif": false, "isEphemeral": false, "links": [] }), revokedMsg: { "id": { "fromMe": true, "remote": "[email protected]", "id": "3EB0063979CAD97A2FD5", "_serialized": "[email protected]_3EB0063979CAD97A2FD5" }, "ack": -1, "hasMedia": false, "body": "dong", "type": "chat", "timestamp": 1644228906, "from": "[email protected]", "to": "[email protected]", "deviceType": "web", "isForwarded": false, "forwardingScore": 0, "isStatus": false, "isStarred": false, "fromMe": true, "hasQuotedMsg": false, "vCards": [], "mentionedIds": [], "isGif": false, "isEphemeral": false, "links": [] } 18: 15: 09 SILL PuppetWhatsApp onMessageAck({ "id": { "fromMe": true, "remote": "[email protected]", "id": "3EB0063979CAD97A2FD5", "_serialized": "[email protected]_3EB0063979CAD97A2FD5" }, "ack": 2, "hasMedia": false, "body": "", "type": "revoked", "timestamp": 1644228906, "from": "[email protected]", "to": "[email protected]", "deviceType": "web", "isForwarded": false, "forwardingScore": 0, "isStatus": false, "isStarred": false, "fromMe": true, "hasQuotedMsg": false, "vCards": [], "mentionedIds": [], "isGif": false, "isEphemeral": false, "links": [] }) 18: 15: 09 VERB FlashStore get(3 EB0063979CAD97A2FD5) 18: 15: 09 VERB FlashStore set(3 EB0063979CAD97A2FD5, [object Object]) value type: object 18: 15: 09 INFO PuppetWhatsApp onMessage({ "messageId": "3EB0063979CAD97A2FD5" }) 18: 15: 09 VERB Puppet messagePayload(3 EB0063979CAD97A2FD5) 18: 15: 09 SILL Puppet messagePayloadCache(3 EB0063979CAD97A2FD5) cache MISS 18: 15: 09 INFO PuppetWhatsApp messageRawPayload(3 EB0063979CAD97A2FD5)
18: 56: 25 SILL PuppetWhatsApp onMessageCreate({ "id": { "fromMe": true, "remote": "[email protected]", "id": "F9977B27F97B119F3F9B5E7298986114", "_serialized": "[email protected]_F9977B27F97B119F3F9B5E7298986114" }, "ack": 0, "hasMedia": false, "body": "www.baidu.com", "type": "chat", "timestamp": 1644231385, "from": "[email protected]", "to": "[email protected]", "deviceType": "android", "isForwarded": false, "forwardingScore": 0, "isStatus": false, "isStarred": false, "fromMe": true, "hasQuotedMsg": false, "vCards": [], "mentionedIds": [], "isGif": false, "isEphemeral": false, "title": "百度一下,你就知道", "description": "全球领先的中文搜索引擎、致力于让网民更便捷地获取信息,找到所求。百度超过千亿的中文网页数据库,可以瞬间找到相关的搜索结果。", "links": [{ "link": "http://www.baidu.com", "isSuspicious": false }] }) 18: 56: 27 SILL PuppetWhatsApp onMessageRevokeEveryone( newMsg: { "id": { "fromMe": true, "remote": "[email protected]", "id": "3EB0296B7264E0E99467", "_serialized": "[email protected]_3EB0296B7264E0E99467" }, "ack": 0, "hasMedia": false, "body": "", "type": "revoked", "timestamp": 1644231385, "from": "[email protected]", "to": "[email protected]", "deviceType": "web", "isForwarded": false, "forwardingScore": 0, "isStatus": false, "isStarred": false, "fromMe": true, "hasQuotedMsg": false, "vCards": [], "mentionedIds": [], "isGif": false, "isEphemeral": false, "links": [{ "link": "http://www.baidu.com", "isSuspicious": false }] }), revokedMsg: { "id": { "fromMe": true, "remote": "[email protected]", "id": "3EB0296B7264E0E99467", "_serialized": "[email protected]_3EB0296B7264E0E99467" }, "ack": 0, "hasMedia": false, "body": "www.baidu.com", "type": "chat", "timestamp": 1644231385, "from": "[email protected]", "to": "[email protected]", "deviceType": "web", "isForwarded": false, "forwardingScore": 0, "isStatus": false, "isStarred": false, "fromMe": true, "hasQuotedMsg": false, "vCards": [], "mentionedIds": [], "isGif": false, "isEphemeral": false, "title": "百度一下,你就知道", "description": "全球领先的中文搜索引擎、致力于让网民更便捷地获取信息,找到所求。百度超过千亿的中文网页数据库,可以瞬间找到相关的搜索结果。", "links": [{ "link": "http://www.baidu.com", "isSuspicious": false }] } 18: 56: 28 SILL PuppetWhatsApp onMessageAck({ "id": { "fromMe": true, "remote": "[email protected]", "id": "3EB0296B7264E0E99467", "_serialized": "[email protected]_3EB0296B7264E0E99467" }, "ack": 2, "hasMedia": false, "body": "", "type": "revoked", "timestamp": 1644231385, "from": "[email protected]", "to": "[email protected]", "deviceType": "web", "isForwarded": false, "forwardingScore": 0, "isStatus": false, "isStarred": false, "fromMe": true, "hasQuotedMsg": false, "vCards": [], "mentionedIds": [], "isGif": false, "isEphemeral": false, "links": [{ "link": "http://www.baidu.com", "isSuspicious": false }] })
The text was updated successfully, but these errors were encountered:
Related issue: pedroslopez/whatsapp-web.js#1178
Sorry, something went wrong.
No branches or pull requests
问题
需要将 type: 'revoke' 的类型转换为RECALL类型的消息。但是在
onMessageRevokeEveryone
事件中,newMsg 和 revokedMsg 的id相同,导致无法判别出具体撤回的是哪条消息。案例一
案例二
The text was updated successfully, but these errors were encountered: