feat(router): handle 9 new Telegram update types#94
Merged
Conversation
Add handler functions and api.run() wiring for: - chat_join_request: approve/decline join requests via plugins - chat_member: member status changes (promoted, left, etc.) - my_chat_member: bot's own status changes (added/removed/promoted) - message_reaction: emoji reaction changes on messages - poll: poll state changes (closed, etc.) - poll_answer: individual user votes on polls - chat_boost / removed_chat_boost: boost/unboost events - message_reaction_count: anonymous reaction counts Each handler uses a lightweight context builder (no full middleware pipeline) and dispatches to plugin hooks following the same pcall + error logging pattern as existing handlers. Also fixes callback_query handler to create valid chat context for inline button callbacks (was creating empty chat object).
This was referenced Feb 13, 2026
# Conflicts: # src/core/router.lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
api.run()wiring for:chat_join_request,chat_member,my_chat_member,message_reaction,poll,poll_answer,chat_boost,removed_chat_boost,message_reaction_count{}chat object)allowed_updateslist with all new typesTest plan
on_chat_join_requestfireson_message_reactionfireson_pollandon_poll_answerfireon_chat_boostfires🤖 Generated with Claude Code