From d6d0a3ed5655cbd64aab341c796e11c3089169df Mon Sep 17 00:00:00 2001 From: uburuntu Date: Sat, 19 Sep 2020 23:49:37 +0300 Subject: [PATCH] new: add FileIsTooBig exception --- aiogram/utils/exceptions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aiogram/utils/exceptions.py b/aiogram/utils/exceptions.py index a289be25..a4332dc8 100644 --- a/aiogram/utils/exceptions.py +++ b/aiogram/utils/exceptions.py @@ -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'