mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add NoRightsToSendMessage exception
This commit is contained in:
parent
c89bf6fbf8
commit
c439ec88c8
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue