Exceptions
- TelegramAPIError
ValidationError
Throttled
- BadRequest
- MessageError
MessageNotModified
MessageToForwardNotFound
MessageIdInvalid
MessageToDeleteNotFound
MessageToPinNotFound
MessageIdentifierNotSpecified
MessageTextIsEmpty
MessageCantBeEdited
MessageCantBeDeleted
MessageCantBeForwarded
MessageToEditNotFound
MessageToReplyNotFound
ToMuchMessages
- PollError
PollCantBeStopped
PollHasAlreadyClosed
PollsCantBeSentToPrivateChats
- PollSizeError
PollMustHaveMoreOptions
PollCantHaveMoreOptions
PollsOptionsLengthTooLong
PollOptionsMustBeNonEmpty
PollQuestionMustBeNonEmpty
MessageWithPollNotFound (with MessageError)
MessageIsNotAPoll (with MessageError)
ObjectExpectedAsReplyMarkup
InlineKeyboardExpected
ChatNotFound
ChatDescriptionIsNotModified
InvalidQueryID
InvalidPeerID
InvalidHTTPUrlContent
ButtonURLInvalid
URLHostIsEmpty
StartParamInvalid
ButtonDataInvalid
FileIsTooBig
WrongFileIdentifier
GroupDeactivated
- BadWebhook
WebhookRequireHTTPS
BadWebhookPort
BadWebhookAddrInfo
BadWebhookNoAddressAssociatedWithHostname
- NotFound
MethodNotKnown
PhotoAsInputFileRequired
InvalidStickersSet
NoStickerInRequest
ChatAdminRequired
NeedAdministratorRightsInTheChannel
MethodNotAvailableInPrivateChats
CantDemoteChatCreator
CantRestrictSelf
NotEnoughRightsToRestrict
PhotoDimensions
UnavailableMembers
TypeOfFileMismatch
WrongRemoteFileIdSpecified
PaymentProviderInvalid
CurrencyTotalAmountInvalid
CantParseUrl
UnsupportedUrlProtocol
CantParseEntities
ResultIdDuplicate
MethodIsNotAvailable
- ConflictError
TerminatedByOtherGetUpdates
CantGetUpdates
- Unauthorized
BotKicked
BotBlocked
UserDeactivated
CantInitiateConversation
CantTalkWithBots
NetworkError
RetryAfter
MigrateToChat
RestartingTelegram
- AIOGramWarning
TimeoutWarning
- exception aiogram.utils.exceptions.MessageNotModified(message=None)[source]
Will be raised when you try to set new text is equals to current text.
- exception aiogram.utils.exceptions.MessageToForwardNotFound(message=None)[source]
Will be raised when you try to forward very old or deleted or unknown message.
- exception aiogram.utils.exceptions.MessageToDeleteNotFound(message=None)[source]
Will be raised when you try to delete very old or deleted or unknown message.
- exception aiogram.utils.exceptions.MessageToPinNotFound(message=None)[source]
Will be raised when you try to pin deleted or unknown message.
- exception aiogram.utils.exceptions.MessageToReplyNotFound(message=None)[source]
Will be raised when you try to reply to very old or deleted or unknown message.
- exception aiogram.utils.exceptions.ToMuchMessages(message=None)[source]
Will be raised when you try to send media group with more than 10 items.
- exception aiogram.utils.exceptions.MessageWithPollNotFound(message=None)[source]
Will be raised when you try to stop poll with message without poll
- exception aiogram.utils.exceptions.MessageIsNotAPoll(message=None)[source]
Will be raised when you try to stop poll with message without poll
- exception aiogram.utils.exceptions.PhotoAsInputFileRequired(message=None)[source]
Will be raised when you try to set chat photo from file ID.
- exception aiogram.utils.exceptions.CantRestrictChatOwner(message=None)[source]
Raises when bot restricts the chat owner