Skip to content

Conversation

@onlyeRG
Copy link
Owner

@onlyeRG onlyeRG commented Oct 12, 2025

Introduces admin management and a ban system to control bot access and ignore messages from banned users, reducing spam.

This PR adds /addadmin, /deladmin, /admins (owner only) and /ban (owner/admin) commands. Admin permissions for channel/link commands (setchannel, delchannel, channelpost, reqpost) are now database-backed. Banned users are completely ignored by the bot, preventing any responses from start, callback queries, and all other commands. Existing ADMINS from the environment variable are automatically synced to the database on bot startup.


Open in Cursor Open in Web

Co-authored-by: rgisop77 <rgisop77@gmail.com>
@cursor
Copy link

cursor bot commented Oct 12, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants