mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Update docs.
This commit is contained in:
parent
19fc1b8d80
commit
9a30285d3b
13 changed files with 114 additions and 101 deletions
|
|
@ -1,94 +1,92 @@
|
||||||
"""
|
"""
|
||||||
TelegramAPIError
|
- TelegramAPIError
|
||||||
ValidationError
|
- ValidationError
|
||||||
Throttled
|
- Throttled
|
||||||
BadRequest
|
- BadRequest
|
||||||
MessageError
|
- MessageError
|
||||||
MessageNotModified
|
- MessageNotModified
|
||||||
MessageToForwardNotFound
|
- MessageToForwardNotFound
|
||||||
MessageToDeleteNotFound
|
- MessageToDeleteNotFound
|
||||||
MessageIdentifierNotSpecified
|
- MessageIdentifierNotSpecified
|
||||||
MessageTextIsEmpty
|
- MessageTextIsEmpty
|
||||||
MessageCantBeEdited
|
- MessageCantBeEdited
|
||||||
MessageCantBeDeleted
|
- MessageCantBeDeleted
|
||||||
MessageToEditNotFound
|
- MessageToEditNotFound
|
||||||
MessageToReplyNotFound
|
- MessageToReplyNotFound
|
||||||
ToMuchMessages
|
- ToMuchMessages
|
||||||
PollError
|
- PollError
|
||||||
PollCantBeStopped
|
- PollCantBeStopped
|
||||||
PollHasAlreadyClosed
|
- PollHasAlreadyClosed
|
||||||
PollsCantBeSentToPrivateChats
|
- PollsCantBeSentToPrivateChats
|
||||||
PollSizeError
|
- PollSizeError
|
||||||
PollMustHaveMoreOptions
|
- PollMustHaveMoreOptions
|
||||||
PollCantHaveMoreOptions
|
- PollCantHaveMoreOptions
|
||||||
PollsOptionsLengthTooLong
|
- PollsOptionsLengthTooLong
|
||||||
PollOptionsMustBeNonEmpty
|
- PollOptionsMustBeNonEmpty
|
||||||
PollQuestionMustBeNonEmpty
|
- PollQuestionMustBeNonEmpty
|
||||||
MessageWithPollNotFound (with MessageError)
|
- MessageWithPollNotFound (with MessageError)
|
||||||
MessageIsNotAPoll (with MessageError)
|
- MessageIsNotAPoll (with MessageError)
|
||||||
ObjectExpectedAsReplyMarkup
|
- ObjectExpectedAsReplyMarkup
|
||||||
InlineKeyboardExpected
|
- InlineKeyboardExpected
|
||||||
ChatNotFound
|
- ChatNotFound
|
||||||
ChatDescriptionIsNotModified
|
- ChatDescriptionIsNotModified
|
||||||
InvalidQueryID
|
- InvalidQueryID
|
||||||
InvalidPeerID
|
- InvalidPeerID
|
||||||
InvalidHTTPUrlContent
|
- InvalidHTTPUrlContent
|
||||||
ButtonURLInvalid
|
- ButtonURLInvalid
|
||||||
URLHostIsEmpty
|
- URLHostIsEmpty
|
||||||
StartParamInvalid
|
- StartParamInvalid
|
||||||
ButtonDataInvalid
|
- ButtonDataInvalid
|
||||||
WrongFileIdentifier
|
- WrongFileIdentifier
|
||||||
GroupDeactivated
|
- GroupDeactivated
|
||||||
BadWebhook
|
- BadWebhook
|
||||||
WebhookRequireHTTPS
|
- WebhookRequireHTTPS
|
||||||
BadWebhookPort
|
- BadWebhookPort
|
||||||
BadWebhookAddrInfo
|
- BadWebhookAddrInfo
|
||||||
BadWebhookNoAddressAssociatedWithHostname
|
- BadWebhookNoAddressAssociatedWithHostname
|
||||||
NotFound
|
- NotFound
|
||||||
MethodNotKnown
|
- MethodNotKnown
|
||||||
PhotoAsInputFileRequired
|
- PhotoAsInputFileRequired
|
||||||
InvalidStickersSet
|
- InvalidStickersSet
|
||||||
NoStickerInRequest
|
- NoStickerInRequest
|
||||||
ChatAdminRequired
|
- ChatAdminRequired
|
||||||
NeedAdministratorRightsInTheChannel
|
- NeedAdministratorRightsInTheChannel
|
||||||
MethodNotAvailableInPrivateChats
|
- MethodNotAvailableInPrivateChats
|
||||||
CantDemoteChatCreator
|
- CantDemoteChatCreator
|
||||||
CantRestrictSelf
|
- CantRestrictSelf
|
||||||
NotEnoughRightsToRestrict
|
- NotEnoughRightsToRestrict
|
||||||
PhotoDimensions
|
- PhotoDimensions
|
||||||
UnavailableMembers
|
- UnavailableMembers
|
||||||
TypeOfFileMismatch
|
- TypeOfFileMismatch
|
||||||
WrongRemoteFileIdSpecified
|
- WrongRemoteFileIdSpecified
|
||||||
PaymentProviderInvalid
|
- PaymentProviderInvalid
|
||||||
CurrencyTotalAmountInvalid
|
- CurrencyTotalAmountInvalid
|
||||||
CantParseUrl
|
- CantParseUrl
|
||||||
UnsupportedUrlProtocol
|
- UnsupportedUrlProtocol
|
||||||
CantParseEntities
|
- CantParseEntities
|
||||||
ResultIdDuplicate
|
- ResultIdDuplicate
|
||||||
ConflictError
|
- ConflictError
|
||||||
TerminatedByOtherGetUpdates
|
- TerminatedByOtherGetUpdates
|
||||||
CantGetUpdates
|
- CantGetUpdates
|
||||||
Unauthorized
|
- Unauthorized
|
||||||
BotKicked
|
- BotKicked
|
||||||
BotBlocked
|
- BotBlocked
|
||||||
UserDeactivated
|
- UserDeactivated
|
||||||
CantInitiateConversation
|
- CantInitiateConversation
|
||||||
CantTalkWithBots
|
- CantTalkWithBots
|
||||||
NetworkError
|
- NetworkError
|
||||||
RetryAfter
|
- RetryAfter
|
||||||
MigrateToChat
|
- MigrateToChat
|
||||||
RestartingTelegram
|
- RestartingTelegram
|
||||||
|
|
||||||
|
- AIOGramWarning
|
||||||
TODO: aiogram.utils.exceptions.BadRequest: Bad request: can't parse entities: unsupported start tag "function" at byte offset 0
|
- TimeoutWarning
|
||||||
TODO: aiogram.utils.exceptions.TelegramAPIError: Gateway Timeout
|
|
||||||
|
|
||||||
AIOGramWarning
|
|
||||||
TimeoutWarning
|
|
||||||
"""
|
"""
|
||||||
import time
|
import time
|
||||||
|
|
||||||
# TODO: Use exceptions detector from `aiograph`.
|
# 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: ']
|
_PREFIXES = ['error: ', '[error]: ', 'bad request: ', 'conflict: ', 'not found: ']
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
===========
|
===========
|
||||||
Auth Widget
|
Auth Widget
|
||||||
===========
|
===========
|
||||||
Coming soon...
|
|
||||||
|
.. automodule:: aiogram.utils.auth_widget
|
||||||
|
:members:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
=======
|
|
||||||
Context
|
|
||||||
=======
|
|
||||||
Coming soon...
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
==========
|
==========
|
||||||
Deprecated
|
Deprecated
|
||||||
==========
|
==========
|
||||||
|
|
||||||
.. automodule:: aiogram.utils.deprecated
|
.. automodule:: aiogram.utils.deprecated
|
||||||
:members:
|
:members:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
=====
|
=====
|
||||||
Emoji
|
Emoji
|
||||||
=====
|
=====
|
||||||
Coming soon...
|
|
||||||
|
.. automodule:: aiogram.utils.emoji
|
||||||
|
:members:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
==========
|
==========
|
||||||
Exceptions
|
Exceptions
|
||||||
==========
|
==========
|
||||||
Coming soon...
|
|
||||||
|
.. automodule:: aiogram.utils.exceptions
|
||||||
|
:members:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
========
|
========
|
||||||
Executor
|
Executor
|
||||||
========
|
========
|
||||||
Coming soon...
|
|
||||||
|
.. automodule:: aiogram.utils.executor
|
||||||
|
:members:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
======
|
======
|
||||||
Helper
|
Helper
|
||||||
======
|
======
|
||||||
Coming soon...
|
|
||||||
|
.. automodule:: aiogram.utils.helper
|
||||||
|
:members:
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,13 @@ Utils
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
|
|
||||||
|
auth_widget
|
||||||
executor
|
executor
|
||||||
exceptions
|
exceptions
|
||||||
context
|
|
||||||
markdown
|
markdown
|
||||||
helper
|
helper
|
||||||
auth_widget
|
deprecated
|
||||||
payload
|
payload
|
||||||
parts
|
parts
|
||||||
json
|
json
|
||||||
emoji
|
emoji
|
||||||
deprecated
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
====
|
====
|
||||||
JSON
|
JSON
|
||||||
====
|
====
|
||||||
Coming soon...
|
|
||||||
|
.. automodule:: aiogram.utils.json
|
||||||
|
:members:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
========
|
========
|
||||||
Markdown
|
Markdown
|
||||||
========
|
========
|
||||||
Coming soon...
|
|
||||||
|
.. automodule:: aiogram.utils.markdown
|
||||||
|
:members:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
=====
|
=====
|
||||||
Parts
|
Parts
|
||||||
=====
|
=====
|
||||||
Coming soon...
|
|
||||||
|
.. automodule:: aiogram.utils.parts
|
||||||
|
:members:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
=======
|
=======
|
||||||
Payload
|
Payload
|
||||||
=======
|
=======
|
||||||
Coming soon...
|
|
||||||
|
.. automodule:: aiogram.utils.payload
|
||||||
|
:members:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue