feat(framework): rate limiting and opts-based API migration#97
Merged
feat(framework): rate limiting and opts-based API migration#97
Conversation
added 3 commits
February 13, 2026 00:32
Rate limiting: - Add Redis-based rate limiting for callback queries (5/3s per user) with toast notification on rate limit hit - Add Redis-based rate limiting for inline queries (3/2s per user) with silent drop on rate limit hit Opts-based migration (priority plugins): - help.lua: migrate all send_message/edit_message_text calls from positional args to opts table format - about.lua: migrate send_message to opts - id.lua: migrate send_message to opts - wordfilter.lua: migrate send_message calls to opts - join_captcha.lua: migrate send_message to opts - gif.lua: migrate send_message to opts This eliminates deprecation warnings from the telegram-bot-lua compat layer for these high-traffic plugins.
# Conflicts: # src/core/router.lua # src/plugins/admin/join_captcha.lua # src/plugins/utility/help.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.send_message()calls, eliminating deprecation warnings from telegram-bot-lua compat layer:Depends on #94 (router expansion).
Test plan
/helpmenu navigation still works with opts-based calls/about,/id,/wordfilter, captcha,/gifall work normally🤖 Generated with Claude Code