Skip to content
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

Check admin rights on command #2

Closed
4 tasks done
denexapp opened this issue Aug 8, 2020 · 0 comments
Closed
4 tasks done

Check admin rights on command #2

denexapp opened this issue Aug 8, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@denexapp
Copy link
Owner

denexapp commented Aug 8, 2020

Check that the bot has admin rights in the conversation on command. Send an error message if the bot doesn't have them.

  • vk-ts: Add error handling
  • vk-ts: Throw exception on error 917 of messages.getConversationMembers
  • Add a flag to chat settings. This flag shows if the message about rights was shown
  • Catch the exception and send a message saying that bot needs permissions in order to work (if it's a command or the flag is false)
@denexapp denexapp added the enhancement New feature or request label Aug 8, 2020
@denexapp denexapp self-assigned this Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant