mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Add error: MessageTextIsEmpty
This commit is contained in:
parent
8f45ebc9ed
commit
8a149b1ed5
1 changed files with 6 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ TelegramAPIError
|
||||||
MessageToForwardNotFound
|
MessageToForwardNotFound
|
||||||
MessageToDeleteNotFound
|
MessageToDeleteNotFound
|
||||||
MessageIdentifierNotSpecified
|
MessageIdentifierNotSpecified
|
||||||
|
MessageTextIsEmpty
|
||||||
ChatNotFound
|
ChatNotFound
|
||||||
InvalidQueryID
|
InvalidQueryID
|
||||||
InvalidPeerID
|
InvalidPeerID
|
||||||
|
|
@ -151,7 +152,11 @@ class MessageIdentifierNotSpecified(MessageError):
|
||||||
match = 'message identifier is not specified'
|
match = 'message identifier is not specified'
|
||||||
|
|
||||||
|
|
||||||
class ChatNotFound(BadRequest, _MatchErrorMixin):
|
class MessageTextIsEmpty(MessageError):
|
||||||
|
match = 'Message text is empty'
|
||||||
|
|
||||||
|
|
||||||
|
class ChatNotFound(BadRequest):
|
||||||
match = 'chat not found'
|
match = 'chat not found'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue