Missing information on message webhook when editing/deleting a message
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện các payload webhook chỉnh sửa và xóa được mô tả cho phiên bản 0.7.0, rồi theo dõi cách các sự kiện tin nhắn được tuần tự hóa. So sánh các giá trị Edit, trường IsEdit, nội dung đã chỉnh sửa được mã hóa và thông báo giao thức Revoke; hoàn thành khi webhook xác định rõ các lần chỉnh sửa và xóa, đồng thời cung cấp giá trị đã chỉnh sửa khi có sẵn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Welcome!
- Yes, I have searched for similar issues on GitHub and found none.
What did you do?
Hi
I sent to my bot a simple text message: "Initial message"
i got the following event:
"data": {
"Info": {
"AddressingMode": "",
"BroadcastListOwner": "",
"BroadcastRecipients": null,
"Category": "",
"Chat": "[email protected]",
"DeviceSentMeta": null,
"Edit": "",
"ID": "AC9A902ED6D1458D0A9FB5C4023580E7",
"IsFromMe": false,
"IsGroup": false,
"MediaType": "",
"MsgBotInfo": {
"EditSenderTimestampMS": "0001-01-01T00:00:00Z",
"EditTargetID": "",
"EditType": ""
},
"MsgMetaInfo": {
"DeprecatedLIDSession": null,
"TargetChat": "",
"TargetID": "",
"TargetSender": "",
"ThreadMessageID": "",
"ThreadMessageSenderJID": ""
},
"Multicast": false,
"PushName": "Me",
"RecipientAlt": "",
"Sender": "[email protected]",
"SenderAlt": "zzz@lid",
"ServerID": 0,
"Timestamp": "2026-06-26T02:39:26-03:00",
"Type": "text",
"VerifiedName": null
},
"IsBotInvoke": false,
"IsDocumentWithCaption": false,
"IsEdit": false,
"IsEphemeral": false,
"IsLottieSticker": false,
"IsViewOnce": false,
"IsViewOnceV2": false,
"IsViewOnceV2Extension": false,
"Message": {
"conversation": "Initial message",
"messageContextInfo": {
"deviceListMetadata": {
"recipientKeyHash": "E2tyxX5XIVF3EQ==",
"recipientTimestamp": 1782449749,
"senderKeyHash": "pAUZ5sfkmTIHKA==",
"senderTimestamp": 1782063058
},
"deviceListMetadataVersion": 2,
"messageSecret": "mA5k/3jCDF8qB5WmVUnZtAuKEsY9z8e4Ja6mHpFmR/A="
}
},
"NewsletterMeta": null,
"RetryCount": 0,
"SourceWebMsg": null,
"UnavailableRequestID": ""
},
"event": "Message",
"instanceId": "yyy",
"instanceName": "test",
"instanceToken": "yyy"
}
then the sender edited the message to "Edited message" and i got the following message event webhook:
"data": {
"Info": {
"AddressingMode": "",
"BroadcastListOwner": "",
"BroadcastRecipients": null,
"Category": "",
"Chat": "[email protected]",
"DeviceSentMeta": null,
"Edit": "1",
"ID": "AC1A92123AFBE559D5F9A4B302CF6C7F",
"IsFromMe": false,
"IsGroup": false,
"MediaType": "",
"MsgBotInfo": {
"EditSenderTimestampMS": "0001-01-01T00:00:00Z",
"EditTargetID": "",
"EditType": ""
},
"MsgMetaInfo": {
"DeprecatedLIDSession": null,
"TargetChat": "",
"TargetID": "",
"TargetSender": "",
"ThreadMessageID": "",
"ThreadMessageSenderJID": ""
},
"Multicast": false,
"PushName": "Me",
"RecipientAlt": "",
"Sender": "[email protected]",
"SenderAlt": "zzz@lid",
"ServerID": 0,
"Timestamp": "2026-06-26T02:39:33-03:00",
"Type": "text",
"VerifiedName": null
},
"IsBotInvoke": false,
"IsDocumentWithCaption": false,
"IsEdit": false,
"IsEphemeral": false,
"IsLottieSticker": false,
"IsViewOnce": false,
"IsViewOnceV2": false,
"IsViewOnceV2Extension": false,
"Message": {
"messageContextInfo": {
"deviceListMetadata": {
"recipientKeyHash": "E2tyxX5XIVF3EQ==",
"recipientTimestamp": 1782449749,
"senderKeyHash": "pAUZ5sfkmTIHKA==",
"senderTimestamp": 1782063058
},
"deviceListMetadataVersion": 2
},
"secretEncryptedMessage": {
"encIV": "+LyXMWj3ktXD7Bsa",
"encPayload": "IH6QaddsawnKQf726+G4S4gWWzhDivIQ737Rd4RpsB3lC2zYUkCP61hC/1ih37pDYuDTR5dKVJ1PM7ctir9rFcc6ePro6RBok3e3CwcCNdhHwb+V1dj09QkOZIHWigfTeKGMKjw7jAI+yxlTlPGJCPTG9VghlUsRV4MSmz5dQZMDH8CHpVmKmb+M0yKi",
"secretEncType": 2,
"targetMessageKey": {
"ID": "AC9A902ED6D1458D0A9FB5C4023580E7",
"fromMe": true,
"remoteJID": "zzz@lid"
}
}
},
"NewsletterMeta": null,
"RetryCount": 0,
"SourceWebMsg": null,
"UnavailableRequestID": ""
},
"event": "Message",
"instanceId": "yyy",
"instanceName": "test",
"instanceToken": "yyy"
}
the first problem i see here is that property isEdit=false
i guess i could identify it's an edit event by looking at the enum "Edit": "1"
the second problem is that i cannot see the new text value "Edited message", i see only an encrypted message that i'm not sure how to decrtypt while on Evolution API i was used to see the edited text value in the event
then the message was deleted for everyone and i got the following message event:
"data": {
"Info": {
"AddressingMode": "",
"BroadcastListOwner": "",
"BroadcastRecipients": null,
"Category": "",
"Chat": "[email protected]",
"DeviceSentMeta": null,
"Edit": "7",
"ID": "ACDD174F636231E68B8D95EA87DE51FB",
"IsFromMe": false,
"IsGroup": false,
"MediaType": "",
"MsgBotInfo": {
"EditSenderTimestampMS": "0001-01-01T00:00:00Z",
"EditTargetID": "",
"EditType": ""
},
"MsgMetaInfo": {
"DeprecatedLIDSession": null,
"TargetChat": "",
"TargetID": "",
"TargetSender": "",
"ThreadMessageID": "",
"ThreadMessageSenderJID": ""
},
"Multicast": false,
"PushName": "Me",
"RecipientAlt": "",
"Sender": "[email protected]",
"SenderAlt": "zzz@lid",
"ServerID": 0,
"Timestamp": "2026-06-26T02:39:38-03:00",
"Type": "text",
"VerifiedName": null
},
"IsBotInvoke": false,
"IsDocumentWithCaption": false,
"IsEdit": false,
"IsEphemeral": false,
"IsLottieSticker": false,
"IsViewOnce": false,
"IsViewOnceV2": false,
"IsViewOnceV2Extension": false,
"Message": {
"messageContextInfo": {
"deviceListMetadata": {
"recipientKeyHash": "E2tyxX5XIVF3EQ==",
"recipientTimestamp": 1782449749,
"senderKeyHash": "pAUZ5sfkmTIHKA==",
"senderTimestamp": 1782063058
},
"deviceListMetadataVersion": 2
},
"protocolMessage": {
"key": {
"ID": "AC9A902ED6D1458D0A9FB5C4023580E7",
"fromMe": true,
"remoteJID": "zzz@lid"
},
"type": 0
}
},
"NewsletterMeta": null,
"RetryCount": 0,
"SourceWebMsg": null,
"UnavailableRequestID": ""
},
"event": "Message",
"instanceId": "yyy",
"instanceName": "test",
"instanceToken": "yyy"
}
i can only assume that it's a delete event by looking at the enum "Edit": "7" or "type": 0 while on evolution api it was more explicit by mentioning something with revoke
What did you expect?
- clearer indications of event types such as deleted/edited
- actual new value when edited
What did you observe instead of what you expected?
mentioned in issue
Screenshots/Videos
No response
Which version are you using?
0.7.0
What is your environment?
Docker
If applicable, paste the log output
No response
Additional Notes
No response
- Ngôn ngữ chính
- Go
- Star
- 890
- Fork
- 473
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của evolution-foundation/evolution-go
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
evolution-foundation/evolution-go#193 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
evolution-foundation/evolution-go#104 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
evolution-foundation/evolution-go#101 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
evolution-foundation/evolution-go#97 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
evolution-foundation/evolution-go#204 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của evolution-foundation/evolution-go
Issue tương tự
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
open-telemetry/opentelemetry-go-compile-instrumentation#1417 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
agent-research-finding agent-research-recommend chore ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
jordansmall/spindrift#4068 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Type/Task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
OpenNSW/nsw-srilanka#537 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
security
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày