Harden force-sub checks, admin gating, and search behavior - #18
Open
SasukeXDev wants to merge 2 commits into
Open
SasukeXDev wants to merge 2 commits into
SasukeXDev wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Motivation
/stats,/users, and/broadcast.Description
bot/telegram/keyboards.pyto show a unified📢 Join Channelbutton, numbered join buttons when multiple channels are configured, and changed retry button text to✅ Check / Try Againfor clarity.bot/telegram/services.pyby treatingChatMemberStatus.RESTRICTEDas not subscribed and updating the prompt text to reference the combinedCheck / Try Againwording.bot/telegram/plugins/start.pyso callback navigation requires verified membership before showing pages.ensure_adminhelper inbot/telegram/plugins/start.py, and applied it to/stats,/users, and/broadcasthandlers to return❌ Admin only command.for unauthorized users.bot/helper/bot_database.pyby addingsearch_title(lowercased) to content documents, creating an index for it, constraining searches toAUTH_CHANNELIDs when configured, and sanitizing page numbers withsafe_page.Testing
python -m compileall botand confirmed all modules compile successfully.force_sub_keyboardfor single and multi-channel inputs and verified button labels and ordering (succeeded).Codex Task