mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add exception MessageToPinNotFound (#404)
This commit is contained in:
parent
22094eb477
commit
4863675d28
1 changed files with 8 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
- MessageNotModified
|
||||
- MessageToForwardNotFound
|
||||
- MessageToDeleteNotFound
|
||||
- MessageToPinNotFound
|
||||
- MessageIdentifierNotSpecified
|
||||
- MessageTextIsEmpty
|
||||
- MessageCantBeEdited
|
||||
|
|
@ -182,6 +183,13 @@ class MessageToDeleteNotFound(MessageError):
|
|||
match = 'message to delete not found'
|
||||
|
||||
|
||||
class MessageToPinNotFound(MessageError):
|
||||
"""
|
||||
Will be raised when you try to pin deleted or unknown message.
|
||||
"""
|
||||
match = 'message to pin not found'
|
||||
|
||||
|
||||
class MessageToReplyNotFound(MessageError):
|
||||
"""
|
||||
Will be raised when you try to reply to very old or deleted or unknown message.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue