mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge pull request #44 from Olegt0rr/patch-12
CantRestrictSelf exception
This commit is contained in:
commit
11c25c6969
1 changed files with 6 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ TelegramAPIError
|
|||
PhotoAsInputFileRequired
|
||||
InvalidStickersSet
|
||||
ChatAdminRequired
|
||||
CantRestrictSelf
|
||||
PhotoDimensions
|
||||
UnavailableMembers
|
||||
TypeOfFileMismatch
|
||||
|
|
@ -206,7 +207,12 @@ class ChatAdminRequired(BadRequest):
|
|||
match = 'CHAT_ADMIN_REQUIRED'
|
||||
text = 'Admin permissions is required!'
|
||||
|
||||
|
||||
class CantRestrictSelf(BadRequest):
|
||||
match = "can't restrict self"
|
||||
text = "Admin can't restrict self."
|
||||
|
||||
|
||||
class PhotoDimensions(BadRequest):
|
||||
match = 'PHOTO_INVALID_DIMENSIONS'
|
||||
text = 'Invalid photo dimensions'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue