#270: Add new exception

This commit is contained in:
Alex Root Junior 2020-04-05 18:28:59 +03:00
parent 8f07b1248e
commit 5de9c9853e

View file

@ -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