mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Refactor dispatcher. Update docs. Fix tests.
This commit is contained in:
parent
9539c4e2fd
commit
d3b488e16d
290 changed files with 2153 additions and 1780 deletions
|
|
@ -4,7 +4,7 @@ Animation
|
|||
|
||||
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
|
||||
|
||||
.. automodule:: aiogram.api.types.animation
|
||||
.. automodule:: aiogram.types.animation
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Audio
|
|||
|
||||
This object represents an audio file to be treated as music by the Telegram clients.
|
||||
|
||||
.. automodule:: aiogram.api.types.audio
|
||||
.. automodule:: aiogram.types.audio
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ BotCommand
|
|||
|
||||
This object represents a bot command.
|
||||
|
||||
.. automodule:: aiogram.api.types.bot_command
|
||||
.. automodule:: aiogram.types.bot_command
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ CallbackGame
|
|||
|
||||
A placeholder, currently holds no information. Use BotFather to set up your game.
|
||||
|
||||
.. automodule:: aiogram.api.types.callback_game
|
||||
.. automodule:: aiogram.types.callback_game
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ This object represents an incoming callback query from a callback button in an i
|
|||
|
||||
NOTE: After the user presses a callback button, Telegram clients will display a progress bar until you call answerCallbackQuery. It is, therefore, necessary to react by calling answerCallbackQuery even if no notification to the user is needed (e.g., without specifying any of the optional parameters).
|
||||
|
||||
.. automodule:: aiogram.api.types.callback_query
|
||||
.. automodule:: aiogram.types.callback_query
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Chat
|
|||
|
||||
This object represents a chat.
|
||||
|
||||
.. automodule:: aiogram.api.types.chat
|
||||
.. automodule:: aiogram.types.chat
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ ChatMember
|
|||
|
||||
This object contains information about one member of a chat.
|
||||
|
||||
.. automodule:: aiogram.api.types.chat_member
|
||||
.. automodule:: aiogram.types.chat_member
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ ChatPermissions
|
|||
|
||||
Describes actions that a non-administrator user is allowed to take in a chat.
|
||||
|
||||
.. automodule:: aiogram.api.types.chat_permissions
|
||||
.. automodule:: aiogram.types.chat_permissions
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ ChatPhoto
|
|||
|
||||
This object represents a chat photo.
|
||||
|
||||
.. automodule:: aiogram.api.types.chat_photo
|
||||
.. automodule:: aiogram.types.chat_photo
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a result of an inline query that was chosen by the user and sent to t
|
|||
|
||||
Note: It is necessary to enable inline feedback via @Botfather in order to receive these objects in updates.
|
||||
|
||||
.. automodule:: aiogram.api.types.chosen_inline_result
|
||||
.. automodule:: aiogram.types.chosen_inline_result
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Contact
|
|||
|
||||
This object represents a phone contact.
|
||||
|
||||
.. automodule:: aiogram.api.types.contact
|
||||
.. automodule:: aiogram.types.contact
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Dice
|
|||
|
||||
This object represents an animated emoji that displays a random value.
|
||||
|
||||
.. automodule:: aiogram.api.types.dice
|
||||
.. automodule:: aiogram.types.dice
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Document
|
|||
|
||||
This object represents a general file (as opposed to photos, voice messages and audio files).
|
||||
|
||||
.. automodule:: aiogram.api.types.document
|
||||
.. automodule:: aiogram.types.document
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ EncryptedCredentials
|
|||
|
||||
Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.
|
||||
|
||||
.. automodule:: aiogram.api.types.encrypted_credentials
|
||||
.. automodule:: aiogram.types.encrypted_credentials
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ EncryptedPassportElement
|
|||
|
||||
Contains information about documents or other Telegram Passport elements shared with the bot by the user.
|
||||
|
||||
.. automodule:: aiogram.api.types.encrypted_passport_element
|
||||
.. automodule:: aiogram.types.encrypted_passport_element
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ This object represents a file ready to be downloaded. The file can be downloaded
|
|||
|
||||
Maximum file size to download is 20 MB
|
||||
|
||||
.. automodule:: aiogram.api.types.file
|
||||
.. automodule:: aiogram.types.file
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ Guide the user through a step-by-step process. 'Please send me your question', '
|
|||
|
||||
The last option is definitely more attractive. And if you use ForceReply in your bot's questions, it will receive the user's answers even if it only receives replies, commands and mentions — without any extra work for the user.
|
||||
|
||||
.. automodule:: aiogram.api.types.force_reply
|
||||
.. automodule:: aiogram.types.force_reply
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Game
|
|||
|
||||
This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.
|
||||
|
||||
.. automodule:: aiogram.api.types.game
|
||||
.. automodule:: aiogram.types.game
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ And that's about all we've got for now.
|
|||
|
||||
If you've got any questions, please check out our Bot FAQ
|
||||
|
||||
.. automodule:: aiogram.api.types.game_high_score
|
||||
.. automodule:: aiogram.types.game_high_score
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
Types
|
||||
#####
|
||||
|
||||
All types is also wrapped with `pydantic <https://pydantic-docs.helpmanual.io/>`_ and placed in `aiogram.api.types` package.
|
||||
All types is also wrapped with `pydantic <https://pydantic-docs.helpmanual.io/>`_ and placed in `aiogram.types` package.
|
||||
In this place makes some more differences with official documentations:
|
||||
|
||||
- name :attr:`from` was renamed to :attr:`from_user` in due to :attr:`from` is an `keyword in python <https://docs.python.org/3/reference/lexical_analysis.html#keywords>`_
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InlineKeyboardButton
|
|||
|
||||
This object represents one button of an inline keyboard. You must use exactly one of the optional fields.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_keyboard_button
|
||||
.. automodule:: aiogram.types.inline_keyboard_button
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ This object represents an inline keyboard that appears right next to the message
|
|||
|
||||
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will display unsupported message.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_keyboard_markup
|
||||
.. automodule:: aiogram.types.inline_keyboard_markup
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InlineQuery
|
|||
|
||||
This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query
|
||||
.. automodule:: aiogram.types.inline_query
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ This object represents one result of an inline query. Telegram clients currently
|
|||
|
||||
- InlineQueryResultVoice
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result
|
||||
.. automodule:: aiogram.types.inline_query_result
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InlineQueryResultArticle
|
|||
|
||||
Represents a link to an article or web page.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_article
|
||||
.. automodule:: aiogram.types.inline_query_result_article
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a link to an MP3 audio file. By default, this audio file will be sent
|
|||
|
||||
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_audio
|
||||
.. automodule:: aiogram.types.inline_query_result_audio
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a link to an MP3 audio file stored on the Telegram servers. By defaul
|
|||
|
||||
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_cached_audio
|
||||
.. automodule:: aiogram.types.inline_query_result_cached_audio
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a link to a file stored on the Telegram servers. By default, this fil
|
|||
|
||||
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_cached_document
|
||||
.. automodule:: aiogram.types.inline_query_result_cached_document
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InlineQueryResultCachedGif
|
|||
|
||||
Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_cached_gif
|
||||
.. automodule:: aiogram.types.inline_query_result_cached_gif
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InlineQueryResultCachedMpeg4Gif
|
|||
|
||||
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_cached_mpeg4_gif
|
||||
.. automodule:: aiogram.types.inline_query_result_cached_mpeg4_gif
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InlineQueryResultCachedPhoto
|
|||
|
||||
Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_cached_photo
|
||||
.. automodule:: aiogram.types.inline_query_result_cached_photo
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a link to a sticker stored on the Telegram servers. By default, this
|
|||
|
||||
Note: This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for animated stickers. Older clients will ignore them.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_cached_sticker
|
||||
.. automodule:: aiogram.types.inline_query_result_cached_sticker
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InlineQueryResultCachedVideo
|
|||
|
||||
Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_cached_video
|
||||
.. automodule:: aiogram.types.inline_query_result_cached_video
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a link to a voice message stored on the Telegram servers. By default,
|
|||
|
||||
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_cached_voice
|
||||
.. automodule:: aiogram.types.inline_query_result_cached_voice
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a contact with a phone number. By default, this contact will be sent
|
|||
|
||||
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_contact
|
||||
.. automodule:: aiogram.types.inline_query_result_contact
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a link to a file. By default, this file will be sent by the user with
|
|||
|
||||
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_document
|
||||
.. automodule:: aiogram.types.inline_query_result_document
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a Game.
|
|||
|
||||
Note: This will only work in Telegram versions released after October 1, 2016. Older clients will not display any inline results if a game result is among them.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_game
|
||||
.. automodule:: aiogram.types.inline_query_result_game
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InlineQueryResultGif
|
|||
|
||||
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_gif
|
||||
.. automodule:: aiogram.types.inline_query_result_gif
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a location on a map. By default, the location will be sent by the use
|
|||
|
||||
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_location
|
||||
.. automodule:: aiogram.types.inline_query_result_location
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InlineQueryResultMpeg4Gif
|
|||
|
||||
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_mpeg4_gif
|
||||
.. automodule:: aiogram.types.inline_query_result_mpeg4_gif
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InlineQueryResultPhoto
|
|||
|
||||
Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_photo
|
||||
.. automodule:: aiogram.types.inline_query_result_photo
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a venue. By default, the venue will be sent by the user. Alternativel
|
|||
|
||||
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_venue
|
||||
.. automodule:: aiogram.types.inline_query_result_venue
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a link to a page containing an embedded video player or a video file.
|
|||
|
||||
If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_video
|
||||
.. automodule:: aiogram.types.inline_query_result_video
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Represents a link to a voice recording in an .OGG container encoded with OPUS. B
|
|||
|
||||
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
|
||||
|
||||
.. automodule:: aiogram.api.types.inline_query_result_voice
|
||||
.. automodule:: aiogram.types.inline_query_result_voice
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InputContactMessageContent
|
|||
|
||||
Represents the content of a contact message to be sent as the result of an inline query.
|
||||
|
||||
.. automodule:: aiogram.api.types.input_contact_message_content
|
||||
.. automodule:: aiogram.types.input_contact_message_content
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InputFile
|
|||
|
||||
This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.
|
||||
|
||||
.. automodule:: aiogram.api.types.input_file
|
||||
.. automodule:: aiogram.types.input_file
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InputLocationMessageContent
|
|||
|
||||
Represents the content of a location message to be sent as the result of an inline query.
|
||||
|
||||
.. automodule:: aiogram.api.types.input_location_message_content
|
||||
.. automodule:: aiogram.types.input_location_message_content
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ This object represents the content of a media message to be sent. It should be o
|
|||
|
||||
- InputMediaVideo
|
||||
|
||||
.. automodule:: aiogram.api.types.input_media
|
||||
.. automodule:: aiogram.types.input_media
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InputMediaAnimation
|
|||
|
||||
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
|
||||
|
||||
.. automodule:: aiogram.api.types.input_media_animation
|
||||
.. automodule:: aiogram.types.input_media_animation
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InputMediaAudio
|
|||
|
||||
Represents an audio file to be treated as music to be sent.
|
||||
|
||||
.. automodule:: aiogram.api.types.input_media_audio
|
||||
.. automodule:: aiogram.types.input_media_audio
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InputMediaDocument
|
|||
|
||||
Represents a general file to be sent.
|
||||
|
||||
.. automodule:: aiogram.api.types.input_media_document
|
||||
.. automodule:: aiogram.types.input_media_document
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InputMediaPhoto
|
|||
|
||||
Represents a photo to be sent.
|
||||
|
||||
.. automodule:: aiogram.api.types.input_media_photo
|
||||
.. automodule:: aiogram.types.input_media_photo
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InputMediaVideo
|
|||
|
||||
Represents a video to be sent.
|
||||
|
||||
.. automodule:: aiogram.api.types.input_media_video
|
||||
.. automodule:: aiogram.types.input_media_video
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ This object represents the content of a message to be sent as a result of an inl
|
|||
|
||||
- InputContactMessageContent
|
||||
|
||||
.. automodule:: aiogram.api.types.input_message_content
|
||||
.. automodule:: aiogram.types.input_message_content
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InputTextMessageContent
|
|||
|
||||
Represents the content of a text message to be sent as the result of an inline query.
|
||||
|
||||
.. automodule:: aiogram.api.types.input_text_message_content
|
||||
.. automodule:: aiogram.types.input_text_message_content
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ InputVenueMessageContent
|
|||
|
||||
Represents the content of a venue message to be sent as the result of an inline query.
|
||||
|
||||
.. automodule:: aiogram.api.types.input_venue_message_content
|
||||
.. automodule:: aiogram.types.input_venue_message_content
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Invoice
|
|||
|
||||
This object contains basic information about an invoice.
|
||||
|
||||
.. automodule:: aiogram.api.types.invoice
|
||||
.. automodule:: aiogram.types.invoice
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Note: request_contact and request_location options will only work in Telegram ve
|
|||
|
||||
Note: request_poll option will only work in Telegram versions released after 23 January, 2020. Older clients will display unsupported message.
|
||||
|
||||
.. automodule:: aiogram.api.types.keyboard_button
|
||||
.. automodule:: aiogram.types.keyboard_button
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ KeyboardButtonPollType
|
|||
|
||||
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
|
||||
|
||||
.. automodule:: aiogram.api.types.keyboard_button_poll_type
|
||||
.. automodule:: aiogram.types.keyboard_button_poll_type
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ LabeledPrice
|
|||
|
||||
This object represents a portion of the price for goods or services.
|
||||
|
||||
.. automodule:: aiogram.api.types.labeled_price
|
||||
.. automodule:: aiogram.types.labeled_price
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Location
|
|||
|
||||
This object represents a point on the map.
|
||||
|
||||
.. automodule:: aiogram.api.types.location
|
||||
.. automodule:: aiogram.types.location
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Telegram apps support these buttons as of version 5.7.
|
|||
|
||||
Sample bot: @discussbot
|
||||
|
||||
.. automodule:: aiogram.api.types.login_url
|
||||
.. automodule:: aiogram.types.login_url
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ MaskPosition
|
|||
|
||||
This object describes the position on faces where a mask should be placed by default.
|
||||
|
||||
.. automodule:: aiogram.api.types.mask_position
|
||||
.. automodule:: aiogram.types.mask_position
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Message
|
|||
|
||||
This object represents a message.
|
||||
|
||||
.. automodule:: aiogram.api.types.message
|
||||
.. automodule:: aiogram.types.message
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ MessageEntity
|
|||
|
||||
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
|
||||
|
||||
.. automodule:: aiogram.api.types.message_entity
|
||||
.. automodule:: aiogram.types.message_entity
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ OrderInfo
|
|||
|
||||
This object represents information about an order.
|
||||
|
||||
.. automodule:: aiogram.api.types.order_info
|
||||
.. automodule:: aiogram.types.order_info
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PassportData
|
|||
|
||||
Contains information about Telegram Passport data shared with the bot by the user.
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_data
|
||||
.. automodule:: aiogram.types.passport_data
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ This object represents an error in the Telegram Passport element which was submi
|
|||
|
||||
- PassportElementErrorUnspecified
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_element_error
|
||||
.. automodule:: aiogram.types.passport_element_error
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PassportElementErrorDataField
|
|||
|
||||
Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_element_error_data_field
|
||||
.. automodule:: aiogram.types.passport_element_error_data_field
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PassportElementErrorFile
|
|||
|
||||
Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_element_error_file
|
||||
.. automodule:: aiogram.types.passport_element_error_file
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PassportElementErrorFiles
|
|||
|
||||
Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_element_error_files
|
||||
.. automodule:: aiogram.types.passport_element_error_files
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PassportElementErrorFrontSide
|
|||
|
||||
Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_element_error_front_side
|
||||
.. automodule:: aiogram.types.passport_element_error_front_side
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PassportElementErrorReverseSide
|
|||
|
||||
Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_element_error_reverse_side
|
||||
.. automodule:: aiogram.types.passport_element_error_reverse_side
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PassportElementErrorSelfie
|
|||
|
||||
Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_element_error_selfie
|
||||
.. automodule:: aiogram.types.passport_element_error_selfie
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PassportElementErrorTranslationFile
|
|||
|
||||
Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_element_error_translation_file
|
||||
.. automodule:: aiogram.types.passport_element_error_translation_file
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PassportElementErrorTranslationFiles
|
|||
|
||||
Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change.
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_element_error_translation_files
|
||||
.. automodule:: aiogram.types.passport_element_error_translation_files
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PassportElementErrorUnspecified
|
|||
|
||||
Represents an issue in an unspecified place. The error is considered resolved when new data is added.
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_element_error_unspecified
|
||||
.. automodule:: aiogram.types.passport_element_error_unspecified
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PassportFile
|
|||
|
||||
This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.
|
||||
|
||||
.. automodule:: aiogram.api.types.passport_file
|
||||
.. automodule:: aiogram.types.passport_file
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PhotoSize
|
|||
|
||||
This object represents one size of a photo or a file / sticker thumbnail.
|
||||
|
||||
.. automodule:: aiogram.api.types.photo_size
|
||||
.. automodule:: aiogram.types.photo_size
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Poll
|
|||
|
||||
This object contains information about a poll.
|
||||
|
||||
.. automodule:: aiogram.api.types.poll
|
||||
.. automodule:: aiogram.types.poll
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PollAnswer
|
|||
|
||||
This object represents an answer of a user in a non-anonymous poll.
|
||||
|
||||
.. automodule:: aiogram.api.types.poll_answer
|
||||
.. automodule:: aiogram.types.poll_answer
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PollOption
|
|||
|
||||
This object contains information about one answer option in a poll.
|
||||
|
||||
.. automodule:: aiogram.api.types.poll_option
|
||||
.. automodule:: aiogram.types.poll_option
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ PreCheckoutQuery
|
|||
|
||||
This object contains information about an incoming pre-checkout query.
|
||||
|
||||
.. automodule:: aiogram.api.types.pre_checkout_query
|
||||
.. automodule:: aiogram.types.pre_checkout_query
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ ReplyKeyboardMarkup
|
|||
|
||||
This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).
|
||||
|
||||
.. automodule:: aiogram.api.types.reply_keyboard_markup
|
||||
.. automodule:: aiogram.types.reply_keyboard_markup
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ ReplyKeyboardRemove
|
|||
|
||||
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup).
|
||||
|
||||
.. automodule:: aiogram.api.types.reply_keyboard_remove
|
||||
.. automodule:: aiogram.types.reply_keyboard_remove
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ ResponseParameters
|
|||
|
||||
Contains information about why a request was unsuccessful.
|
||||
|
||||
.. automodule:: aiogram.api.types.response_parameters
|
||||
.. automodule:: aiogram.types.response_parameters
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ ShippingAddress
|
|||
|
||||
This object represents a shipping address.
|
||||
|
||||
.. automodule:: aiogram.api.types.shipping_address
|
||||
.. automodule:: aiogram.types.shipping_address
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ ShippingOption
|
|||
|
||||
This object represents one shipping option.
|
||||
|
||||
.. automodule:: aiogram.api.types.shipping_option
|
||||
.. automodule:: aiogram.types.shipping_option
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ ShippingQuery
|
|||
|
||||
This object contains information about an incoming shipping query.
|
||||
|
||||
.. automodule:: aiogram.api.types.shipping_query
|
||||
.. automodule:: aiogram.types.shipping_query
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Sticker
|
|||
|
||||
This object represents a sticker.
|
||||
|
||||
.. automodule:: aiogram.api.types.sticker
|
||||
.. automodule:: aiogram.types.sticker
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ StickerSet
|
|||
|
||||
This object represents a sticker set.
|
||||
|
||||
.. automodule:: aiogram.api.types.sticker_set
|
||||
.. automodule:: aiogram.types.sticker_set
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ SuccessfulPayment
|
|||
|
||||
This object contains basic information about a successful payment.
|
||||
|
||||
.. automodule:: aiogram.api.types.successful_payment
|
||||
.. automodule:: aiogram.types.successful_payment
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ This object represents an incoming update.
|
|||
|
||||
At most one of the optional parameters can be present in any given update.
|
||||
|
||||
.. automodule:: aiogram.api.types.update
|
||||
.. automodule:: aiogram.types.update
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ User
|
|||
|
||||
This object represents a Telegram user or bot.
|
||||
|
||||
.. automodule:: aiogram.api.types.user
|
||||
.. automodule:: aiogram.types.user
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ UserProfilePhotos
|
|||
|
||||
This object represent a user's profile pictures.
|
||||
|
||||
.. automodule:: aiogram.api.types.user_profile_photos
|
||||
.. automodule:: aiogram.types.user_profile_photos
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Venue
|
|||
|
||||
This object represents a venue.
|
||||
|
||||
.. automodule:: aiogram.api.types.venue
|
||||
.. automodule:: aiogram.types.venue
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Video
|
|||
|
||||
This object represents a video file.
|
||||
|
||||
.. automodule:: aiogram.api.types.video
|
||||
.. automodule:: aiogram.types.video
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ VideoNote
|
|||
|
||||
This object represents a video message (available in Telegram apps as of v.4.0).
|
||||
|
||||
.. automodule:: aiogram.api.types.video_note
|
||||
.. automodule:: aiogram.types.video_note
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Voice
|
|||
|
||||
This object represents a voice note.
|
||||
|
||||
.. automodule:: aiogram.api.types.voice
|
||||
.. automodule:: aiogram.types.voice
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ WebhookInfo
|
|||
|
||||
Contains information about the current status of a webhook.
|
||||
|
||||
.. automodule:: aiogram.api.types.webhook_info
|
||||
.. automodule:: aiogram.types.webhook_info
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue