mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add exception MethodIsNotAvailable
This commit is contained in:
parent
18d1115b50
commit
ce026dfa71
1 changed files with 5 additions and 0 deletions
|
|
@ -65,6 +65,7 @@
|
|||
- UnsupportedUrlProtocol
|
||||
- CantParseEntities
|
||||
- ResultIdDuplicate
|
||||
- MethodIsNotAvailable
|
||||
- ConflictError
|
||||
- TerminatedByOtherGetUpdates
|
||||
- CantGetUpdates
|
||||
|
|
@ -461,6 +462,10 @@ class BotDomainInvalid(BadRequest):
|
|||
text = 'Invalid bot domain'
|
||||
|
||||
|
||||
class MethodIsNotAvailable(BadRequest):
|
||||
match = "Method is available only for supergroups"
|
||||
|
||||
|
||||
class NotFound(TelegramAPIError, _MatchErrorMixin):
|
||||
__group = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue