diff --git a/aiogram/utils/exceptions.py b/aiogram/utils/exceptions.py index bec48d97..cee2820a 100644 --- a/aiogram/utils/exceptions.py +++ b/aiogram/utils/exceptions.py @@ -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