diff --git a/aiogram/utils/exceptions.py b/aiogram/utils/exceptions.py index a6612547..f77fe257 100644 --- a/aiogram/utils/exceptions.py +++ b/aiogram/utils/exceptions.py @@ -1,94 +1,92 @@ """ -TelegramAPIError - ValidationError - Throttled - BadRequest - MessageError - MessageNotModified - MessageToForwardNotFound - MessageToDeleteNotFound - MessageIdentifierNotSpecified - MessageTextIsEmpty - MessageCantBeEdited - MessageCantBeDeleted - 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 - 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 - ConflictError - TerminatedByOtherGetUpdates - CantGetUpdates - Unauthorized - BotKicked - BotBlocked - UserDeactivated - CantInitiateConversation - CantTalkWithBots - NetworkError - RetryAfter - MigrateToChat - RestartingTelegram +- TelegramAPIError + - ValidationError + - Throttled + - BadRequest + - MessageError + - MessageNotModified + - MessageToForwardNotFound + - MessageToDeleteNotFound + - MessageIdentifierNotSpecified + - MessageTextIsEmpty + - MessageCantBeEdited + - MessageCantBeDeleted + - 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 + - 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 + - ConflictError + - TerminatedByOtherGetUpdates + - CantGetUpdates + - Unauthorized + - BotKicked + - BotBlocked + - UserDeactivated + - CantInitiateConversation + - CantTalkWithBots + - NetworkError + - RetryAfter + - MigrateToChat + - RestartingTelegram - -TODO: aiogram.utils.exceptions.BadRequest: Bad request: can't parse entities: unsupported start tag "function" at byte offset 0 -TODO: aiogram.utils.exceptions.TelegramAPIError: Gateway Timeout - -AIOGramWarning - TimeoutWarning +- AIOGramWarning + - TimeoutWarning """ import time # TODO: Use exceptions detector from `aiograph`. +# TODO: aiogram.utils.exceptions.BadRequest: Bad request: can't parse entities: unsupported start tag "function" at byte offset 0 +# TODO: aiogram.utils.exceptions.TelegramAPIError: Gateway Timeout _PREFIXES = ['error: ', '[error]: ', 'bad request: ', 'conflict: ', 'not found: '] diff --git a/docs/source/utils/auth_widget.rst b/docs/source/utils/auth_widget.rst index e3a90ef6..95cb3913 100644 --- a/docs/source/utils/auth_widget.rst +++ b/docs/source/utils/auth_widget.rst @@ -1,4 +1,6 @@ =========== Auth Widget =========== -Coming soon... + +.. automodule:: aiogram.utils.auth_widget + :members: diff --git a/docs/source/utils/context.rst b/docs/source/utils/context.rst deleted file mode 100644 index 7a930a7e..00000000 --- a/docs/source/utils/context.rst +++ /dev/null @@ -1,4 +0,0 @@ -======= -Context -======= -Coming soon... diff --git a/docs/source/utils/deprecated.rst b/docs/source/utils/deprecated.rst index 7f2f07cc..619224f8 100644 --- a/docs/source/utils/deprecated.rst +++ b/docs/source/utils/deprecated.rst @@ -1,5 +1,6 @@ ========== Deprecated ========== + .. automodule:: aiogram.utils.deprecated :members: diff --git a/docs/source/utils/emoji.rst b/docs/source/utils/emoji.rst index 27382dd6..1be210e3 100644 --- a/docs/source/utils/emoji.rst +++ b/docs/source/utils/emoji.rst @@ -1,4 +1,6 @@ ===== Emoji ===== -Coming soon... + +.. automodule:: aiogram.utils.emoji + :members: diff --git a/docs/source/utils/exceptions.rst b/docs/source/utils/exceptions.rst index 199e67aa..b296afd3 100644 --- a/docs/source/utils/exceptions.rst +++ b/docs/source/utils/exceptions.rst @@ -1,4 +1,6 @@ ========== Exceptions ========== -Coming soon... + +.. automodule:: aiogram.utils.exceptions + :members: diff --git a/docs/source/utils/executor.rst b/docs/source/utils/executor.rst index 2cb8eaa1..f88dd8c5 100644 --- a/docs/source/utils/executor.rst +++ b/docs/source/utils/executor.rst @@ -1,4 +1,7 @@ ======== Executor ======== -Coming soon... + +.. automodule:: aiogram.utils.executor + :members: + diff --git a/docs/source/utils/helper.rst b/docs/source/utils/helper.rst index 4ffc74ab..ba8bf016 100644 --- a/docs/source/utils/helper.rst +++ b/docs/source/utils/helper.rst @@ -1,4 +1,6 @@ ====== Helper ====== -Coming soon... + +.. automodule:: aiogram.utils.helper + :members: diff --git a/docs/source/utils/index.rst b/docs/source/utils/index.rst index bc4a52ed..1ac3777c 100644 --- a/docs/source/utils/index.rst +++ b/docs/source/utils/index.rst @@ -3,14 +3,13 @@ Utils .. toctree:: + auth_widget executor exceptions - context markdown helper - auth_widget + deprecated payload parts json emoji - deprecated diff --git a/docs/source/utils/json.rst b/docs/source/utils/json.rst index 84833031..68577ff4 100644 --- a/docs/source/utils/json.rst +++ b/docs/source/utils/json.rst @@ -1,4 +1,6 @@ ==== JSON ==== -Coming soon... + +.. automodule:: aiogram.utils.json + :members: diff --git a/docs/source/utils/markdown.rst b/docs/source/utils/markdown.rst index ee32dfd4..bcbe0497 100644 --- a/docs/source/utils/markdown.rst +++ b/docs/source/utils/markdown.rst @@ -1,4 +1,6 @@ ======== Markdown ======== -Coming soon... + +.. automodule:: aiogram.utils.markdown + :members: diff --git a/docs/source/utils/parts.rst b/docs/source/utils/parts.rst index 845d017e..fd2e91de 100644 --- a/docs/source/utils/parts.rst +++ b/docs/source/utils/parts.rst @@ -1,4 +1,6 @@ ===== Parts ===== -Coming soon... + +.. automodule:: aiogram.utils.parts + :members: diff --git a/docs/source/utils/payload.rst b/docs/source/utils/payload.rst index b3427906..e3e0331a 100644 --- a/docs/source/utils/payload.rst +++ b/docs/source/utils/payload.rst @@ -1,4 +1,6 @@ ======= Payload ======= -Coming soon... + +.. automodule:: aiogram.utils.payload + :members: