mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
#270: Add new exception
This commit is contained in:
parent
8f07b1248e
commit
5de9c9853e
1 changed files with 4 additions and 0 deletions
|
|
@ -272,6 +272,10 @@ class PollQuestionLengthTooLong(PollSizeError):
|
|||
match = "poll question length must not exceed 255"
|
||||
|
||||
|
||||
class PollCanBeRequestedInPrivateChatsOnly(PollError):
|
||||
match = "Poll can be requested in private chats only"
|
||||
|
||||
|
||||
class MessageWithPollNotFound(PollError, MessageError):
|
||||
"""
|
||||
Will be raised when you try to stop poll with message without poll
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue