Skip to content

Restrict bot commands to group and sudo users only #68

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

samsesh
Copy link

@samsesh samsesh commented Jan 10, 2025

  • Updated bot command scopes to ensure that only the group chat and sudo users can see the commands.
  • Set commands for the specific group chat and private chats of sudo users.
  • Nullified commands for all other private users to hide commands from non-sudo users.

- Updated bot command scopes to ensure that only the group chat and sudo users can see the commands.
- Set commands for the specific group chat and private chats of sudo users.
- Nullified commands for all other private users to hide commands from non-sudo users.
Restrict bot commands to group and sudo users only
@akshettrj
Copy link
Owner

I see you are nullifying the commands for all private users after setting commands for sudo users. Have you tested that this order of setting the commands doesn't also nullify the commands for the sudo users??

@akshettrj
Copy link
Owner

Also, you are missing setting commands for the owner id. This is generally not included in the sudo users id

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