mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Move ToMuchMessages to MessageError group.
This commit is contained in:
parent
25a328793b
commit
cd320b3cf5
1 changed files with 8 additions and 8 deletions
|
|
@ -9,6 +9,7 @@ TelegramAPIError
|
|||
MessageToDeleteNotFound
|
||||
MessageIdentifierNotSpecified
|
||||
MessageTextIsEmpty
|
||||
ToMuchMessages
|
||||
ChatNotFound
|
||||
InvalidQueryID
|
||||
InvalidPeerID
|
||||
|
|
@ -22,7 +23,6 @@ TelegramAPIError
|
|||
NotFound
|
||||
MethodNotKnown
|
||||
PhotoAsInputFileRequired
|
||||
ToMuchMessages
|
||||
InvalidStickersSet
|
||||
ChatAdminRequired
|
||||
PhotoDimensions
|
||||
|
|
@ -155,6 +155,13 @@ class MessageTextIsEmpty(MessageError):
|
|||
match = 'Message text is empty'
|
||||
|
||||
|
||||
class ToMuchMessages(MessageError):
|
||||
"""
|
||||
Will be raised when you try to send media group with more than 10 items.
|
||||
"""
|
||||
match = 'Too much messages to send as an album'
|
||||
|
||||
|
||||
class ChatNotFound(BadRequest):
|
||||
match = 'chat not found'
|
||||
|
||||
|
|
@ -188,13 +195,6 @@ class PhotoAsInputFileRequired(BadRequest):
|
|||
match = 'Photo should be uploaded as an InputFile'
|
||||
|
||||
|
||||
class ToMuchMessages(BadRequest):
|
||||
"""
|
||||
Will be raised when you try to send media group with more than 10 items.
|
||||
"""
|
||||
match = 'Too much messages to send as an album'
|
||||
|
||||
|
||||
class InvalidStickersSet(BadRequest):
|
||||
match = 'STICKERSET_INVALID'
|
||||
text = 'Stickers set is invalid'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue