mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update newly generated shortcuts to Bot API 7.10
This commit is contained in:
parent
386fc44a98
commit
3da419c434
19 changed files with 46 additions and 40 deletions
|
|
@ -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 <https://core.telegram.org/bots/payments#supported-currencies>`_. Pass 'XTR' for payments in `Telegram Stars <https://t.me/BotNews/90>`_.
|
||||
: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 <https://t.me/BotNews/90>`_.
|
||||
: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 <https://core.telegram.org/bots/payments#supported-currencies>`_. Pass 'XTR' for payments in `Telegram Stars <https://t.me/BotNews/90>`_.
|
||||
: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 <https://t.me/BotNews/90>`_.
|
||||
: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 <https://core.telegram.org/bots/api#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 <https://core.telegram.org/bots/api#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,
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue