Skip to content

Distinguish between actual content edits and reactions in edited_message updates #773

@sgdc3

Description

@sgdc3

Currently, when a message receives a reaction, bots can receive an edited_message update even if the message content (text, media, or attachments) has not actually been modified.

This makes it difficult, if not impossible, to understand whether the update is due to an actual change in content or simply an added/removed reaction.

Proposal

It would be very useful to have a dedicated field in the edited_message payload that clearly indicates whether the content has changed.
For example:

“content_changed”: true // or false

If it is not possible to add this field, any other way to clearly distinguish between content changes and reaction changes alone would still be welcome.

Why it matters

  • It avoids having to rework or resend messages unnecessarily when only a reaction has changed.
  • It allows the development of bots that monitor possible abuse of changes to old messages (e.g., media replacement) by immediately distinguishing real changes from simple reactions.

Related issues

Probably related to #388.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions