generated from wechaty/puppet-mock
-
Notifications
You must be signed in to change notification settings - Fork 17
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
关于 WhatsApp 动态 #368
Labels
bug
Something isn't working
Comments
关于动态的回复以引用消息的形式发送至对方。
bot对他人动态的回复{
"_data": {
"id": {
"fromMe": true,
"remote": "[email protected]",
"id": "3A850D96A64F3C6DB2C8",
"_serialized": "[email protected]_3A850D96A64F3C6DB2C8"
},
"body": "别烦别烦",
"type": "chat",
"t": 1653392634,
"notifyName": "苏畅",
"from": "[email protected]",
"to": "[email protected]",
"self": "in",
"ack": 1,
"isNewMsg": true,
"star": false,
"recvFresh": true,
"isFromTemplate": false,
"thumbnail": "",
"broadcast": false,
"quotedMsg": {
"type": "chat",
"body": "好烦呀",
"thumbnail": "",
"backgroundColor": 4287539263,
"font": 0
},
"quotedStanzaID": "3A28CDB9BA235693F364",
"quotedRemoteJid": "status@broadcast",
"quotedParticipant": "[email protected]",
"mentionedJidList": [],
"isVcardOverMmsDocument": false,
"hasReaction": false,
"ephemeralOutOfSync": false,
"productHeaderImageRejected": false,
"lastPlaybackProgress": 0,
"isDynamicReplyButtonsMsg": false,
"isMdHistoryMsg": false,
"requiresDirectConnection": false,
"pttForwardedFeaturesEnabled": true,
"isEphemeral": false,
"isStatusV3": false,
"links": []
},
"id": {
"fromMe": true,
"remote": "[email protected]",
"id": "3A850D96A64F3C6DB2C8",
"_serialized": "[email protected]_3A850D96A64F3C6DB2C8"
},
"ack": 1,
"hasMedia": false,
"body": "别烦别烦",
"type": "chat",
"timestamp": 1653392634,
"from": "[email protected]",
"to": "[email protected]",
"deviceType": "ios",
"forwardingScore": 0,
"isStatus": false,
"isStarred": false,
"broadcast": false,
"fromMe": true,
"hasQuotedMsg": true,
"vCards": [],
"mentionedIds": [],
"isGif": false,
"isEphemeral": false,
"links": []
} 他人对bot的动态回复{
"_data": {
"id": {
"fromMe": false,
"remote": "[email protected]",
"id": "3A4B7256DDE94DB2A7EA",
"_serialized": "[email protected]_3A4B7256DDE94DB2A7EA"
},
"body": "这是啥",
"type": "chat",
"t": 1653392783,
"notifyName": "测试9号",
"from": "[email protected]",
"to": "[email protected]",
"self": "in",
"ack": 1,
"isNewMsg": true,
"star": false,
"recvFresh": true,
"isFromTemplate": false,
"thumbnail": "",
"broadcast": false,
"quotedMsg": {
"type": "chat",
"body": "新的动态",
"thumbnail": "",
"backgroundColor": 4285997368,
"font": 2
},
"quotedStanzaID": "3A86D6CAAC444BAB2719",
"quotedRemoteJid": "status@broadcast",
"quotedParticipant": "[email protected]",
"mentionedJidList": [],
"isVcardOverMmsDocument": false,
"hasReaction": false,
"ephemeralOutOfSync": false,
"productHeaderImageRejected": false,
"lastPlaybackProgress": 0,
"isDynamicReplyButtonsMsg": false,
"isMdHistoryMsg": false,
"requiresDirectConnection": false,
"pttForwardedFeaturesEnabled": true,
"isEphemeral": false,
"isStatusV3": false,
"links": []
},
"id": {
"fromMe": false,
"remote": "[email protected]",
"id": "3A4B7256DDE94DB2A7EA",
"_serialized": "[email protected]_3A4B7256DDE94DB2A7EA"
},
"ack": 1,
"hasMedia": false,
"body": "这是啥",
"type": "chat",
"timestamp": 1653392783,
"from": "[email protected]",
"to": "[email protected]",
"deviceType": "ios",
"forwardingScore": 0,
"isStatus": false,
"isStarred": false,
"broadcast": false,
"fromMe": false,
"hasQuotedMsg": true,
"vCards": [],
"mentionedIds": [],
"isGif": false,
"isEphemeral": false,
"links": []
} |
关于动态的撤回新接收到的消息{
"_data": {
"id": {
"fromMe": true,
"remote": "status@broadcast",
"id": "3AFC180F08EBFF68DBFD",
"participant": "[email protected]",
"_serialized": "true_status@[email protected]"
},
"type": "revoked",
"subtype": "sender",
"t": 1653377488,
"notifyName": "",
"from": "[email protected]",
"to": "status@broadcast",
"author": "[email protected]",
"self": "in",
"ack": 1,
"isNewMsg": true,
"star": false,
"recvFresh": true,
"isFromTemplate": false,
"broadcast": false,
"isVcardOverMmsDocument": false,
"revokeSender": "[email protected]",
"backgroundColor": 4287391886,
"font": 0,
"isForwarded": false,
"hasReaction": false,
"productHeaderImageRejected": false,
"lastPlaybackProgress": 0,
"isDynamicReplyButtonsMsg": false,
"isMdHistoryMsg": false,
"requiresDirectConnection": false,
"pttForwardedFeaturesEnabled": true,
"isEphemeral": false,
"isStatusV3": true,
"links": []
},
"id": {
"fromMe": true,
"remote": "status@broadcast",
"id": "3AFC180F08EBFF68DBFD",
"participant": "[email protected]",
"_serialized": "true_status@[email protected]"
},
"ack": 1,
"hasMedia": false,
"body": "",
"type": "revoked",
"timestamp": 1653377488,
"from": "[email protected]",
"to": "status@broadcast",
"author": "[email protected]",
"deviceType": "ios",
"isForwarded": false,
"forwardingScore": 0,
"isStatus": true,
"isStarred": false,
"broadcast": false,
"fromMe": true,
"hasQuotedMsg": false,
"vCards": [],
"mentionedIds": [],
"isGif": false,
"isEphemeral": false,
"links": []
} 原消息{
"_data": {
"id": {
"fromMe": true,
"remote": "status@broadcast",
"id": "3AFC180F08EBFF68DBFD",
"participant": "[email protected]",
"_serialized": "true_status@[email protected]"
},
"body": "这是一条动态消息",
"type": "chat",
"t": 1653377488,
"notifyName": "",
"from": "[email protected]",
"to": "status@broadcast",
"author": "[email protected]",
"self": "in",
"ack": 1,
"isNewMsg": true,
"star": false,
"recvFresh": true,
"isFromTemplate": false,
"thumbnail": "",
"broadcast": false,
"mentionedJidList": [],
"isVcardOverMmsDocument": false,
"backgroundColor": 4287391886,
"font": 0,
"isForwarded": false,
"hasReaction": false,
"productHeaderImageRejected": false,
"lastPlaybackProgress": 0,
"isDynamicReplyButtonsMsg": false,
"isMdHistoryMsg": false,
"requiresDirectConnection": false,
"pttForwardedFeaturesEnabled": true,
"isEphemeral": false,
"isStatusV3": true,
"links": []
},
"id": {
"fromMe": true,
"remote": "status@broadcast",
"id": "3AFC180F08EBFF68DBFD",
"participant": "[email protected]",
"_serialized": "true_status@[email protected]"
},
"ack": 1,
"hasMedia": false,
"body": "这是一条动态消息",
"type": "chat",
"timestamp": 1653377488,
"from": "[email protected]",
"to": "status@broadcast",
"author": "[email protected]",
"deviceType": "ios",
"isForwarded": false,
"forwardingScore": 0,
"isStatus": true,
"isStarred": false,
"broadcast": false,
"fromMe": true,
"hasQuotedMsg": false,
"vCards": [],
"mentionedIds": [],
"isGif": false,
"isEphemeral": false,
"links": []
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
关于 whatsapp 动态
双方必须互在对方通讯录中才可以看到对方动态,否则无法查看动态。
动态支持的种类:
可以针对动态进行回复(回复的形式:文字,表情,图片,视频)
如何区分动态和消息
可以根据
isStatus
字段结合to
字段来判断当前消息是否为动态消息。数据结构
示意图
The text was updated successfully, but these errors were encountered: