mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
new: add FileIsTooBig exception
This commit is contained in:
parent
7b33e5c68a
commit
d6d0a3ed56
1 changed files with 5 additions and 0 deletions
|
|
@ -38,6 +38,7 @@
|
|||
- URLHostIsEmpty
|
||||
- StartParamInvalid
|
||||
- ButtonDataInvalid
|
||||
- FileIsTooBig
|
||||
- WrongFileIdentifier
|
||||
- GroupDeactivated
|
||||
- BadWebhook
|
||||
|
|
@ -347,6 +348,10 @@ class ButtonDataInvalid(BadRequest):
|
|||
text = 'Button data invalid'
|
||||
|
||||
|
||||
class FileIsTooBig(BadRequest):
|
||||
match = 'File is too big'
|
||||
|
||||
|
||||
class WrongFileIdentifier(BadRequest):
|
||||
match = 'wrong file identifier/HTTP URL specified'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue