diff --git a/CHANGES/952.feature.rst b/CHANGES/952.feature.rst index 3a855ccc..35015576 100644 --- a/CHANGES/952.feature.rst +++ b/CHANGES/952.feature.rst @@ -1 +1 @@ -Add missing shortcuts, added new enums, reworked old stuff +Added missing shortcuts, new enums, reworked old stuff diff --git a/docs/api/methods/answer_callback_query.rst b/docs/api/methods/answer_callback_query.rst index 3dc5096f..bf23fa70 100644 --- a/docs/api/methods/answer_callback_query.rst +++ b/docs/api/methods/answer_callback_query.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return AnswerCallbackQuery(...) + + +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 193f9fdf..ff4bc5ff 100644 --- a/docs/api/methods/answer_inline_query.rst +++ b/docs/api/methods/answer_inline_query.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return AnswerInlineQuery(...) + + +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 490c1d5b..b7ad222d 100644 --- a/docs/api/methods/approve_chat_join_request.rst +++ b/docs/api/methods/approve_chat_join_request.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return ApproveChatJoinRequest(...) + + +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 b5ff4bfe..58c6d753 100644 --- a/docs/api/methods/ban_chat_member.rst +++ b/docs/api/methods/ban_chat_member.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return BanChatMember(...) + + +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 435fd8b9..17fd7525 100644 --- a/docs/api/methods/ban_chat_sender_chat.rst +++ b/docs/api/methods/ban_chat_sender_chat.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return BanChatSenderChat(...) + + +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 ac8acb3d..955fdc5c 100644 --- a/docs/api/methods/copy_message.rst +++ b/docs/api/methods/copy_message.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return CopyMessage(...) + + +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 af2a47b5..6e210214 100644 --- a/docs/api/methods/create_chat_invite_link.rst +++ b/docs/api/methods/create_chat_invite_link.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return CreateChatInviteLink(...) + + +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 a0a82e99..9febbdb0 100644 --- a/docs/api/methods/decline_chat_join_request.rst +++ b/docs/api/methods/decline_chat_join_request.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return DeclineChatJoinRequest(...) + + +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 b80144d7..10e541cc 100644 --- a/docs/api/methods/delete_chat_photo.rst +++ b/docs/api/methods/delete_chat_photo.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return DeleteChatPhoto(...) + + +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 ef06d79d..0e852c91 100644 --- a/docs/api/methods/delete_chat_sticker_set.rst +++ b/docs/api/methods/delete_chat_sticker_set.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return DeleteChatStickerSet(...) + + +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 025954a8..dfb24eea 100644 --- a/docs/api/methods/delete_message.rst +++ b/docs/api/methods/delete_message.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return DeleteMessage(...) + + +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 a620464d..eb62ad2f 100644 --- a/docs/api/methods/delete_sticker_from_set.rst +++ b/docs/api/methods/delete_sticker_from_set.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return DeleteStickerFromSet(...) + + +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 c72f1d10..633712ac 100644 --- a/docs/api/methods/edit_chat_invite_link.rst +++ b/docs/api/methods/edit_chat_invite_link.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return EditChatInviteLink(...) + + +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 f1a40a48..00a1ec97 100644 --- a/docs/api/methods/edit_message_caption.rst +++ b/docs/api/methods/edit_message_caption.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return EditMessageCaption(...) + + +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 3d9ec289..234d9673 100644 --- a/docs/api/methods/edit_message_live_location.rst +++ b/docs/api/methods/edit_message_live_location.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return EditMessageLiveLocation(...) + + +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 efd8a3cb..60a49d28 100644 --- a/docs/api/methods/edit_message_media.rst +++ b/docs/api/methods/edit_message_media.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return EditMessageMedia(...) + + +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 050af021..8a8a770b 100644 --- a/docs/api/methods/edit_message_reply_markup.rst +++ b/docs/api/methods/edit_message_reply_markup.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return EditMessageReplyMarkup(...) + + +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 f75e944e..99a23f29 100644 --- a/docs/api/methods/edit_message_text.rst +++ b/docs/api/methods/edit_message_text.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return EditMessageText(...) + + +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 90c02f36..3ba3fb9e 100644 --- a/docs/api/methods/export_chat_invite_link.rst +++ b/docs/api/methods/export_chat_invite_link.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return ExportChatInviteLink(...) + + +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 2b02dfdc..e896e936 100644 --- a/docs/api/methods/forward_message.rst +++ b/docs/api/methods/forward_message.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return ForwardMessage(...) + + +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 04f2b41b..c94ae15d 100644 --- a/docs/api/methods/get_chat_administrators.rst +++ b/docs/api/methods/get_chat_administrators.rst @@ -35,3 +35,11 @@ With specific bot .. code-block:: python result: List[Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]] = await bot(GetChatAdministrators(...)) + + + + +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 46ee5c04..3668addd 100644 --- a/docs/api/methods/get_chat_member.rst +++ b/docs/api/methods/get_chat_member.rst @@ -35,3 +35,11 @@ With specific bot .. code-block:: python result: Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned] = await bot(GetChatMember(...)) + + + + +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 43858d92..1bb3f309 100644 --- a/docs/api/methods/get_chat_member_count.rst +++ b/docs/api/methods/get_chat_member_count.rst @@ -35,3 +35,11 @@ With specific bot .. code-block:: python result: int = await bot(GetChatMemberCount(...)) + + + + +As shortcut from received object +------------------- + +- :meth:`aiogram.types.chat.Chat.get_member_count` diff --git a/docs/api/methods/get_user_profile_photos.rst b/docs/api/methods/get_user_profile_photos.rst index 3ab9fe88..4e8bcd57 100644 --- a/docs/api/methods/get_user_profile_photos.rst +++ b/docs/api/methods/get_user_profile_photos.rst @@ -35,3 +35,11 @@ With specific bot .. code-block:: python result: UserProfilePhotos = await bot(GetUserProfilePhotos(...)) + + + + +As shortcut from received object +------------------- + +- :meth:`aiogram.types.user.User.get_profile_photos` diff --git a/docs/api/methods/leave_chat.rst b/docs/api/methods/leave_chat.rst index c88ee520..3c4a4994 100644 --- a/docs/api/methods/leave_chat.rst +++ b/docs/api/methods/leave_chat.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return LeaveChat(...) + + +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 ec730278..72e21daa 100644 --- a/docs/api/methods/pin_chat_message.rst +++ b/docs/api/methods/pin_chat_message.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return PinChatMessage(...) + + +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 e3081d97..f3b0a90b 100644 --- a/docs/api/methods/promote_chat_member.rst +++ b/docs/api/methods/promote_chat_member.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return PromoteChatMember(...) + + +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 0cf2a5af..5143fad7 100644 --- a/docs/api/methods/restrict_chat_member.rst +++ b/docs/api/methods/restrict_chat_member.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return RestrictChatMember(...) + + +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 d643c901..7eb77030 100644 --- a/docs/api/methods/revoke_chat_invite_link.rst +++ b/docs/api/methods/revoke_chat_invite_link.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return RevokeChatInviteLink(...) + + +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 4372fc33..eac9b2d2 100644 --- a/docs/api/methods/send_animation.rst +++ b/docs/api/methods/send_animation.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendAnimation(...) + + +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 8aa40c8f..4324941c 100644 --- a/docs/api/methods/send_audio.rst +++ b/docs/api/methods/send_audio.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendAudio(...) + + +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 7a3100bd..f26cc6e2 100644 --- a/docs/api/methods/send_chat_action.rst +++ b/docs/api/methods/send_chat_action.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return SendChatAction(...) + + +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 ce576007..9579f03d 100644 --- a/docs/api/methods/send_contact.rst +++ b/docs/api/methods/send_contact.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendContact(...) + + +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 dbb0fd05..4a5651e1 100644 --- a/docs/api/methods/send_dice.rst +++ b/docs/api/methods/send_dice.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendDice(...) + + +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 1fb86b4e..bab06f49 100644 --- a/docs/api/methods/send_document.rst +++ b/docs/api/methods/send_document.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendDocument(...) + + +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 21cc7a8a..2ac4ea0d 100644 --- a/docs/api/methods/send_game.rst +++ b/docs/api/methods/send_game.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendGame(...) + + +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 e7fa0904..7cf9cb4e 100644 --- a/docs/api/methods/send_invoice.rst +++ b/docs/api/methods/send_invoice.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendInvoice(...) + + +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 d4dbfeb2..36440e72 100644 --- a/docs/api/methods/send_location.rst +++ b/docs/api/methods/send_location.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendLocation(...) + + +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 b57701d7..da29d4e6 100644 --- a/docs/api/methods/send_media_group.rst +++ b/docs/api/methods/send_media_group.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendMediaGroup(...) + + +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 4f72f163..a725b5c3 100644 --- a/docs/api/methods/send_message.rst +++ b/docs/api/methods/send_message.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendMessage(...) + + +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 38d54218..18da67b2 100644 --- a/docs/api/methods/send_photo.rst +++ b/docs/api/methods/send_photo.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendPhoto(...) + + +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 29e0a791..83278e6f 100644 --- a/docs/api/methods/send_poll.rst +++ b/docs/api/methods/send_poll.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendPoll(...) + + +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 4a1212e8..2d334d84 100644 --- a/docs/api/methods/send_sticker.rst +++ b/docs/api/methods/send_sticker.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendSticker(...) + + +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 5a8e0d3c..81d379f7 100644 --- a/docs/api/methods/send_venue.rst +++ b/docs/api/methods/send_venue.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendVenue(...) + + +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 2ee8a3dd..028879a7 100644 --- a/docs/api/methods/send_video.rst +++ b/docs/api/methods/send_video.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendVideo(...) + + +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 d53d91e0..6d173046 100644 --- a/docs/api/methods/send_video_note.rst +++ b/docs/api/methods/send_video_note.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendVideoNote(...) + + +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 397a4e75..2cde6907 100644 --- a/docs/api/methods/send_voice.rst +++ b/docs/api/methods/send_voice.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return SendVoice(...) + + +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 7b3deaf0..90083347 100644 --- a/docs/api/methods/set_chat_administrator_custom_title.rst +++ b/docs/api/methods/set_chat_administrator_custom_title.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return SetChatAdministratorCustomTitle(...) + + +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 2cb8f08e..8d7bb8b2 100644 --- a/docs/api/methods/set_chat_description.rst +++ b/docs/api/methods/set_chat_description.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return SetChatDescription(...) + + +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 8e546011..859e3e12 100644 --- a/docs/api/methods/set_chat_permissions.rst +++ b/docs/api/methods/set_chat_permissions.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return SetChatPermissions(...) + + +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 99ff36c2..5335d919 100644 --- a/docs/api/methods/set_chat_photo.rst +++ b/docs/api/methods/set_chat_photo.rst @@ -35,3 +35,11 @@ With specific bot .. code-block:: python result: bool = await bot(SetChatPhoto(...)) + + + + +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 a7cfcea1..efbafcc2 100644 --- a/docs/api/methods/set_chat_sticker_set.rst +++ b/docs/api/methods/set_chat_sticker_set.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return SetChatStickerSet(...) + + +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 739b817d..e2701dd1 100644 --- a/docs/api/methods/set_chat_title.rst +++ b/docs/api/methods/set_chat_title.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return SetChatTitle(...) + + +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 168dbe9c..dbc35813 100644 --- a/docs/api/methods/set_sticker_position_in_set.rst +++ b/docs/api/methods/set_sticker_position_in_set.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return SetStickerPositionInSet(...) + + +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 1ef6440a..6f7400ca 100644 --- a/docs/api/methods/stop_message_live_location.rst +++ b/docs/api/methods/stop_message_live_location.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return StopMessageLiveLocation(...) + + +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 fef8e7fe..896d2e7d 100644 --- a/docs/api/methods/unban_chat_member.rst +++ b/docs/api/methods/unban_chat_member.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return UnbanChatMember(...) + + +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 c694503b..d7165045 100644 --- a/docs/api/methods/unban_chat_sender_chat.rst +++ b/docs/api/methods/unban_chat_sender_chat.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return UnbanChatSenderChat(...) + + +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 4421245e..574bc9e2 100644 --- a/docs/api/methods/unpin_all_chat_messages.rst +++ b/docs/api/methods/unpin_all_chat_messages.rst @@ -42,3 +42,9 @@ As reply into Webhook in handler .. code-block:: python return UnpinAllChatMessages(...) + + +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 1531ec19..e86d09e1 100644 --- a/docs/api/methods/unpin_chat_message.rst +++ b/docs/api/methods/unpin_chat_message.rst @@ -42,3 +42,10 @@ As reply into Webhook in handler .. code-block:: python return UnpinChatMessage(...) + + +As shortcut from received object +------------------- + +- :meth:`aiogram.types.message.Message.unpin` +- :meth:`aiogram.types.chat.Chat.unpin_message`