Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Missing information on message webhook when editing/deleting a message

Đang mở
#92 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
go
Lĩnh vực
api

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ả

bug
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?
  1. clearer indications of event types such as deleted/edited
  2. 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của evolution-foundation/evolution-go

Tất cả issue của evolution-foundation/evolution-go

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.