-
Notifications
You must be signed in to change notification settings - Fork 908
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
First reaction to channel post triggers edited_channel_post
update
#1969
Comments
Note that Before the reaction updates, Bot API did treat reactions to messages as edits without observable changes. This behaviour may persist yet. It's likely related to how reactions is architected by Telegram. Nothing we can do about it; Telegraf has no way to tell if an edit update was triggered by an actual change, or a reaction caused it. |
Thank you for your reply. It's quite strange to see this behaviour from Telegram, considering the reactions update. About
|
The shape of |
Context
If channel post gets first reaction some time after creation (about 30 minutes by my observations) - telegraf will trigger
edited_channel_post
with no reactions inctx.reactions
Therefore, I cannot use
edited_channel_post
due to false positives if someone decided to react to old posts.Minimal Example Code Reproducing the Issue
Register 3 handlers
Send any message to channel, wait about 30 minutes, set any reaction to post
Expected Behavior
Triggered
message_reaction_count
with reactions list, not triggerededited_channel_post
Current Behavior
Triggered
edited_channel_post
without reactions list, not triggeredmessage_reaction_count
After a few minutes
message_reaction_count
triggered with empty reactions list (but if i log body in webhoook - it contains all reactions)The text was updated successfully, but these errors were encountered: