Add NoRightsToSendMessage exception

This commit is contained in:
Andrew 2021-09-02 00:42:04 +03:00 committed by GitHub
parent c89bf6fbf8
commit c439ec88c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -508,6 +508,13 @@ class UserIsAnAdministratorOfTheChat(BadRequest):
match = 'User is an administrator of the chat'
class NoRightsToSendMessage(BadRequest):
"""
Raises when bot has no rights to send a message to the group
"""
match = 'Have no rights to send a message'
class NotFound(TelegramAPIError, _MatchErrorMixin):
__group = True