From 3da419c4349eb5bb1380ca74f9fd3169a8e988a0 Mon Sep 17 00:00:00 2001 From: JRoot Junior Date: Sun, 8 Sep 2024 14:04:43 +0300 Subject: [PATCH] Update newly generated shortcuts to Bot API 7.10 --- aiogram/types/inaccessible_message.py | 14 ++++++++++---- docs/api/methods/send_animation.rst | 4 ++-- docs/api/methods/send_audio.rst | 4 ++-- docs/api/methods/send_contact.rst | 4 ++-- docs/api/methods/send_dice.rst | 4 ++-- docs/api/methods/send_document.rst | 4 ++-- docs/api/methods/send_game.rst | 4 ++-- docs/api/methods/send_invoice.rst | 4 ++-- docs/api/methods/send_location.rst | 4 ++-- docs/api/methods/send_media_group.rst | 4 ++-- docs/api/methods/send_message.rst | 4 ++-- docs/api/methods/send_paid_media.rst | 4 ++-- docs/api/methods/send_photo.rst | 4 ++-- docs/api/methods/send_poll.rst | 4 ++-- docs/api/methods/send_sticker.rst | 4 ++-- docs/api/methods/send_venue.rst | 4 ++-- docs/api/methods/send_video.rst | 4 ++-- docs/api/methods/send_video_note.rst | 4 ++-- docs/api/methods/send_voice.rst | 4 ++-- 19 files changed, 46 insertions(+), 40 deletions(-) diff --git a/aiogram/types/inaccessible_message.py b/aiogram/types/inaccessible_message.py index 2fa6a08e..b1e92818 100644 --- a/aiogram/types/inaccessible_message.py +++ b/aiogram/types/inaccessible_message.py @@ -1039,7 +1039,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): :param title: Product name, 1-32 characters :param description: Product description, 1-255 characters - :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. + :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. :param currency: Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_. :param prices: Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in `Telegram Stars `_. :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only @@ -1155,7 +1155,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): :param title: Product name, 1-32 characters :param description: Product description, 1-255 characters - :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. + :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. :param currency: Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_. :param prices: Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in `Telegram Stars `_. :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only @@ -2715,6 +2715,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): star_count: int, media: List[Union[InputPaidMediaPhoto, InputPaidMediaVideo]], business_connection_id: Optional[str] = None, + payload: Optional[str] = None, caption: Optional[str] = None, parse_mode: Optional[str] = None, caption_entities: Optional[List[MessageEntity]] = None, @@ -2737,9 +2738,10 @@ class InaccessibleMessage(MaybeInaccessibleMessage): Source: https://core.telegram.org/bots/api#sendpaidmedia - :param star_count: The number of Telegram Stars that must be paid to buy access to the media + :param star_count: The number of Telegram Stars that must be paid to buy access to the media; 1-2500 :param media: A JSON-serialized array describing the media to be sent; up to 10 items :param business_connection_id: Unique identifier of the business connection on behalf of which the message will be sent + :param payload: Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes. :param caption: Media caption, 0-1024 characters after entities parsing :param parse_mode: Mode for parsing entities in the media caption. See `formatting options `_ for more details. :param caption_entities: A JSON-serialized list of special entities that appear in the caption, which can be specified instead of *parse_mode* @@ -2764,6 +2766,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): star_count=star_count, media=media, business_connection_id=business_connection_id, + payload=payload, caption=caption, parse_mode=parse_mode, caption_entities=caption_entities, @@ -2780,6 +2783,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): star_count: int, media: List[Union[InputPaidMediaPhoto, InputPaidMediaVideo]], business_connection_id: Optional[str] = None, + payload: Optional[str] = None, caption: Optional[str] = None, parse_mode: Optional[str] = None, caption_entities: Optional[List[MessageEntity]] = None, @@ -2802,9 +2806,10 @@ class InaccessibleMessage(MaybeInaccessibleMessage): Source: https://core.telegram.org/bots/api#sendpaidmedia - :param star_count: The number of Telegram Stars that must be paid to buy access to the media + :param star_count: The number of Telegram Stars that must be paid to buy access to the media; 1-2500 :param media: A JSON-serialized array describing the media to be sent; up to 10 items :param business_connection_id: Unique identifier of the business connection on behalf of which the message will be sent + :param payload: Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes. :param caption: Media caption, 0-1024 characters after entities parsing :param parse_mode: Mode for parsing entities in the media caption. See `formatting options `_ for more details. :param caption_entities: A JSON-serialized list of special entities that appear in the caption, which can be specified instead of *parse_mode* @@ -2829,6 +2834,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): star_count=star_count, media=media, business_connection_id=business_connection_id, + payload=payload, caption=caption, parse_mode=parse_mode, caption_entities=caption_entities, diff --git a/docs/api/methods/send_animation.rst b/docs/api/methods/send_animation.rst index cdc738f8..5ca79893 100644 --- a/docs/api/methods/send_animation.rst +++ b/docs/api/methods/send_animation.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_animation` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation` -- :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 d90e3aef..0f6c16a6 100644 --- a/docs/api/methods/send_audio.rst +++ b/docs/api/methods/send_audio.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_audio` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio` -- :meth:`aiogram.types.message.Message.answer_audio` -- :meth:`aiogram.types.message.Message.reply_audio` diff --git a/docs/api/methods/send_contact.rst b/docs/api/methods/send_contact.rst index c0650e4d..7c30d2b8 100644 --- a/docs/api/methods/send_contact.rst +++ b/docs/api/methods/send_contact.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_contact` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact` -- :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 166b3610..ad4e4d20 100644 --- a/docs/api/methods/send_dice.rst +++ b/docs/api/methods/send_dice.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_dice` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice` -- :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 d222d57b..2d3c358d 100644 --- a/docs/api/methods/send_document.rst +++ b/docs/api/methods/send_document.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_document` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_document` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_document` -- :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 5674c184..da31edaa 100644 --- a/docs/api/methods/send_game.rst +++ b/docs/api/methods/send_game.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_game` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_game` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_game` -- :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 7aa24778..00e2e745 100644 --- a/docs/api/methods/send_invoice.rst +++ b/docs/api/methods/send_invoice.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice` -- :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 3b7d2bc8..8a73ac80 100644 --- a/docs/api/methods/send_location.rst +++ b/docs/api/methods/send_location.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_location` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_location` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_location` -- :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 4d724a13..149640f4 100644 --- a/docs/api/methods/send_media_group.rst +++ b/docs/api/methods/send_media_group.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group` -- :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 c21e1125..7596c28d 100644 --- a/docs/api/methods/send_message.rst +++ b/docs/api/methods/send_message.rst @@ -48,10 +48,10 @@ As reply into Webhook in handler As shortcut from received object -------------------------------- +- :meth:`aiogram.types.message.Message.answer` +- :meth:`aiogram.types.message.Message.reply` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply` -- :meth:`aiogram.types.message.Message.answer` -- :meth:`aiogram.types.message.Message.reply` diff --git a/docs/api/methods/send_paid_media.rst b/docs/api/methods/send_paid_media.rst index 0d3717e8..fe380a8f 100644 --- a/docs/api/methods/send_paid_media.rst +++ b/docs/api/methods/send_paid_media.rst @@ -48,7 +48,7 @@ As reply into Webhook in handler As shortcut from received object -------------------------------- -- :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media` -- :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media` - :meth:`aiogram.types.message.Message.answer_paid_media` - :meth:`aiogram.types.message.Message.reply_paid_media` +- :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media` +- :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media` diff --git a/docs/api/methods/send_photo.rst b/docs/api/methods/send_photo.rst index 1671d324..1470274c 100644 --- a/docs/api/methods/send_photo.rst +++ b/docs/api/methods/send_photo.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_photo` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo` -- :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 8e88a930..b37cd9e8 100644 --- a/docs/api/methods/send_poll.rst +++ b/docs/api/methods/send_poll.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_poll` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll` -- :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 d338c5b1..4b22c805 100644 --- a/docs/api/methods/send_sticker.rst +++ b/docs/api/methods/send_sticker.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker` -- :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 db816864..de53528e 100644 --- a/docs/api/methods/send_venue.rst +++ b/docs/api/methods/send_venue.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_venue` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue` -- :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 2811c9a6..87731278 100644 --- a/docs/api/methods/send_video.rst +++ b/docs/api/methods/send_video.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_video` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_video` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_video` -- :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 216c00e1..78255cc8 100644 --- a/docs/api/methods/send_video_note.rst +++ b/docs/api/methods/send_video_note.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note` -- :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 3a623951..3b4bb0c9 100644 --- a/docs/api/methods/send_voice.rst +++ b/docs/api/methods/send_voice.rst @@ -48,10 +48,10 @@ 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` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_voice` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm` - :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice` - :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice` -- :meth:`aiogram.types.message.Message.answer_voice` -- :meth:`aiogram.types.message.Message.reply_voice`