Skip to content

Restrict bot commands to group and sudo users only#68

Open
samsesh wants to merge 3 commits into
akshettrj:mainfrom
samsesh:main
Open

Restrict bot commands to group and sudo users only#68
samsesh wants to merge 3 commits into
akshettrj:mainfrom
samsesh:main

Conversation

@samsesh

@samsesh samsesh commented Jan 10, 2025

Copy link
Copy Markdown
  • 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
Copy Markdown
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
Copy Markdown
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