diff --git a/.butcher/templates/enums/index.rst.jinja2 b/.butcher/templates/enums/index.rst.jinja2 index 4dd55eb2..9cbf463a 100644 --- a/.butcher/templates/enums/index.rst.jinja2 +++ b/.butcher/templates/enums/index.rst.jinja2 @@ -1,5 +1,5 @@ ##### -Types +Enums ##### Here is list of all available enums: diff --git a/.butcher/templates/methods/entity.rst.jinja2 b/.butcher/templates/methods/entity.rst.jinja2 index 3e3ab837..d2843b17 100755 --- a/.butcher/templates/methods/entity.rst.jinja2 +++ b/.butcher/templates/methods/entity.rst.jinja2 @@ -47,7 +47,7 @@ As reply into Webhook in handler {% if aliased %} As shortcut from received object -------------------- +-------------------------------- {% for alias in aliased %} - :meth:`aiogram.types.{{ alias.type|pythonize_name }}.{{ alias.type|pythonize_class_name }}.{{ alias.name }}` {%- endfor %} diff --git a/.butcher/types/ErrorEvent/replace.yml b/.butcher/types/ErrorEvent/replace.yml new file mode 100644 index 00000000..aea86aff --- /dev/null +++ b/.butcher/types/ErrorEvent/replace.yml @@ -0,0 +1,2 @@ +bases: + - _ErrorEvent diff --git a/aiogram/client/bot.py b/aiogram/client/bot.py index 25f96bca..ca06a62d 100644 --- a/aiogram/client/bot.py +++ b/aiogram/client/bot.py @@ -175,10 +175,6 @@ T = TypeVar("T") class Bot(ContextInstanceMixin["Bot"]): - """ - Bot class - """ - def __init__( self, token: str, @@ -186,6 +182,8 @@ class Bot(ContextInstanceMixin["Bot"]): parse_mode: Optional[str] = None, ) -> None: """ + Bot class + :param token: Telegram Bot token `Obtained from @BotFather `_ :param session: HTTP Client session (For example AiohttpSession). If not specified it will be automatically created. @@ -234,6 +232,11 @@ class Bot(ContextInstanceMixin["Bot"]): self.reset_current(token) async def me(self) -> User: + """ + Cached alias for getMe method + + :return: + """ if self._me is None: # pragma: no cover self._me = await self.get_me() return self._me diff --git a/aiogram/types/__init__.py b/aiogram/types/__init__.py index b1174eb1..91d19870 100644 --- a/aiogram/types/__init__.py +++ b/aiogram/types/__init__.py @@ -36,6 +36,7 @@ from .document import Document from .downloadable import Downloadable from .encrypted_credentials import EncryptedCredentials from .encrypted_passport_element import EncryptedPassportElement +from .error_event import ErrorEvent from .file import File from .force_reply import ForceReply from .forum_topic import ForumTopic @@ -141,150 +142,151 @@ from .web_app_info import WebAppInfo from .webhook_info import WebhookInfo __all__ = ( - "TelegramObject", - "Downloadable", - "UNSET", - "BufferedInputFile", - "FSInputFile", - "URLInputFile", - "Update", - "WebhookInfo", - "User", - "Chat", - "Message", - "ContentType", - "MessageId", - "MessageEntity", - "PhotoSize", "Animation", "Audio", - "Document", - "Video", - "VideoNote", - "Voice", - "Contact", - "Dice", - "PollOption", - "PollAnswer", - "Poll", - "Location", - "Venue", - "WebAppData", - "ProximityAlertTriggered", - "MessageAutoDeleteTimerChanged", - "ForumTopicCreated", - "ForumTopicClosed", - "ForumTopicReopened", - "VideoChatScheduled", - "VideoChatStarted", - "VideoChatEnded", - "VideoChatParticipantsInvited", - "UserProfilePhotos", - "File", - "WebAppInfo", - "ReplyKeyboardMarkup", - "KeyboardButton", - "KeyboardButtonPollType", - "ReplyKeyboardRemove", - "InlineKeyboardMarkup", - "InlineKeyboardButton", - "LoginUrl", - "CallbackQuery", - "ForceReply", - "ChatPhoto", - "ChatInviteLink", - "ChatAdministratorRights", - "ChatMember", - "ChatMemberOwner", - "ChatMemberAdministrator", - "ChatMemberMember", - "ChatMemberRestricted", - "ChatMemberLeft", - "ChatMemberBanned", - "ChatMemberUpdated", - "ChatJoinRequest", - "ChatPermissions", - "ChatLocation", - "ForumTopic", "BotCommand", "BotCommandScope", - "BotCommandScopeDefault", - "BotCommandScopeAllPrivateChats", - "BotCommandScopeAllGroupChats", "BotCommandScopeAllChatAdministrators", + "BotCommandScopeAllGroupChats", + "BotCommandScopeAllPrivateChats", "BotCommandScopeChat", "BotCommandScopeChatAdministrators", "BotCommandScopeChatMember", - "MenuButton", - "MenuButtonCommands", - "MenuButtonWebApp", - "MenuButtonDefault", - "ResponseParameters", - "InputMedia", - "InputMediaPhoto", - "InputMediaVideo", - "InputMediaAnimation", - "InputMediaAudio", - "InputMediaDocument", - "InputFile", - "Sticker", - "StickerSet", - "MaskPosition", + "BotCommandScopeDefault", + "BufferedInputFile", + "CallbackGame", + "CallbackQuery", + "Chat", + "ChatAdministratorRights", + "ChatInviteLink", + "ChatJoinRequest", + "ChatLocation", + "ChatMember", + "ChatMemberAdministrator", + "ChatMemberBanned", + "ChatMemberLeft", + "ChatMemberMember", + "ChatMemberOwner", + "ChatMemberRestricted", + "ChatMemberUpdated", + "ChatPermissions", + "ChatPhoto", + "ChosenInlineResult", + "Contact", + "ContentType", + "Dice", + "Document", + "Downloadable", + "EncryptedCredentials", + "EncryptedPassportElement", + "ErrorEvent", + "FSInputFile", + "File", + "ForceReply", + "ForumTopic", + "ForumTopicClosed", + "ForumTopicCreated", + "ForumTopicReopened", + "Game", + "GameHighScore", + "InlineKeyboardButton", + "InlineKeyboardMarkup", "InlineQuery", "InlineQueryResult", "InlineQueryResultArticle", - "InlineQueryResultPhoto", - "InlineQueryResultGif", - "InlineQueryResultMpeg4Gif", - "InlineQueryResultVideo", "InlineQueryResultAudio", - "InlineQueryResultVoice", - "InlineQueryResultDocument", - "InlineQueryResultLocation", - "InlineQueryResultVenue", - "InlineQueryResultContact", - "InlineQueryResultGame", - "InlineQueryResultCachedPhoto", + "InlineQueryResultCachedAudio", + "InlineQueryResultCachedDocument", "InlineQueryResultCachedGif", "InlineQueryResultCachedMpeg4Gif", + "InlineQueryResultCachedPhoto", "InlineQueryResultCachedSticker", - "InlineQueryResultCachedDocument", "InlineQueryResultCachedVideo", "InlineQueryResultCachedVoice", - "InlineQueryResultCachedAudio", + "InlineQueryResultContact", + "InlineQueryResultDocument", + "InlineQueryResultGame", + "InlineQueryResultGif", + "InlineQueryResultLocation", + "InlineQueryResultMpeg4Gif", + "InlineQueryResultPhoto", + "InlineQueryResultVenue", + "InlineQueryResultVideo", + "InlineQueryResultVoice", + "InputContactMessageContent", + "InputFile", + "InputInvoiceMessageContent", + "InputLocationMessageContent", + "InputMedia", + "InputMediaAnimation", + "InputMediaAudio", + "InputMediaDocument", + "InputMediaPhoto", + "InputMediaVideo", "InputMessageContent", "InputTextMessageContent", - "InputLocationMessageContent", "InputVenueMessageContent", - "InputContactMessageContent", - "InputInvoiceMessageContent", - "ChosenInlineResult", - "SentWebAppMessage", - "LabeledPrice", "Invoice", - "ShippingAddress", + "KeyboardButton", + "KeyboardButtonPollType", + "LabeledPrice", + "Location", + "LoginUrl", + "MaskPosition", + "MenuButton", + "MenuButtonCommands", + "MenuButtonDefault", + "MenuButtonWebApp", + "Message", + "MessageAutoDeleteTimerChanged", + "MessageEntity", + "MessageId", "OrderInfo", - "ShippingOption", - "SuccessfulPayment", - "ShippingQuery", - "PreCheckoutQuery", "PassportData", - "PassportFile", - "EncryptedPassportElement", - "EncryptedCredentials", "PassportElementError", "PassportElementErrorDataField", + "PassportElementErrorFile", + "PassportElementErrorFiles", "PassportElementErrorFrontSide", "PassportElementErrorReverseSide", "PassportElementErrorSelfie", - "PassportElementErrorFile", - "PassportElementErrorFiles", "PassportElementErrorTranslationFile", "PassportElementErrorTranslationFiles", "PassportElementErrorUnspecified", - "Game", - "CallbackGame", - "GameHighScore", + "PassportFile", + "PhotoSize", + "Poll", + "PollAnswer", + "PollOption", + "PreCheckoutQuery", + "ProximityAlertTriggered", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ResponseParameters", + "SentWebAppMessage", + "ShippingAddress", + "ShippingOption", + "ShippingQuery", + "Sticker", + "StickerSet", + "SuccessfulPayment", + "TelegramObject", + "UNSET", + "URLInputFile", + "Update", + "User", + "UserProfilePhotos", + "Venue", + "Video", + "VideoChatEnded", + "VideoChatParticipantsInvited", + "VideoChatScheduled", + "VideoChatStarted", + "VideoNote", + "Voice", + "WebAppData", + "WebAppInfo", + "WebhookInfo", ) # Load typing forward refs for every TelegramObject diff --git a/aiogram/types/error_event.py b/aiogram/types/error_event.py index ef376a16..6579e910 100644 --- a/aiogram/types/error_event.py +++ b/aiogram/types/error_event.py @@ -2,15 +2,19 @@ from aiogram.types import Update from aiogram.types.base import MutableTelegramObject -class ErrorEvent(MutableTelegramObject): +class _ErrorEvent(MutableTelegramObject): + class Config: + arbitrary_types_allowed = True + + +class ErrorEvent(_ErrorEvent): """ Internal event, should be used to receive errors while processing Updates from Telegram + + Source: https://core.telegram.org/bots/api#error-event """ update: Update """Received update""" exception: Exception """Exception""" - - class Config: - arbitrary_types_allowed = True diff --git a/docs/api/bot.rst b/docs/api/bot.rst index 3ee89dc2..215c4b5b 100644 --- a/docs/api/bot.rst +++ b/docs/api/bot.rst @@ -15,3 +15,4 @@ For example :code:`sendMessage` named :code:`send_message` and has the same spec :member-order: bysource :special-members: __init__ :undoc-members: True + :noindex: diff --git a/docs/api/enums/index.rst b/docs/api/enums/index.rst index a95836a0..0e208fce 100644 --- a/docs/api/enums/index.rst +++ b/docs/api/enums/index.rst @@ -1,5 +1,5 @@ ##### -Types +Enums ##### Here is list of all available enums: diff --git a/docs/api/methods/answer_callback_query.rst b/docs/api/methods/answer_callback_query.rst index bf23fa70..aadbc1fa 100644 --- a/docs/api/methods/answer_callback_query.rst +++ b/docs/api/methods/answer_callback_query.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.callback_query.CallbackQuery.answer` diff --git a/docs/api/methods/answer_inline_query.rst b/docs/api/methods/answer_inline_query.rst index ff4bc5ff..79b46888 100644 --- a/docs/api/methods/answer_inline_query.rst +++ b/docs/api/methods/answer_inline_query.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.inline_query.InlineQuery.answer` diff --git a/docs/api/methods/approve_chat_join_request.rst b/docs/api/methods/approve_chat_join_request.rst index b7ad222d..0f54f2a8 100644 --- a/docs/api/methods/approve_chat_join_request.rst +++ b/docs/api/methods/approve_chat_join_request.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.approve` diff --git a/docs/api/methods/ban_chat_member.rst b/docs/api/methods/ban_chat_member.rst index 58c6d753..a28db5df 100644 --- a/docs/api/methods/ban_chat_member.rst +++ b/docs/api/methods/ban_chat_member.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.ban` diff --git a/docs/api/methods/ban_chat_sender_chat.rst b/docs/api/methods/ban_chat_sender_chat.rst index 17fd7525..68b2fba5 100644 --- a/docs/api/methods/ban_chat_sender_chat.rst +++ b/docs/api/methods/ban_chat_sender_chat.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.ban_sender_chat` diff --git a/docs/api/methods/copy_message.rst b/docs/api/methods/copy_message.rst index 955fdc5c..92edcb1a 100644 --- a/docs/api/methods/copy_message.rst +++ b/docs/api/methods/copy_message.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.copy_to` diff --git a/docs/api/methods/create_chat_invite_link.rst b/docs/api/methods/create_chat_invite_link.rst index 6e210214..1543a40f 100644 --- a/docs/api/methods/create_chat_invite_link.rst +++ b/docs/api/methods/create_chat_invite_link.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.create_invite_link` diff --git a/docs/api/methods/decline_chat_join_request.rst b/docs/api/methods/decline_chat_join_request.rst index 9febbdb0..b0ba4a24 100644 --- a/docs/api/methods/decline_chat_join_request.rst +++ b/docs/api/methods/decline_chat_join_request.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.decline` diff --git a/docs/api/methods/delete_chat_photo.rst b/docs/api/methods/delete_chat_photo.rst index 10e541cc..c218a1c0 100644 --- a/docs/api/methods/delete_chat_photo.rst +++ b/docs/api/methods/delete_chat_photo.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.delete_photo` diff --git a/docs/api/methods/delete_chat_sticker_set.rst b/docs/api/methods/delete_chat_sticker_set.rst index 0e852c91..f8472556 100644 --- a/docs/api/methods/delete_chat_sticker_set.rst +++ b/docs/api/methods/delete_chat_sticker_set.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.delete_sticker_set` diff --git a/docs/api/methods/delete_message.rst b/docs/api/methods/delete_message.rst index dfb24eea..4e6ee2ef 100644 --- a/docs/api/methods/delete_message.rst +++ b/docs/api/methods/delete_message.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.delete` - :meth:`aiogram.types.chat.Chat.delete_message` diff --git a/docs/api/methods/delete_sticker_from_set.rst b/docs/api/methods/delete_sticker_from_set.rst index eb62ad2f..f00d3a9d 100644 --- a/docs/api/methods/delete_sticker_from_set.rst +++ b/docs/api/methods/delete_sticker_from_set.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.sticker.Sticker.delete_from_set` diff --git a/docs/api/methods/edit_chat_invite_link.rst b/docs/api/methods/edit_chat_invite_link.rst index 633712ac..a1543b3e 100644 --- a/docs/api/methods/edit_chat_invite_link.rst +++ b/docs/api/methods/edit_chat_invite_link.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.edit_invite_link` diff --git a/docs/api/methods/edit_message_caption.rst b/docs/api/methods/edit_message_caption.rst index 00a1ec97..cb90bba3 100644 --- a/docs/api/methods/edit_message_caption.rst +++ b/docs/api/methods/edit_message_caption.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.edit_caption` diff --git a/docs/api/methods/edit_message_live_location.rst b/docs/api/methods/edit_message_live_location.rst index 234d9673..edeb5353 100644 --- a/docs/api/methods/edit_message_live_location.rst +++ b/docs/api/methods/edit_message_live_location.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.edit_live_location` diff --git a/docs/api/methods/edit_message_media.rst b/docs/api/methods/edit_message_media.rst index 60a49d28..faa4c6c2 100644 --- a/docs/api/methods/edit_message_media.rst +++ b/docs/api/methods/edit_message_media.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.edit_media` diff --git a/docs/api/methods/edit_message_reply_markup.rst b/docs/api/methods/edit_message_reply_markup.rst index 8a8a770b..d8db9a2b 100644 --- a/docs/api/methods/edit_message_reply_markup.rst +++ b/docs/api/methods/edit_message_reply_markup.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.edit_reply_markup` diff --git a/docs/api/methods/edit_message_text.rst b/docs/api/methods/edit_message_text.rst index 99a23f29..0098e9a1 100644 --- a/docs/api/methods/edit_message_text.rst +++ b/docs/api/methods/edit_message_text.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.edit_text` diff --git a/docs/api/methods/export_chat_invite_link.rst b/docs/api/methods/export_chat_invite_link.rst index 3ba3fb9e..c9bd9945 100644 --- a/docs/api/methods/export_chat_invite_link.rst +++ b/docs/api/methods/export_chat_invite_link.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.export_invite_link` diff --git a/docs/api/methods/forward_message.rst b/docs/api/methods/forward_message.rst index e896e936..38465cf5 100644 --- a/docs/api/methods/forward_message.rst +++ b/docs/api/methods/forward_message.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.forward` diff --git a/docs/api/methods/get_chat_administrators.rst b/docs/api/methods/get_chat_administrators.rst index c94ae15d..f56966d2 100644 --- a/docs/api/methods/get_chat_administrators.rst +++ b/docs/api/methods/get_chat_administrators.rst @@ -40,6 +40,6 @@ With specific bot As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.get_administrators` diff --git a/docs/api/methods/get_chat_member.rst b/docs/api/methods/get_chat_member.rst index 3668addd..6155fb24 100644 --- a/docs/api/methods/get_chat_member.rst +++ b/docs/api/methods/get_chat_member.rst @@ -40,6 +40,6 @@ With specific bot As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.get_member` diff --git a/docs/api/methods/get_chat_member_count.rst b/docs/api/methods/get_chat_member_count.rst index 1bb3f309..ec4497b6 100644 --- a/docs/api/methods/get_chat_member_count.rst +++ b/docs/api/methods/get_chat_member_count.rst @@ -40,6 +40,6 @@ With specific bot As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.get_member_count` diff --git a/docs/api/methods/get_chat_members_count.rst b/docs/api/methods/get_chat_members_count.rst deleted file mode 100644 index 1a11da5b..00000000 --- a/docs/api/methods/get_chat_members_count.rst +++ /dev/null @@ -1,37 +0,0 @@ -################### -getChatMembersCount -################### - -Returns: :obj:`int` - -.. automodule:: aiogram.methods.get_chat_members_count - :members: - :member-order: bysource - :undoc-members: True - - -Usage -===== - -As bot method -------------- - -.. code-block:: - - result: int = await bot.get_chat_members_count(...) - - -Method as object ----------------- - -Imports: - -- :code:`from aiogram.methods.get_chat_members_count import GetChatMembersCount` -- alias: :code:`from aiogram.methods import GetChatMembersCount` - -With specific bot -~~~~~~~~~~~~~~~~~ - -.. code-block:: python - - result: int = await bot(GetChatMembersCount(...)) diff --git a/docs/api/methods/get_user_profile_photos.rst b/docs/api/methods/get_user_profile_photos.rst index 4e8bcd57..f0c36a61 100644 --- a/docs/api/methods/get_user_profile_photos.rst +++ b/docs/api/methods/get_user_profile_photos.rst @@ -40,6 +40,6 @@ With specific bot As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.user.User.get_profile_photos` diff --git a/docs/api/methods/kick_chat_member.rst b/docs/api/methods/kick_chat_member.rst deleted file mode 100644 index 5c80b773..00000000 --- a/docs/api/methods/kick_chat_member.rst +++ /dev/null @@ -1,44 +0,0 @@ -############## -kickChatMember -############## - -Returns: :obj:`bool` - -.. automodule:: aiogram.methods.kick_chat_member - :members: - :member-order: bysource - :undoc-members: True - - -Usage -===== - -As bot method -------------- - -.. code-block:: - - result: bool = await bot.kick_chat_member(...) - - -Method as object ----------------- - -Imports: - -- :code:`from aiogram.methods.kick_chat_member import KickChatMember` -- alias: :code:`from aiogram.methods import KickChatMember` - -With specific bot -~~~~~~~~~~~~~~~~~ - -.. code-block:: python - - result: bool = await bot(KickChatMember(...)) - -As reply into Webhook in handler -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. code-block:: python - - return KickChatMember(...) diff --git a/docs/api/methods/leave_chat.rst b/docs/api/methods/leave_chat.rst index 3c4a4994..8c84e324 100644 --- a/docs/api/methods/leave_chat.rst +++ b/docs/api/methods/leave_chat.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.leave` diff --git a/docs/api/methods/pin_chat_message.rst b/docs/api/methods/pin_chat_message.rst index 72e21daa..11de4e53 100644 --- a/docs/api/methods/pin_chat_message.rst +++ b/docs/api/methods/pin_chat_message.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.pin` - :meth:`aiogram.types.chat.Chat.pin_message` diff --git a/docs/api/methods/promote_chat_member.rst b/docs/api/methods/promote_chat_member.rst index f3b0a90b..aada3f05 100644 --- a/docs/api/methods/promote_chat_member.rst +++ b/docs/api/methods/promote_chat_member.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.promote` diff --git a/docs/api/methods/restrict_chat_member.rst b/docs/api/methods/restrict_chat_member.rst index 5143fad7..b063b8b1 100644 --- a/docs/api/methods/restrict_chat_member.rst +++ b/docs/api/methods/restrict_chat_member.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.restrict` diff --git a/docs/api/methods/revoke_chat_invite_link.rst b/docs/api/methods/revoke_chat_invite_link.rst index 7eb77030..f8293be2 100644 --- a/docs/api/methods/revoke_chat_invite_link.rst +++ b/docs/api/methods/revoke_chat_invite_link.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.revoke_invite_link` diff --git a/docs/api/methods/send_animation.rst b/docs/api/methods/send_animation.rst index eac9b2d2..220bf5ba 100644 --- a/docs/api/methods/send_animation.rst +++ b/docs/api/methods/send_animation.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_animation` - :meth:`aiogram.types.message.Message.reply_animation` diff --git a/docs/api/methods/send_audio.rst b/docs/api/methods/send_audio.rst index 4324941c..877478ba 100644 --- a/docs/api/methods/send_audio.rst +++ b/docs/api/methods/send_audio.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_audio` - :meth:`aiogram.types.message.Message.reply_audio` diff --git a/docs/api/methods/send_chat_action.rst b/docs/api/methods/send_chat_action.rst index f26cc6e2..c1ad9e61 100644 --- a/docs/api/methods/send_chat_action.rst +++ b/docs/api/methods/send_chat_action.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.do` diff --git a/docs/api/methods/send_contact.rst b/docs/api/methods/send_contact.rst index 9579f03d..05af5b1e 100644 --- a/docs/api/methods/send_contact.rst +++ b/docs/api/methods/send_contact.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_contact` - :meth:`aiogram.types.message.Message.reply_contact` diff --git a/docs/api/methods/send_dice.rst b/docs/api/methods/send_dice.rst index 4a5651e1..5e1548f7 100644 --- a/docs/api/methods/send_dice.rst +++ b/docs/api/methods/send_dice.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_dice` - :meth:`aiogram.types.message.Message.reply_dice` diff --git a/docs/api/methods/send_document.rst b/docs/api/methods/send_document.rst index bab06f49..60d9d0b0 100644 --- a/docs/api/methods/send_document.rst +++ b/docs/api/methods/send_document.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_document` - :meth:`aiogram.types.message.Message.reply_document` diff --git a/docs/api/methods/send_game.rst b/docs/api/methods/send_game.rst index 2ac4ea0d..d145c430 100644 --- a/docs/api/methods/send_game.rst +++ b/docs/api/methods/send_game.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_game` - :meth:`aiogram.types.message.Message.reply_game` diff --git a/docs/api/methods/send_invoice.rst b/docs/api/methods/send_invoice.rst index 7cf9cb4e..1e5ce258 100644 --- a/docs/api/methods/send_invoice.rst +++ b/docs/api/methods/send_invoice.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_invoice` - :meth:`aiogram.types.message.Message.reply_invoice` diff --git a/docs/api/methods/send_location.rst b/docs/api/methods/send_location.rst index 36440e72..3c52df75 100644 --- a/docs/api/methods/send_location.rst +++ b/docs/api/methods/send_location.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_location` - :meth:`aiogram.types.message.Message.reply_location` diff --git a/docs/api/methods/send_media_group.rst b/docs/api/methods/send_media_group.rst index da29d4e6..fe0f8e03 100644 --- a/docs/api/methods/send_media_group.rst +++ b/docs/api/methods/send_media_group.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_media_group` - :meth:`aiogram.types.message.Message.reply_media_group` diff --git a/docs/api/methods/send_message.rst b/docs/api/methods/send_message.rst index a725b5c3..9edb4bf3 100644 --- a/docs/api/methods/send_message.rst +++ b/docs/api/methods/send_message.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer` - :meth:`aiogram.types.message.Message.reply` diff --git a/docs/api/methods/send_photo.rst b/docs/api/methods/send_photo.rst index 18da67b2..85fb0921 100644 --- a/docs/api/methods/send_photo.rst +++ b/docs/api/methods/send_photo.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_photo` - :meth:`aiogram.types.message.Message.reply_photo` diff --git a/docs/api/methods/send_poll.rst b/docs/api/methods/send_poll.rst index 83278e6f..14e10d19 100644 --- a/docs/api/methods/send_poll.rst +++ b/docs/api/methods/send_poll.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_poll` - :meth:`aiogram.types.message.Message.reply_poll` diff --git a/docs/api/methods/send_sticker.rst b/docs/api/methods/send_sticker.rst index 2d334d84..395fb12b 100644 --- a/docs/api/methods/send_sticker.rst +++ b/docs/api/methods/send_sticker.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_sticker` - :meth:`aiogram.types.message.Message.reply_sticker` diff --git a/docs/api/methods/send_venue.rst b/docs/api/methods/send_venue.rst index 81d379f7..4985cbc1 100644 --- a/docs/api/methods/send_venue.rst +++ b/docs/api/methods/send_venue.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_venue` - :meth:`aiogram.types.message.Message.reply_venue` diff --git a/docs/api/methods/send_video.rst b/docs/api/methods/send_video.rst index 028879a7..a8e6e1b4 100644 --- a/docs/api/methods/send_video.rst +++ b/docs/api/methods/send_video.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_video` - :meth:`aiogram.types.message.Message.reply_video` diff --git a/docs/api/methods/send_video_note.rst b/docs/api/methods/send_video_note.rst index 6d173046..aa27c198 100644 --- a/docs/api/methods/send_video_note.rst +++ b/docs/api/methods/send_video_note.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_video_note` - :meth:`aiogram.types.message.Message.reply_video_note` diff --git a/docs/api/methods/send_voice.rst b/docs/api/methods/send_voice.rst index 2cde6907..3742cdb3 100644 --- a/docs/api/methods/send_voice.rst +++ b/docs/api/methods/send_voice.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.answer_voice` - :meth:`aiogram.types.message.Message.reply_voice` diff --git a/docs/api/methods/set_chat_administrator_custom_title.rst b/docs/api/methods/set_chat_administrator_custom_title.rst index 90083347..60d8df84 100644 --- a/docs/api/methods/set_chat_administrator_custom_title.rst +++ b/docs/api/methods/set_chat_administrator_custom_title.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.set_administrator_custom_title` diff --git a/docs/api/methods/set_chat_description.rst b/docs/api/methods/set_chat_description.rst index 8d7bb8b2..85cd7d48 100644 --- a/docs/api/methods/set_chat_description.rst +++ b/docs/api/methods/set_chat_description.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.set_description` diff --git a/docs/api/methods/set_chat_permissions.rst b/docs/api/methods/set_chat_permissions.rst index 859e3e12..7867065c 100644 --- a/docs/api/methods/set_chat_permissions.rst +++ b/docs/api/methods/set_chat_permissions.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.set_permissions` diff --git a/docs/api/methods/set_chat_photo.rst b/docs/api/methods/set_chat_photo.rst index 5335d919..ee7434f9 100644 --- a/docs/api/methods/set_chat_photo.rst +++ b/docs/api/methods/set_chat_photo.rst @@ -40,6 +40,6 @@ With specific bot As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.set_photo` diff --git a/docs/api/methods/set_chat_sticker_set.rst b/docs/api/methods/set_chat_sticker_set.rst index efbafcc2..eccd0da3 100644 --- a/docs/api/methods/set_chat_sticker_set.rst +++ b/docs/api/methods/set_chat_sticker_set.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.set_sticker_set` diff --git a/docs/api/methods/set_chat_title.rst b/docs/api/methods/set_chat_title.rst index e2701dd1..ffac0b6e 100644 --- a/docs/api/methods/set_chat_title.rst +++ b/docs/api/methods/set_chat_title.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.set_title` diff --git a/docs/api/methods/set_sticker_position_in_set.rst b/docs/api/methods/set_sticker_position_in_set.rst index dbc35813..04a8a9cf 100644 --- a/docs/api/methods/set_sticker_position_in_set.rst +++ b/docs/api/methods/set_sticker_position_in_set.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.sticker.Sticker.set_position_in_set` diff --git a/docs/api/methods/stop_message_live_location.rst b/docs/api/methods/stop_message_live_location.rst index 6f7400ca..74f105d1 100644 --- a/docs/api/methods/stop_message_live_location.rst +++ b/docs/api/methods/stop_message_live_location.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.stop_live_location` diff --git a/docs/api/methods/unban_chat_member.rst b/docs/api/methods/unban_chat_member.rst index 896d2e7d..0b588b70 100644 --- a/docs/api/methods/unban_chat_member.rst +++ b/docs/api/methods/unban_chat_member.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.unban` diff --git a/docs/api/methods/unban_chat_sender_chat.rst b/docs/api/methods/unban_chat_sender_chat.rst index d7165045..1fdfd5a3 100644 --- a/docs/api/methods/unban_chat_sender_chat.rst +++ b/docs/api/methods/unban_chat_sender_chat.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.unban_sender_chat` diff --git a/docs/api/methods/unpin_all_chat_messages.rst b/docs/api/methods/unpin_all_chat_messages.rst index 574bc9e2..854091e5 100644 --- a/docs/api/methods/unpin_all_chat_messages.rst +++ b/docs/api/methods/unpin_all_chat_messages.rst @@ -45,6 +45,6 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.chat.Chat.unpin_all_messages` diff --git a/docs/api/methods/unpin_chat_message.rst b/docs/api/methods/unpin_chat_message.rst index e86d09e1..9a03c08b 100644 --- a/docs/api/methods/unpin_chat_message.rst +++ b/docs/api/methods/unpin_chat_message.rst @@ -45,7 +45,7 @@ As reply into Webhook in handler As shortcut from received object -------------------- +-------------------------------- - :meth:`aiogram.types.message.Message.unpin` - :meth:`aiogram.types.chat.Chat.unpin_message` diff --git a/docs/api/types/index.rst b/docs/api/types/index.rst index d3de3be6..a5615062 100644 --- a/docs/api/types/index.rst +++ b/docs/api/types/index.rst @@ -190,3 +190,11 @@ Games callback_game game game_high_score + +Internals +========= + +.. toctree:: + :maxdepth: 1 + + error_event