From cd4e81185687fba24392fe2db36ff63383c388a3 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 8 Mar 2025 02:19:57 +0200 Subject: [PATCH 1/3] Refactor: Introduce Union types for streamlined type handling (#1649) * Refactor: Introduce Union types for streamlined type handling Implemented Union types across various modules to consolidate and simplify type annotations. This change replaces repetitive union declarations with reusable Union aliases, improving code readability and maintainability. Updates applied to affected classes, methods, and imports accordingly. * Refactor unions into type aliases for better reusability Replaced inline `Union` types with predefined aliases like `MediaUnion`, `ReplyMarkupUnion`, and `ChatIdUnion`. Simplifies type annotations, improves code readability, and reduces duplication. Added `media_union.py` for grouping related media types. * Refactor type unions with ResultChatMemberUnion and ResultMenuButtonUnion Replaced verbose type definitions of chat member and menu button unions with `ResultChatMemberUnion` and `ResultMenuButtonUnion` for improved readability and maintainability. Updated relevant methods, modules, and documentation to use the new type aliases consistently. * Added changelog --- CHANGES/1592.misc.rst | 5 + aiogram/client/bot.py | 510 +++++------------- aiogram/methods/answer_inline_query.py | 76 +-- aiogram/methods/answer_web_app_query.py | 72 +-- aiogram/methods/approve_chat_join_request.py | 7 +- aiogram/methods/ban_chat_member.py | 12 +- aiogram/methods/ban_chat_sender_chat.py | 7 +- aiogram/methods/base.py | 2 +- aiogram/methods/close_forum_topic.py | 7 +- aiogram/methods/close_general_forum_topic.py | 7 +- aiogram/methods/copy_message.py | 30 +- aiogram/methods/copy_messages.py | 12 +- aiogram/methods/create_chat_invite_link.py | 13 +- .../create_chat_subscription_invite_link.py | 13 +- aiogram/methods/create_forum_topic.py | 8 +- aiogram/methods/decline_chat_join_request.py | 7 +- aiogram/methods/delete_chat_photo.py | 7 +- aiogram/methods/delete_chat_sticker_set.py | 7 +- aiogram/methods/delete_forum_topic.py | 7 +- aiogram/methods/delete_message.py | 11 +- aiogram/methods/delete_messages.py | 7 +- aiogram/methods/delete_my_commands.py | 36 +- aiogram/methods/edit_chat_invite_link.py | 13 +- .../edit_chat_subscription_invite_link.py | 8 +- aiogram/methods/edit_forum_topic.py | 7 +- aiogram/methods/edit_general_forum_topic.py | 7 +- aiogram/methods/edit_message_caption.py | 6 +- aiogram/methods/edit_message_live_location.py | 6 +- aiogram/methods/edit_message_media.py | 26 +- aiogram/methods/edit_message_reply_markup.py | 6 +- aiogram/methods/edit_message_text.py | 12 +- aiogram/methods/export_chat_invite_link.py | 7 +- aiogram/methods/forward_message.py | 17 +- aiogram/methods/forward_messages.py | 12 +- aiogram/methods/get_chat.py | 8 +- aiogram/methods/get_chat_administrators.py | 41 +- aiogram/methods/get_chat_member.py | 37 +- aiogram/methods/get_chat_member_count.py | 7 +- aiogram/methods/get_chat_menu_button.py | 10 +- aiogram/methods/get_my_commands.py | 37 +- aiogram/methods/get_user_chat_boosts.py | 8 +- aiogram/methods/hide_general_forum_topic.py | 7 +- aiogram/methods/leave_chat.py | 7 +- aiogram/methods/pin_chat_message.py | 7 +- aiogram/methods/promote_chat_member.py | 7 +- aiogram/methods/remove_chat_verification.py | 7 +- aiogram/methods/reopen_forum_topic.py | 7 +- aiogram/methods/reopen_general_forum_topic.py | 7 +- aiogram/methods/restrict_chat_member.py | 13 +- aiogram/methods/revoke_chat_invite_link.py | 12 +- .../methods/save_prepared_inline_message.py | 70 +-- aiogram/methods/send_animation.py | 23 +- aiogram/methods/send_audio.py | 23 +- aiogram/methods/send_chat_action.py | 7 +- aiogram/methods/send_contact.py | 21 +- aiogram/methods/send_dice.py | 21 +- aiogram/methods/send_document.py | 23 +- aiogram/methods/send_gift.py | 7 +- aiogram/methods/send_invoice.py | 12 +- aiogram/methods/send_location.py | 21 +- aiogram/methods/send_media_group.py | 19 +- aiogram/methods/send_message.py | 18 +- aiogram/methods/send_paid_media.py | 27 +- aiogram/methods/send_photo.py | 24 +- aiogram/methods/send_poll.py | 30 +- aiogram/methods/send_sticker.py | 24 +- aiogram/methods/send_venue.py | 21 +- aiogram/methods/send_video.py | 33 +- aiogram/methods/send_video_note.py | 23 +- aiogram/methods/send_voice.py | 24 +- .../set_chat_administrator_custom_title.py | 7 +- aiogram/methods/set_chat_description.py | 7 +- aiogram/methods/set_chat_menu_button.py | 10 +- aiogram/methods/set_chat_permissions.py | 8 +- aiogram/methods/set_chat_photo.py | 12 +- aiogram/methods/set_chat_sticker_set.py | 7 +- aiogram/methods/set_chat_title.py | 7 +- aiogram/methods/set_message_reaction.py | 16 +- aiogram/methods/set_my_commands.py | 37 +- aiogram/methods/set_passport_data_errors.py | 42 +- aiogram/methods/set_sticker_set_thumbnail.py | 8 +- aiogram/methods/set_user_emoji_status.py | 12 +- aiogram/methods/stop_message_live_location.py | 6 +- aiogram/methods/stop_poll.py | 8 +- aiogram/methods/unban_chat_member.py | 7 +- aiogram/methods/unban_chat_sender_chat.py | 7 +- aiogram/methods/unhide_general_forum_topic.py | 7 +- aiogram/methods/unpin_all_chat_messages.py | 7 +- .../methods/unpin_all_forum_topic_messages.py | 7 +- .../unpin_all_general_forum_topic_messages.py | 8 +- aiogram/methods/unpin_chat_message.py | 7 +- aiogram/methods/verify_chat.py | 7 +- aiogram/types/__init__.py | 50 ++ aiogram/types/background_fill_union.py | 11 + aiogram/types/background_type_fill.py | 12 +- aiogram/types/background_type_pattern.py | 12 +- aiogram/types/background_type_union.py | 12 + aiogram/types/bot_command_scope_chat.py | 9 +- .../bot_command_scope_chat_administrators.py | 9 +- .../types/bot_command_scope_chat_member.py | 9 +- aiogram/types/bot_command_scope_union.py | 23 + aiogram/types/callback_query.py | 9 +- aiogram/types/chat.py | 26 +- aiogram/types/chat_background.py | 24 +- aiogram/types/chat_boost.py | 12 +- aiogram/types/chat_boost_removed.py | 12 +- aiogram/types/chat_boost_source_union.py | 11 + aiogram/types/chat_full_info.py | 14 +- aiogram/types/chat_id_union.py | 5 + aiogram/types/chat_join_request.py | 178 ++---- aiogram/types/chat_member_union.py | 19 + aiogram/types/chat_member_updated.py | 139 ++--- aiogram/types/date_time_union.py | 6 + aiogram/types/external_reply_info.py | 15 +- aiogram/types/inaccessible_message.py | 193 +++---- aiogram/types/inline_query.py | 48 +- aiogram/types/inline_query_result_article.py | 24 +- aiogram/types/inline_query_result_audio.py | 26 +- .../types/inline_query_result_cached_audio.py | 26 +- .../inline_query_result_cached_document.py | 26 +- .../types/inline_query_result_cached_gif.py | 26 +- .../inline_query_result_cached_mpeg4_gif.py | 26 +- .../types/inline_query_result_cached_photo.py | 26 +- .../inline_query_result_cached_sticker.py | 28 +- .../types/inline_query_result_cached_video.py | 26 +- .../types/inline_query_result_cached_voice.py | 26 +- aiogram/types/inline_query_result_contact.py | 28 +- aiogram/types/inline_query_result_document.py | 26 +- aiogram/types/inline_query_result_gif.py | 26 +- aiogram/types/inline_query_result_location.py | 28 +- .../types/inline_query_result_mpeg4_gif.py | 26 +- aiogram/types/inline_query_result_photo.py | 26 +- aiogram/types/inline_query_result_union.py | 47 ++ aiogram/types/inline_query_result_venue.py | 28 +- aiogram/types/inline_query_result_video.py | 26 +- aiogram/types/inline_query_result_voice.py | 26 +- aiogram/types/input_file_union.py | 7 + aiogram/types/input_media_animation.py | 5 +- aiogram/types/input_media_audio.py | 5 +- aiogram/types/input_media_document.py | 5 +- aiogram/types/input_media_photo.py | 6 +- aiogram/types/input_media_union.py | 13 + aiogram/types/input_media_video.py | 15 +- aiogram/types/input_message_content_union.py | 17 + aiogram/types/input_paid_media_photo.py | 8 +- aiogram/types/input_paid_media_union.py | 8 + aiogram/types/input_paid_media_video.py | 17 +- aiogram/types/input_poll_option_union.py | 7 + aiogram/types/input_sticker.py | 8 +- .../types/maybe_inaccessible_message_union.py | 8 + aiogram/types/media_union.py | 8 + aiogram/types/menu_button_union.py | 9 + aiogram/types/message.py | 246 +++------ aiogram/types/message_origin_union.py | 12 + aiogram/types/message_reaction_updated.py | 18 +- aiogram/types/paid_media_info.py | 10 +- aiogram/types/paid_media_union.py | 9 + aiogram/types/passport_element_error_union.py | 27 + aiogram/types/prepared_inline_message.py | 10 +- aiogram/types/reaction_count.py | 10 +- aiogram/types/reaction_type_union.py | 9 + aiogram/types/reply_markup_union.py | 12 + aiogram/types/reply_parameters.py | 5 +- aiogram/types/result_chat_member_union.py | 17 + aiogram/types/result_menu_button_union.py | 7 + .../types/revenue_withdrawal_state_union.py | 11 + aiogram/types/star_transaction.py | 60 +-- aiogram/types/transaction_partner_fragment.py | 22 +- aiogram/types/transaction_partner_union.py | 21 + aiogram/types/transaction_partner_user.py | 12 +- docs/api/methods/get_chat_administrators.rst | 6 +- docs/api/methods/get_chat_member.rst | 6 +- docs/api/methods/get_chat_menu_button.rst | 6 +- 173 files changed, 1452 insertions(+), 2562 deletions(-) create mode 100644 CHANGES/1592.misc.rst create mode 100644 aiogram/types/background_fill_union.py create mode 100644 aiogram/types/background_type_union.py create mode 100644 aiogram/types/bot_command_scope_union.py create mode 100644 aiogram/types/chat_boost_source_union.py create mode 100644 aiogram/types/chat_id_union.py create mode 100644 aiogram/types/chat_member_union.py create mode 100644 aiogram/types/date_time_union.py create mode 100644 aiogram/types/inline_query_result_union.py create mode 100644 aiogram/types/input_file_union.py create mode 100644 aiogram/types/input_media_union.py create mode 100644 aiogram/types/input_message_content_union.py create mode 100644 aiogram/types/input_paid_media_union.py create mode 100644 aiogram/types/input_poll_option_union.py create mode 100644 aiogram/types/maybe_inaccessible_message_union.py create mode 100644 aiogram/types/media_union.py create mode 100644 aiogram/types/menu_button_union.py create mode 100644 aiogram/types/message_origin_union.py create mode 100644 aiogram/types/paid_media_union.py create mode 100644 aiogram/types/passport_element_error_union.py create mode 100644 aiogram/types/reaction_type_union.py create mode 100644 aiogram/types/reply_markup_union.py create mode 100644 aiogram/types/result_chat_member_union.py create mode 100644 aiogram/types/result_menu_button_union.py create mode 100644 aiogram/types/revenue_withdrawal_state_union.py create mode 100644 aiogram/types/transaction_partner_union.py diff --git a/CHANGES/1592.misc.rst b/CHANGES/1592.misc.rst new file mode 100644 index 00000000..dfbc0cb1 --- /dev/null +++ b/CHANGES/1592.misc.rst @@ -0,0 +1,5 @@ +Introduce Union types for streamlined type handling. + +Implemented Union types across various modules to consolidate and simplify type annotations. +This change replaces repetitive union declarations with reusable Union aliases, +improving code readability and maintainability. diff --git a/aiogram/client/bot.py b/aiogram/client/bot.py index f3e859f5..eb936a4a 100644 --- a/aiogram/client/bot.py +++ b/aiogram/client/bot.py @@ -1,6 +1,5 @@ from __future__ import annotations -import datetime import io import pathlib from contextlib import asynccontextmanager @@ -161,91 +160,47 @@ from ..methods import ( ) from ..types import ( BotCommand, - BotCommandScopeAllChatAdministrators, - BotCommandScopeAllGroupChats, - BotCommandScopeAllPrivateChats, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - BotCommandScopeDefault, + BotCommandScopeUnion, BotDescription, BotName, BotShortDescription, BusinessConnection, ChatAdministratorRights, ChatFullInfo, + ChatIdUnion, ChatInviteLink, - ChatMemberAdministrator, - ChatMemberBanned, - ChatMemberLeft, - ChatMemberMember, - ChatMemberOwner, - ChatMemberRestricted, ChatPermissions, + DateTimeUnion, Downloadable, File, - ForceReply, ForumTopic, GameHighScore, Gifts, InlineKeyboardMarkup, - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultContact, - InlineQueryResultDocument, - InlineQueryResultGame, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, InlineQueryResultsButton, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, + InlineQueryResultUnion, InputFile, - InputMediaAnimation, - InputMediaAudio, - InputMediaDocument, - InputMediaPhoto, - InputMediaVideo, - InputPaidMediaPhoto, - InputPaidMediaVideo, - InputPollOption, + InputFileUnion, + InputMediaUnion, + InputPaidMediaUnion, + InputPollOptionUnion, InputSticker, LabeledPrice, LinkPreviewOptions, MaskPosition, - MenuButtonCommands, - MenuButtonDefault, - MenuButtonWebApp, + MediaUnion, + MenuButtonUnion, Message, MessageEntity, MessageId, - PassportElementErrorDataField, - PassportElementErrorFile, - PassportElementErrorFiles, - PassportElementErrorFrontSide, - PassportElementErrorReverseSide, - PassportElementErrorSelfie, - PassportElementErrorTranslationFile, - PassportElementErrorTranslationFiles, - PassportElementErrorUnspecified, + PassportElementErrorUnion, Poll, PreparedInlineMessage, - ReactionTypeCustomEmoji, - ReactionTypeEmoji, - ReactionTypePaid, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReactionTypeUnion, + ReplyMarkupUnion, ReplyParameters, + ResultChatMemberUnion, + ResultMenuButtonUnion, SentWebAppMessage, ShippingOption, StarTransactions, @@ -579,30 +534,7 @@ class Bot: async def answer_inline_query( self, inline_query_id: str, - results: list[ - Union[ - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultContact, - InlineQueryResultGame, - InlineQueryResultDocument, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, - ] - ], + results: list[InlineQueryResultUnion], cache_time: Optional[int] = None, is_personal: Optional[bool] = None, next_offset: Optional[str] = None, @@ -700,28 +632,7 @@ class Bot: async def answer_web_app_query( self, web_app_query_id: str, - result: Union[ - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultContact, - InlineQueryResultGame, - InlineQueryResultDocument, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, - ], + result: InlineQueryResultUnion, request_timeout: Optional[int] = None, ) -> SentWebAppMessage: """ @@ -743,7 +654,7 @@ class Bot: async def approve_chat_join_request( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, request_timeout: Optional[int] = None, ) -> bool: @@ -766,9 +677,9 @@ class Bot: async def ban_chat_member( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, - until_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + until_date: Optional[DateTimeUnion] = None, revoke_messages: Optional[bool] = None, request_timeout: Optional[int] = None, ) -> bool: @@ -795,7 +706,7 @@ class Bot: async def ban_chat_sender_chat( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, sender_chat_id: int, request_timeout: Optional[int] = None, ) -> bool: @@ -834,7 +745,7 @@ class Bot: async def close_forum_topic( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: int, request_timeout: Optional[int] = None, ) -> bool: @@ -857,11 +768,11 @@ class Bot: async def copy_message( self, - chat_id: Union[int, str], - from_chat_id: Union[int, str], + chat_id: ChatIdUnion, + from_chat_id: ChatIdUnion, message_id: int, message_thread_id: Optional[int] = None, - video_start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + video_start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -872,9 +783,7 @@ class Bot: protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -926,9 +835,9 @@ class Bot: async def create_chat_invite_link( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, name: Optional[str] = None, - expire_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + expire_date: Optional[DateTimeUnion] = None, member_limit: Optional[int] = None, creates_join_request: Optional[bool] = None, request_timeout: Optional[int] = None, @@ -958,7 +867,7 @@ class Bot: async def create_forum_topic( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, name: str, icon_color: Optional[int] = None, icon_custom_emoji_id: Optional[str] = None, @@ -1108,7 +1017,7 @@ class Bot: async def decline_chat_join_request( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, request_timeout: Optional[int] = None, ) -> bool: @@ -1131,7 +1040,7 @@ class Bot: async def delete_chat_photo( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> bool: """ @@ -1151,7 +1060,7 @@ class Bot: async def delete_chat_sticker_set( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> bool: """ @@ -1171,7 +1080,7 @@ class Bot: async def delete_forum_topic( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: int, request_timeout: Optional[int] = None, ) -> bool: @@ -1194,7 +1103,7 @@ class Bot: async def delete_message( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_id: int, request_timeout: Optional[int] = None, ) -> bool: @@ -1235,17 +1144,7 @@ class Bot: async def delete_my_commands( self, - scope: Optional[ - Union[ - BotCommandScopeDefault, - BotCommandScopeAllPrivateChats, - BotCommandScopeAllGroupChats, - BotCommandScopeAllChatAdministrators, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - ] - ] = None, + scope: Optional[BotCommandScopeUnion] = None, language_code: Optional[str] = None, request_timeout: Optional[int] = None, ) -> bool: @@ -1308,10 +1207,10 @@ class Bot: async def edit_chat_invite_link( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, invite_link: str, name: Optional[str] = None, - expire_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + expire_date: Optional[DateTimeUnion] = None, member_limit: Optional[int] = None, creates_join_request: Optional[bool] = None, request_timeout: Optional[int] = None, @@ -1343,7 +1242,7 @@ class Bot: async def edit_forum_topic( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: int, name: Optional[str] = None, icon_custom_emoji_id: Optional[str] = None, @@ -1373,7 +1272,7 @@ class Bot: async def edit_message_caption( self, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, caption: Optional[str] = None, @@ -1421,7 +1320,7 @@ class Bot: latitude: float, longitude: float, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, live_period: Optional[int] = None, @@ -1468,15 +1367,9 @@ class Bot: async def edit_message_media( self, - media: Union[ - InputMediaAnimation, - InputMediaDocument, - InputMediaAudio, - InputMediaPhoto, - InputMediaVideo, - ], + media: InputMediaUnion, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, @@ -1510,7 +1403,7 @@ class Bot: async def edit_message_reply_markup( self, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, @@ -1543,7 +1436,7 @@ class Bot: self, text: str, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), @@ -1592,7 +1485,7 @@ class Bot: async def export_chat_invite_link( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> str: """ @@ -1614,11 +1507,11 @@ class Bot: async def forward_message( self, - chat_id: Union[int, str], - from_chat_id: Union[int, str], + chat_id: ChatIdUnion, + from_chat_id: ChatIdUnion, message_id: int, message_thread_id: Optional[int] = None, - video_start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + video_start_timestamp: Optional[DateTimeUnion] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), request_timeout: Optional[int] = None, @@ -1652,7 +1545,7 @@ class Bot: async def get_chat( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> ChatFullInfo: """ @@ -1672,18 +1565,9 @@ class Bot: async def get_chat_administrators( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, - ) -> list[ - Union[ - ChatMemberOwner, - ChatMemberAdministrator, - ChatMemberMember, - ChatMemberRestricted, - ChatMemberLeft, - ChatMemberBanned, - ] - ]: + ) -> list[ResultChatMemberUnion]: """ Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of :class:`aiogram.types.chat_member.ChatMember` objects. @@ -1701,17 +1585,10 @@ class Bot: async def get_chat_member( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, request_timeout: Optional[int] = None, - ) -> Union[ - ChatMemberOwner, - ChatMemberAdministrator, - ChatMemberMember, - ChatMemberRestricted, - ChatMemberLeft, - ChatMemberBanned, - ]: + ) -> ResultChatMemberUnion: """ Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a :class:`aiogram.types.chat_member.ChatMember` object on success. @@ -1731,7 +1608,7 @@ class Bot: async def get_chat_member_count( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> int: """ @@ -1753,7 +1630,7 @@ class Bot: self, chat_id: Optional[int] = None, request_timeout: Optional[int] = None, - ) -> Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands]: + ) -> ResultMenuButtonUnion: """ Use this method to get the current value of the bot's menu button in a private chat, or the default menu button. Returns :class:`aiogram.types.menu_button.MenuButton` on success. @@ -1875,17 +1752,7 @@ class Bot: async def get_my_commands( self, - scope: Optional[ - Union[ - BotCommandScopeDefault, - BotCommandScopeAllPrivateChats, - BotCommandScopeAllGroupChats, - BotCommandScopeAllChatAdministrators, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - ] - ] = None, + scope: Optional[BotCommandScopeUnion] = None, language_code: Optional[str] = None, request_timeout: Optional[int] = None, ) -> list[BotCommand]: @@ -2025,7 +1892,7 @@ class Bot: async def leave_chat( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> bool: """ @@ -2061,7 +1928,7 @@ class Bot: async def pin_chat_message( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_id: int, business_connection_id: Optional[str] = None, disable_notification: Optional[bool] = None, @@ -2090,7 +1957,7 @@ class Bot: async def promote_chat_member( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, is_anonymous: Optional[bool] = None, can_manage_chat: Optional[bool] = None, @@ -2158,7 +2025,7 @@ class Bot: async def reopen_forum_topic( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: int, request_timeout: Optional[int] = None, ) -> bool: @@ -2181,11 +2048,11 @@ class Bot: async def restrict_chat_member( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, permissions: ChatPermissions, use_independent_chat_permissions: Optional[bool] = None, - until_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + until_date: Optional[DateTimeUnion] = None, request_timeout: Optional[int] = None, ) -> bool: """ @@ -2213,7 +2080,7 @@ class Bot: async def revoke_chat_invite_link( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, invite_link: str, request_timeout: Optional[int] = None, ) -> ChatInviteLink: @@ -2236,8 +2103,8 @@ class Bot: async def send_animation( self, - chat_id: Union[int, str], - animation: Union[InputFile, str], + chat_id: ChatIdUnion, + animation: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -2256,9 +2123,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -2320,8 +2185,8 @@ class Bot: async def send_audio( self, - chat_id: Union[int, str], - audio: Union[InputFile, str], + chat_id: ChatIdUnion, + audio: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -2336,9 +2201,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -2397,7 +2260,7 @@ class Bot: async def send_chat_action( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, action: str, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, @@ -2430,7 +2293,7 @@ class Bot: async def send_contact( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, phone_number: str, first_name: str, business_connection_id: Optional[str] = None, @@ -2442,9 +2305,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -2494,7 +2355,7 @@ class Bot: async def send_dice( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, emoji: Optional[str] = None, @@ -2503,9 +2364,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -2549,8 +2408,8 @@ class Bot: async def send_document( self, - chat_id: Union[int, str], - document: Union[InputFile, str], + chat_id: ChatIdUnion, + document: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, thumbnail: Optional[InputFile] = None, @@ -2563,9 +2422,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -2672,7 +2529,7 @@ class Bot: async def send_invoice( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, title: str, description: str, payload: str, @@ -2782,7 +2639,7 @@ class Bot: async def send_location( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, latitude: float, longitude: float, business_connection_id: Optional[str] = None, @@ -2796,9 +2653,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -2852,8 +2707,8 @@ class Bot: async def send_media_group( self, - chat_id: Union[int, str], - media: list[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]], + chat_id: ChatIdUnion, + media: list[MediaUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, @@ -2902,7 +2757,7 @@ class Bot: async def send_message( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, text: str, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, @@ -2916,9 +2771,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, disable_web_page_preview: Optional[Union[bool, Default]] = Default( "link_preview_is_disabled" @@ -2973,8 +2826,8 @@ class Bot: async def send_photo( self, - chat_id: Union[int, str], - photo: Union[InputFile, str], + chat_id: ChatIdUnion, + photo: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -2989,9 +2842,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -3045,9 +2896,9 @@ class Bot: async def send_poll( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, question: str, - options: list[Union[InputPollOption, str]], + options: list[InputPollOptionUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, question_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), @@ -3060,16 +2911,14 @@ class Bot: explanation_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), explanation_entities: Optional[list[MessageEntity]] = None, open_period: Optional[int] = None, - close_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + close_date: Optional[DateTimeUnion] = None, is_closed: Optional[bool] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -3139,8 +2988,8 @@ class Bot: async def send_sticker( self, - chat_id: Union[int, str], - sticker: Union[InputFile, str], + chat_id: ChatIdUnion, + sticker: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, emoji: Optional[str] = None, @@ -3149,9 +2998,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -3197,7 +3044,7 @@ class Bot: async def send_venue( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, latitude: float, longitude: float, title: str, @@ -3213,9 +3060,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -3273,16 +3118,16 @@ class Bot: async def send_video( self, - chat_id: Union[int, str], - video: Union[InputFile, str], + chat_id: ChatIdUnion, + video: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, thumbnail: Optional[InputFile] = None, - cover: Optional[Union[InputFile, str]] = None, - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + cover: Optional[InputFileUnion] = None, + start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -3296,9 +3141,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -3366,8 +3209,8 @@ class Bot: async def send_video_note( self, - chat_id: Union[int, str], - video_note: Union[InputFile, str], + chat_id: ChatIdUnion, + video_note: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -3378,9 +3221,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -3430,8 +3271,8 @@ class Bot: async def send_voice( self, - chat_id: Union[int, str], - voice: Union[InputFile, str], + chat_id: ChatIdUnion, + voice: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -3443,9 +3284,7 @@ class Bot: allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -3497,7 +3336,7 @@ class Bot: async def set_chat_administrator_custom_title( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, custom_title: str, request_timeout: Optional[int] = None, @@ -3523,7 +3362,7 @@ class Bot: async def set_chat_description( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, description: Optional[str] = None, request_timeout: Optional[int] = None, ) -> bool: @@ -3547,9 +3386,7 @@ class Bot: async def set_chat_menu_button( self, chat_id: Optional[int] = None, - menu_button: Optional[ - Union[MenuButtonCommands, MenuButtonWebApp, MenuButtonDefault] - ] = None, + menu_button: Optional[MenuButtonUnion] = None, request_timeout: Optional[int] = None, ) -> bool: """ @@ -3571,7 +3408,7 @@ class Bot: async def set_chat_permissions( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, permissions: ChatPermissions, use_independent_chat_permissions: Optional[bool] = None, request_timeout: Optional[int] = None, @@ -3597,7 +3434,7 @@ class Bot: async def set_chat_photo( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, photo: InputFile, request_timeout: Optional[int] = None, ) -> bool: @@ -3620,7 +3457,7 @@ class Bot: async def set_chat_sticker_set( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, sticker_set_name: str, request_timeout: Optional[int] = None, ) -> bool: @@ -3643,7 +3480,7 @@ class Bot: async def set_chat_title( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, title: str, request_timeout: Optional[int] = None, ) -> bool: @@ -3705,17 +3542,7 @@ class Bot: async def set_my_commands( self, commands: list[BotCommand], - scope: Optional[ - Union[ - BotCommandScopeDefault, - BotCommandScopeAllPrivateChats, - BotCommandScopeAllGroupChats, - BotCommandScopeAllChatAdministrators, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - ] - ] = None, + scope: Optional[BotCommandScopeUnion] = None, language_code: Optional[str] = None, request_timeout: Optional[int] = None, ) -> bool: @@ -3764,19 +3591,7 @@ class Bot: async def set_passport_data_errors( self, user_id: int, - errors: list[ - Union[ - PassportElementErrorDataField, - PassportElementErrorFrontSide, - PassportElementErrorReverseSide, - PassportElementErrorSelfie, - PassportElementErrorFile, - PassportElementErrorFiles, - PassportElementErrorTranslationFile, - PassportElementErrorTranslationFiles, - PassportElementErrorUnspecified, - ] - ], + errors: list[PassportElementErrorUnion], request_timeout: Optional[int] = None, ) -> bool: """ @@ -3871,7 +3686,7 @@ class Bot: async def stop_message_live_location( self, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, @@ -3902,7 +3717,7 @@ class Bot: async def stop_poll( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_id: int, business_connection_id: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, @@ -3931,7 +3746,7 @@ class Bot: async def unban_chat_member( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, only_if_banned: Optional[bool] = None, request_timeout: Optional[int] = None, @@ -3957,7 +3772,7 @@ class Bot: async def unban_chat_sender_chat( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, sender_chat_id: int, request_timeout: Optional[int] = None, ) -> bool: @@ -3980,7 +3795,7 @@ class Bot: async def unpin_all_chat_messages( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> bool: """ @@ -4000,7 +3815,7 @@ class Bot: async def unpin_all_forum_topic_messages( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: int, request_timeout: Optional[int] = None, ) -> bool: @@ -4023,7 +3838,7 @@ class Bot: async def unpin_chat_message( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, business_connection_id: Optional[str] = None, message_id: Optional[int] = None, request_timeout: Optional[int] = None, @@ -4075,7 +3890,7 @@ class Bot: async def close_general_forum_topic( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> bool: """ @@ -4095,7 +3910,7 @@ class Bot: async def edit_general_forum_topic( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, name: str, request_timeout: Optional[int] = None, ) -> bool: @@ -4118,7 +3933,7 @@ class Bot: async def hide_general_forum_topic( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> bool: """ @@ -4138,7 +3953,7 @@ class Bot: async def reopen_general_forum_topic( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> bool: """ @@ -4158,7 +3973,7 @@ class Bot: async def unhide_general_forum_topic( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> bool: """ @@ -4379,7 +4194,7 @@ class Bot: name: str, user_id: int, format: str, - thumbnail: Optional[Union[InputFile, str]] = None, + thumbnail: Optional[InputFileUnion] = None, request_timeout: Optional[int] = None, ) -> bool: """ @@ -4471,7 +4286,7 @@ class Bot: async def unpin_all_general_forum_topic_messages( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> bool: """ @@ -4491,8 +4306,8 @@ class Bot: async def copy_messages( self, - chat_id: Union[int, str], - from_chat_id: Union[int, str], + chat_id: ChatIdUnion, + from_chat_id: ChatIdUnion, message_ids: list[int], message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, @@ -4529,7 +4344,7 @@ class Bot: async def delete_messages( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_ids: list[int], request_timeout: Optional[int] = None, ) -> bool: @@ -4552,8 +4367,8 @@ class Bot: async def forward_messages( self, - chat_id: Union[int, str], - from_chat_id: Union[int, str], + chat_id: ChatIdUnion, + from_chat_id: ChatIdUnion, message_ids: list[int], message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, @@ -4587,7 +4402,7 @@ class Bot: async def get_user_chat_boosts( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, request_timeout: Optional[int] = None, ) -> UserChatBoosts: @@ -4610,11 +4425,9 @@ class Bot: async def set_message_reaction( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_id: int, - reaction: Optional[ - list[Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid]] - ] = None, + reaction: Optional[list[ReactionTypeUnion]] = None, is_big: Optional[bool] = None, request_timeout: Optional[int] = None, ) -> bool: @@ -4736,9 +4549,9 @@ class Bot: async def send_paid_media( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, star_count: int, - media: list[Union[InputPaidMediaPhoto, InputPaidMediaVideo]], + media: list[InputPaidMediaUnion], business_connection_id: Optional[str] = None, payload: Optional[str] = None, caption: Optional[str] = None, @@ -4749,9 +4562,7 @@ class Bot: protect_content: Optional[bool] = None, allow_paid_broadcast: Optional[bool] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, request_timeout: Optional[int] = None, ) -> Message: """ @@ -4797,8 +4608,8 @@ class Bot: async def create_chat_subscription_invite_link( self, - chat_id: Union[int, str], - subscription_period: Union[datetime.datetime, datetime.timedelta, int], + chat_id: ChatIdUnion, + subscription_period: DateTimeUnion, subscription_price: int, name: Optional[str] = None, request_timeout: Optional[int] = None, @@ -4826,7 +4637,7 @@ class Bot: async def edit_chat_subscription_invite_link( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, invite_link: str, name: Optional[str] = None, request_timeout: Optional[int] = None, @@ -4895,28 +4706,7 @@ class Bot: async def save_prepared_inline_message( self, user_id: int, - result: Union[ - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultContact, - InlineQueryResultGame, - InlineQueryResultDocument, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, - ], + result: InlineQueryResultUnion, allow_user_chats: Optional[bool] = None, allow_bot_chats: Optional[bool] = None, allow_group_chats: Optional[bool] = None, @@ -4952,7 +4742,7 @@ class Bot: self, gift_id: str, user_id: Optional[int] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, pay_for_upgrade: Optional[bool] = None, text: Optional[str] = None, text_parse_mode: Optional[str] = None, @@ -4990,9 +4780,7 @@ class Bot: self, user_id: int, emoji_status_custom_emoji_id: Optional[str] = None, - emoji_status_expiration_date: Optional[ - Union[datetime.datetime, datetime.timedelta, int] - ] = None, + emoji_status_expiration_date: Optional[DateTimeUnion] = None, request_timeout: Optional[int] = None, ) -> bool: """ @@ -5016,7 +4804,7 @@ class Bot: async def remove_chat_verification( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, request_timeout: Optional[int] = None, ) -> bool: """ @@ -5056,7 +4844,7 @@ class Bot: async def verify_chat( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, custom_description: Optional[str] = None, request_timeout: Optional[int] = None, ) -> bool: diff --git a/aiogram/methods/answer_inline_query.py b/aiogram/methods/answer_inline_query.py index d30134e6..28848673 100644 --- a/aiogram/methods/answer_inline_query.py +++ b/aiogram/methods/answer_inline_query.py @@ -1,32 +1,10 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional from pydantic import Field -from ..types import ( - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultContact, - InlineQueryResultDocument, - InlineQueryResultGame, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultsButton, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, -) +from ..types import InlineQueryResultsButton, InlineQueryResultUnion from .base import TelegramMethod @@ -44,30 +22,7 @@ class AnswerInlineQuery(TelegramMethod[bool]): inline_query_id: str """Unique identifier for the answered query""" - results: list[ - Union[ - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultContact, - InlineQueryResultGame, - InlineQueryResultDocument, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, - ] - ] + results: list[InlineQueryResultUnion] """A JSON-serialized array of results for the inline query""" cache_time: Optional[int] = None """The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.""" @@ -96,30 +51,7 @@ class AnswerInlineQuery(TelegramMethod[bool]): __pydantic__self__, *, inline_query_id: str, - results: list[ - Union[ - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultContact, - InlineQueryResultGame, - InlineQueryResultDocument, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, - ] - ], + results: list[InlineQueryResultUnion], cache_time: Optional[int] = None, is_personal: Optional[bool] = None, next_offset: Optional[str] = None, diff --git a/aiogram/methods/answer_web_app_query.py b/aiogram/methods/answer_web_app_query.py index 4dc87ebd..edcbf7de 100644 --- a/aiogram/methods/answer_web_app_query.py +++ b/aiogram/methods/answer_web_app_query.py @@ -1,30 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any -from ..types import ( - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultContact, - InlineQueryResultDocument, - InlineQueryResultGame, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, - SentWebAppMessage, -) +from ..types import InlineQueryResultUnion, SentWebAppMessage from .base import TelegramMethod @@ -40,28 +18,7 @@ class AnswerWebAppQuery(TelegramMethod[SentWebAppMessage]): web_app_query_id: str """Unique identifier for the query to be answered""" - result: Union[ - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultContact, - InlineQueryResultGame, - InlineQueryResultDocument, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, - ] + result: InlineQueryResultUnion """A JSON-serialized object describing the message to be sent""" if TYPE_CHECKING: @@ -72,28 +29,7 @@ class AnswerWebAppQuery(TelegramMethod[SentWebAppMessage]): __pydantic__self__, *, web_app_query_id: str, - result: Union[ - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultContact, - InlineQueryResultGame, - InlineQueryResultDocument, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, - ], + result: InlineQueryResultUnion, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/methods/approve_chat_join_request.py b/aiogram/methods/approve_chat_join_request.py index 2f4995b4..1142cd82 100644 --- a/aiogram/methods/approve_chat_join_request.py +++ b/aiogram/methods/approve_chat_join_request.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class ApproveChatJoinRequest(TelegramMethod[bool]): __returning__ = bool __api_method__ = "approveChatJoinRequest" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" user_id: int """Unique identifier of the target user""" @@ -25,7 +26,7 @@ class ApproveChatJoinRequest(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], user_id: int, **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, user_id: int, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/ban_chat_member.py b/aiogram/methods/ban_chat_member.py index 947fccae..57e2f532 100644 --- a/aiogram/methods/ban_chat_member.py +++ b/aiogram/methods/ban_chat_member.py @@ -1,8 +1,8 @@ from __future__ import annotations -import datetime -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional +from ..types import ChatIdUnion, DateTimeUnion from .base import TelegramMethod @@ -16,11 +16,11 @@ class BanChatMember(TelegramMethod[bool]): __returning__ = bool __api_method__ = "banChatMember" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target group or username of the target supergroup or channel (in the format :code:`@channelusername`)""" user_id: int """Unique identifier of the target user""" - until_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None + until_date: Optional[DateTimeUnion] = None """Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only.""" revoke_messages: Optional[bool] = None """Pass :code:`True` to delete all messages from the chat for the user that is being removed. If :code:`False`, the user will be able to see messages in the group that were sent before the user was removed. Always :code:`True` for supergroups and channels.""" @@ -32,9 +32,9 @@ class BanChatMember(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, - until_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + until_date: Optional[DateTimeUnion] = None, revoke_messages: Optional[bool] = None, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/ban_chat_sender_chat.py b/aiogram/methods/ban_chat_sender_chat.py index cbe61943..72173cc5 100644 --- a/aiogram/methods/ban_chat_sender_chat.py +++ b/aiogram/methods/ban_chat_sender_chat.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class BanChatSenderChat(TelegramMethod[bool]): __returning__ = bool __api_method__ = "banChatSenderChat" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" sender_chat_id: int """Unique identifier of the target sender chat""" @@ -27,7 +28,7 @@ class BanChatSenderChat(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, sender_chat_id: int, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/base.py b/aiogram/methods/base.py index 3279199a..36878a84 100644 --- a/aiogram/methods/base.py +++ b/aiogram/methods/base.py @@ -66,7 +66,7 @@ class TelegramMethod(BotContextController, BaseModel, Generic[TelegramType], ABC return {k: v for k, v in values.items() if not isinstance(v, UNSET_TYPE)} if TYPE_CHECKING: - __returning__: ClassVar[type] + __returning__: ClassVar[Any] __api_method__: ClassVar[str] else: diff --git a/aiogram/methods/close_forum_topic.py b/aiogram/methods/close_forum_topic.py index 110fbce7..ec990399 100644 --- a/aiogram/methods/close_forum_topic.py +++ b/aiogram/methods/close_forum_topic.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class CloseForumTopic(TelegramMethod[bool]): __returning__ = bool __api_method__ = "closeForumTopic" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" message_thread_id: int """Unique identifier for the target message thread of the forum topic""" @@ -27,7 +28,7 @@ class CloseForumTopic(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: int, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/close_general_forum_topic.py b/aiogram/methods/close_general_forum_topic.py index 3f1a6336..bf7a914c 100644 --- a/aiogram/methods/close_general_forum_topic.py +++ b/aiogram/methods/close_general_forum_topic.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class CloseGeneralForumTopic(TelegramMethod[bool]): __returning__ = bool __api_method__ = "closeGeneralForumTopic" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" if TYPE_CHECKING: @@ -23,7 +24,7 @@ class CloseGeneralForumTopic(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/copy_message.py b/aiogram/methods/copy_message.py index 562c99c0..416fa44f 100644 --- a/aiogram/methods/copy_message.py +++ b/aiogram/methods/copy_message.py @@ -1,18 +1,16 @@ from __future__ import annotations -import datetime from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field from ..client.default import Default from ..types import ( - ForceReply, - InlineKeyboardMarkup, + ChatIdUnion, + DateTimeUnion, MessageEntity, MessageId, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -28,15 +26,15 @@ class CopyMessage(TelegramMethod[MessageId]): __returning__ = MessageId __api_method__ = "copyMessage" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - from_chat_id: Union[int, str] + from_chat_id: ChatIdUnion """Unique identifier for the chat where the original message was sent (or channel username in the format :code:`@channelusername`)""" message_id: int """Message identifier in the chat specified in *from_chat_id*""" message_thread_id: Optional[int] = None """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" - video_start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None + video_start_timestamp: Optional[DateTimeUnion] = None """New start timestamp for the copied video in the message""" caption: Optional[str] = None """New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept""" @@ -54,9 +52,7 @@ class CopyMessage(TelegramMethod[MessageId]): """Pass :code:`True` to allow up to 1000 messages per second, ignoring `broadcasting limits `_ for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -78,13 +74,11 @@ class CopyMessage(TelegramMethod[MessageId]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - from_chat_id: Union[int, str], + chat_id: ChatIdUnion, + from_chat_id: ChatIdUnion, message_id: int, message_thread_id: Optional[int] = None, - video_start_timestamp: Optional[ - Union[datetime.datetime, datetime.timedelta, int] - ] = None, + video_start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -95,9 +89,7 @@ class CopyMessage(TelegramMethod[MessageId]): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/copy_messages.py b/aiogram/methods/copy_messages.py index 67ebfe31..41f224d3 100644 --- a/aiogram/methods/copy_messages.py +++ b/aiogram/methods/copy_messages.py @@ -1,6 +1,6 @@ -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import MessageId +from ..types import ChatIdUnion, MessageId from .base import TelegramMethod @@ -14,9 +14,9 @@ class CopyMessages(TelegramMethod[list[MessageId]]): __returning__ = list[MessageId] __api_method__ = "copyMessages" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - from_chat_id: Union[int, str] + from_chat_id: ChatIdUnion """Unique identifier for the chat where the original messages were sent (or channel username in the format :code:`@channelusername`)""" message_ids: list[int] """A JSON-serialized list of 1-100 identifiers of messages in the chat *from_chat_id* to copy. The identifiers must be specified in a strictly increasing order.""" @@ -36,8 +36,8 @@ class CopyMessages(TelegramMethod[list[MessageId]]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - from_chat_id: Union[int, str], + chat_id: ChatIdUnion, + from_chat_id: ChatIdUnion, message_ids: list[int], message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, diff --git a/aiogram/methods/create_chat_invite_link.py b/aiogram/methods/create_chat_invite_link.py index ff0b3864..dcca1ed3 100644 --- a/aiogram/methods/create_chat_invite_link.py +++ b/aiogram/methods/create_chat_invite_link.py @@ -1,9 +1,8 @@ from __future__ import annotations -import datetime -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import ChatInviteLink +from ..types import ChatIdUnion, ChatInviteLink, DateTimeUnion from .base import TelegramMethod @@ -17,11 +16,11 @@ class CreateChatInviteLink(TelegramMethod[ChatInviteLink]): __returning__ = ChatInviteLink __api_method__ = "createChatInviteLink" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" name: Optional[str] = None """Invite link name; 0-32 characters""" - expire_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None + expire_date: Optional[DateTimeUnion] = None """Point in time (Unix timestamp) when the link will expire""" member_limit: Optional[int] = None """The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999""" @@ -35,9 +34,9 @@ class CreateChatInviteLink(TelegramMethod[ChatInviteLink]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, name: Optional[str] = None, - expire_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + expire_date: Optional[DateTimeUnion] = None, member_limit: Optional[int] = None, creates_join_request: Optional[bool] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/create_chat_subscription_invite_link.py b/aiogram/methods/create_chat_subscription_invite_link.py index 1301eb2f..c9f8bd99 100644 --- a/aiogram/methods/create_chat_subscription_invite_link.py +++ b/aiogram/methods/create_chat_subscription_invite_link.py @@ -1,9 +1,8 @@ from __future__ import annotations -import datetime -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import ChatInviteLink +from ..types import ChatIdUnion, ChatInviteLink, DateTimeUnion from .base import TelegramMethod @@ -17,9 +16,9 @@ class CreateChatSubscriptionInviteLink(TelegramMethod[ChatInviteLink]): __returning__ = ChatInviteLink __api_method__ = "createChatSubscriptionInviteLink" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target channel chat or username of the target channel (in the format :code:`@channelusername`)""" - subscription_period: Union[datetime.datetime, datetime.timedelta, int] + subscription_period: DateTimeUnion """The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days).""" subscription_price: int """The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat; 1-2500""" @@ -33,8 +32,8 @@ class CreateChatSubscriptionInviteLink(TelegramMethod[ChatInviteLink]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - subscription_period: Union[datetime.datetime, datetime.timedelta, int], + chat_id: ChatIdUnion, + subscription_period: DateTimeUnion, subscription_price: int, name: Optional[str] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/create_forum_topic.py b/aiogram/methods/create_forum_topic.py index 8b0f6925..c88f240b 100644 --- a/aiogram/methods/create_forum_topic.py +++ b/aiogram/methods/create_forum_topic.py @@ -1,8 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import ForumTopic +from ..types import ChatIdUnion, ForumTopic from .base import TelegramMethod @@ -16,7 +16,7 @@ class CreateForumTopic(TelegramMethod[ForumTopic]): __returning__ = ForumTopic __api_method__ = "createForumTopic" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" name: str """Topic name, 1-128 characters""" @@ -32,7 +32,7 @@ class CreateForumTopic(TelegramMethod[ForumTopic]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, name: str, icon_color: Optional[int] = None, icon_custom_emoji_id: Optional[str] = None, diff --git a/aiogram/methods/decline_chat_join_request.py b/aiogram/methods/decline_chat_join_request.py index b0fa2c3c..6259c550 100644 --- a/aiogram/methods/decline_chat_join_request.py +++ b/aiogram/methods/decline_chat_join_request.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class DeclineChatJoinRequest(TelegramMethod[bool]): __returning__ = bool __api_method__ = "declineChatJoinRequest" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" user_id: int """Unique identifier of the target user""" @@ -25,7 +26,7 @@ class DeclineChatJoinRequest(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], user_id: int, **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, user_id: int, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/delete_chat_photo.py b/aiogram/methods/delete_chat_photo.py index 503ace2c..0cdf2eca 100644 --- a/aiogram/methods/delete_chat_photo.py +++ b/aiogram/methods/delete_chat_photo.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class DeleteChatPhoto(TelegramMethod[bool]): __returning__ = bool __api_method__ = "deleteChatPhoto" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" if TYPE_CHECKING: @@ -23,7 +24,7 @@ class DeleteChatPhoto(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/delete_chat_sticker_set.py b/aiogram/methods/delete_chat_sticker_set.py index 50d705f0..c1a2feab 100644 --- a/aiogram/methods/delete_chat_sticker_set.py +++ b/aiogram/methods/delete_chat_sticker_set.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class DeleteChatStickerSet(TelegramMethod[bool]): __returning__ = bool __api_method__ = "deleteChatStickerSet" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" if TYPE_CHECKING: @@ -23,7 +24,7 @@ class DeleteChatStickerSet(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/delete_forum_topic.py b/aiogram/methods/delete_forum_topic.py index 7d238562..b221a555 100644 --- a/aiogram/methods/delete_forum_topic.py +++ b/aiogram/methods/delete_forum_topic.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class DeleteForumTopic(TelegramMethod[bool]): __returning__ = bool __api_method__ = "deleteForumTopic" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" message_thread_id: int """Unique identifier for the target message thread of the forum topic""" @@ -27,7 +28,7 @@ class DeleteForumTopic(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: int, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/delete_message.py b/aiogram/methods/delete_message.py index 59aee049..e3402744 100644 --- a/aiogram/methods/delete_message.py +++ b/aiogram/methods/delete_message.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -33,7 +34,7 @@ class DeleteMessage(TelegramMethod[bool]): __returning__ = bool __api_method__ = "deleteMessage" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" message_id: int """Identifier of the message to delete""" @@ -43,11 +44,7 @@ class DeleteMessage(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, - *, - chat_id: Union[int, str], - message_id: int, - **__pydantic_kwargs: Any, + __pydantic__self__, *, chat_id: ChatIdUnion, message_id: int, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/delete_messages.py b/aiogram/methods/delete_messages.py index bb77ddf7..63d90a6f 100644 --- a/aiogram/methods/delete_messages.py +++ b/aiogram/methods/delete_messages.py @@ -1,5 +1,6 @@ -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -13,7 +14,7 @@ class DeleteMessages(TelegramMethod[bool]): __returning__ = bool __api_method__ = "deleteMessages" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" message_ids: list[int] """A JSON-serialized list of 1-100 identifiers of messages to delete. See :class:`aiogram.methods.delete_message.DeleteMessage` for limitations on which messages can be deleted""" @@ -25,7 +26,7 @@ class DeleteMessages(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_ids: list[int], **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/delete_my_commands.py b/aiogram/methods/delete_my_commands.py index e35ef67c..0d32d753 100644 --- a/aiogram/methods/delete_my_commands.py +++ b/aiogram/methods/delete_my_commands.py @@ -1,16 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import ( - BotCommandScopeAllChatAdministrators, - BotCommandScopeAllGroupChats, - BotCommandScopeAllPrivateChats, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - BotCommandScopeDefault, -) +from ..types import BotCommandScopeUnion from .base import TelegramMethod @@ -24,17 +16,7 @@ class DeleteMyCommands(TelegramMethod[bool]): __returning__ = bool __api_method__ = "deleteMyCommands" - scope: Optional[ - Union[ - BotCommandScopeDefault, - BotCommandScopeAllPrivateChats, - BotCommandScopeAllGroupChats, - BotCommandScopeAllChatAdministrators, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - ] - ] = None + scope: Optional[BotCommandScopeUnion] = None """A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to :class:`aiogram.types.bot_command_scope_default.BotCommandScopeDefault`.""" language_code: Optional[str] = None """A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands""" @@ -46,17 +28,7 @@ class DeleteMyCommands(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - scope: Optional[ - Union[ - BotCommandScopeDefault, - BotCommandScopeAllPrivateChats, - BotCommandScopeAllGroupChats, - BotCommandScopeAllChatAdministrators, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - ] - ] = None, + scope: Optional[BotCommandScopeUnion] = None, language_code: Optional[str] = None, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/edit_chat_invite_link.py b/aiogram/methods/edit_chat_invite_link.py index 8ec86cab..5a1ec211 100644 --- a/aiogram/methods/edit_chat_invite_link.py +++ b/aiogram/methods/edit_chat_invite_link.py @@ -1,9 +1,8 @@ from __future__ import annotations -import datetime -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import ChatInviteLink +from ..types import ChatIdUnion, ChatInviteLink, DateTimeUnion from .base import TelegramMethod @@ -17,13 +16,13 @@ class EditChatInviteLink(TelegramMethod[ChatInviteLink]): __returning__ = ChatInviteLink __api_method__ = "editChatInviteLink" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" invite_link: str """The invite link to edit""" name: Optional[str] = None """Invite link name; 0-32 characters""" - expire_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None + expire_date: Optional[DateTimeUnion] = None """Point in time (Unix timestamp) when the link will expire""" member_limit: Optional[int] = None """The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999""" @@ -37,10 +36,10 @@ class EditChatInviteLink(TelegramMethod[ChatInviteLink]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, invite_link: str, name: Optional[str] = None, - expire_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + expire_date: Optional[DateTimeUnion] = None, member_limit: Optional[int] = None, creates_join_request: Optional[bool] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/edit_chat_subscription_invite_link.py b/aiogram/methods/edit_chat_subscription_invite_link.py index ffb37d80..f83882c3 100644 --- a/aiogram/methods/edit_chat_subscription_invite_link.py +++ b/aiogram/methods/edit_chat_subscription_invite_link.py @@ -1,8 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import ChatInviteLink +from ..types import ChatIdUnion, ChatInviteLink from .base import TelegramMethod @@ -16,7 +16,7 @@ class EditChatSubscriptionInviteLink(TelegramMethod[ChatInviteLink]): __returning__ = ChatInviteLink __api_method__ = "editChatSubscriptionInviteLink" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" invite_link: str """The invite link to edit""" @@ -30,7 +30,7 @@ class EditChatSubscriptionInviteLink(TelegramMethod[ChatInviteLink]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, invite_link: str, name: Optional[str] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/edit_forum_topic.py b/aiogram/methods/edit_forum_topic.py index 233e9cb9..7bac4456 100644 --- a/aiogram/methods/edit_forum_topic.py +++ b/aiogram/methods/edit_forum_topic.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class EditForumTopic(TelegramMethod[bool]): __returning__ = bool __api_method__ = "editForumTopic" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" message_thread_id: int """Unique identifier for the target message thread of the forum topic""" @@ -31,7 +32,7 @@ class EditForumTopic(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: int, name: Optional[str] = None, icon_custom_emoji_id: Optional[str] = None, diff --git a/aiogram/methods/edit_general_forum_topic.py b/aiogram/methods/edit_general_forum_topic.py index f0be56e4..5e29766c 100644 --- a/aiogram/methods/edit_general_forum_topic.py +++ b/aiogram/methods/edit_general_forum_topic.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class EditGeneralForumTopic(TelegramMethod[bool]): __returning__ = bool __api_method__ = "editGeneralForumTopic" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" name: str """New topic name, 1-128 characters""" @@ -25,7 +26,7 @@ class EditGeneralForumTopic(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], name: str, **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, name: str, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/edit_message_caption.py b/aiogram/methods/edit_message_caption.py index 000c4229..f045f7b4 100644 --- a/aiogram/methods/edit_message_caption.py +++ b/aiogram/methods/edit_message_caption.py @@ -3,7 +3,7 @@ from __future__ import annotations from typing import TYPE_CHECKING, Any, Optional, Union from ..client.default import Default -from ..types import InlineKeyboardMarkup, Message, MessageEntity +from ..types import ChatIdUnion, InlineKeyboardMarkup, Message, MessageEntity from .base import TelegramMethod @@ -19,7 +19,7 @@ class EditMessageCaption(TelegramMethod[Union[Message, bool]]): business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message to be edited was sent""" - chat_id: Optional[Union[int, str]] = None + chat_id: Optional[ChatIdUnion] = None """Required if *inline_message_id* is not specified. Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" message_id: Optional[int] = None """Required if *inline_message_id* is not specified. Identifier of the message to edit""" @@ -44,7 +44,7 @@ class EditMessageCaption(TelegramMethod[Union[Message, bool]]): __pydantic__self__, *, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, caption: Optional[str] = None, diff --git a/aiogram/methods/edit_message_live_location.py b/aiogram/methods/edit_message_live_location.py index 6bc5569f..d68bd837 100644 --- a/aiogram/methods/edit_message_live_location.py +++ b/aiogram/methods/edit_message_live_location.py @@ -2,7 +2,7 @@ from __future__ import annotations from typing import TYPE_CHECKING, Any, Optional, Union -from ..types import InlineKeyboardMarkup, Message +from ..types import ChatIdUnion, InlineKeyboardMarkup, Message from .base import TelegramMethod @@ -22,7 +22,7 @@ class EditMessageLiveLocation(TelegramMethod[Union[Message, bool]]): """Longitude of new location""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message to be edited was sent""" - chat_id: Optional[Union[int, str]] = None + chat_id: Optional[ChatIdUnion] = None """Required if *inline_message_id* is not specified. Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" message_id: Optional[int] = None """Required if *inline_message_id* is not specified. Identifier of the message to edit""" @@ -49,7 +49,7 @@ class EditMessageLiveLocation(TelegramMethod[Union[Message, bool]]): latitude: float, longitude: float, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, live_period: Optional[int] = None, diff --git a/aiogram/methods/edit_message_media.py b/aiogram/methods/edit_message_media.py index 0e0a049b..71189536 100644 --- a/aiogram/methods/edit_message_media.py +++ b/aiogram/methods/edit_message_media.py @@ -2,15 +2,7 @@ from __future__ import annotations from typing import TYPE_CHECKING, Any, Optional, Union -from ..types import ( - InlineKeyboardMarkup, - InputMediaAnimation, - InputMediaAudio, - InputMediaDocument, - InputMediaPhoto, - InputMediaVideo, - Message, -) +from ..types import ChatIdUnion, InlineKeyboardMarkup, InputMediaUnion, Message from .base import TelegramMethod @@ -24,13 +16,11 @@ class EditMessageMedia(TelegramMethod[Union[Message, bool]]): __returning__ = Union[Message, bool] __api_method__ = "editMessageMedia" - media: Union[ - InputMediaAnimation, InputMediaDocument, InputMediaAudio, InputMediaPhoto, InputMediaVideo - ] + media: InputMediaUnion """A JSON-serialized object for a new media content of the message""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message to be edited was sent""" - chat_id: Optional[Union[int, str]] = None + chat_id: Optional[ChatIdUnion] = None """Required if *inline_message_id* is not specified. Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" message_id: Optional[int] = None """Required if *inline_message_id* is not specified. Identifier of the message to edit""" @@ -46,15 +36,9 @@ class EditMessageMedia(TelegramMethod[Union[Message, bool]]): def __init__( __pydantic__self__, *, - media: Union[ - InputMediaAnimation, - InputMediaDocument, - InputMediaAudio, - InputMediaPhoto, - InputMediaVideo, - ], + media: InputMediaUnion, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, diff --git a/aiogram/methods/edit_message_reply_markup.py b/aiogram/methods/edit_message_reply_markup.py index 49052f35..a8379a0a 100644 --- a/aiogram/methods/edit_message_reply_markup.py +++ b/aiogram/methods/edit_message_reply_markup.py @@ -2,7 +2,7 @@ from __future__ import annotations from typing import TYPE_CHECKING, Any, Optional, Union -from ..types import InlineKeyboardMarkup, Message +from ..types import ChatIdUnion, InlineKeyboardMarkup, Message from .base import TelegramMethod @@ -18,7 +18,7 @@ class EditMessageReplyMarkup(TelegramMethod[Union[Message, bool]]): business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message to be edited was sent""" - chat_id: Optional[Union[int, str]] = None + chat_id: Optional[ChatIdUnion] = None """Required if *inline_message_id* is not specified. Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" message_id: Optional[int] = None """Required if *inline_message_id* is not specified. Identifier of the message to edit""" @@ -35,7 +35,7 @@ class EditMessageReplyMarkup(TelegramMethod[Union[Message, bool]]): __pydantic__self__, *, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, diff --git a/aiogram/methods/edit_message_text.py b/aiogram/methods/edit_message_text.py index 8b067ccb..5e5cbb65 100644 --- a/aiogram/methods/edit_message_text.py +++ b/aiogram/methods/edit_message_text.py @@ -5,7 +5,13 @@ from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field from ..client.default import Default -from ..types import InlineKeyboardMarkup, LinkPreviewOptions, Message, MessageEntity +from ..types import ( + ChatIdUnion, + InlineKeyboardMarkup, + LinkPreviewOptions, + Message, + MessageEntity, +) from .base import TelegramMethod @@ -23,7 +29,7 @@ class EditMessageText(TelegramMethod[Union[Message, bool]]): """New text of the message, 1-4096 characters after entities parsing""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message to be edited was sent""" - chat_id: Optional[Union[int, str]] = None + chat_id: Optional[ChatIdUnion] = None """Required if *inline_message_id* is not specified. Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" message_id: Optional[int] = None """Required if *inline_message_id* is not specified. Identifier of the message to edit""" @@ -54,7 +60,7 @@ class EditMessageText(TelegramMethod[Union[Message, bool]]): *, text: str, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), diff --git a/aiogram/methods/export_chat_invite_link.py b/aiogram/methods/export_chat_invite_link.py index 271e35d1..70da95a0 100644 --- a/aiogram/methods/export_chat_invite_link.py +++ b/aiogram/methods/export_chat_invite_link.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -17,7 +18,7 @@ class ExportChatInviteLink(TelegramMethod[str]): __returning__ = str __api_method__ = "exportChatInviteLink" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" if TYPE_CHECKING: @@ -25,7 +26,7 @@ class ExportChatInviteLink(TelegramMethod[str]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/forward_message.py b/aiogram/methods/forward_message.py index 0d35e2b3..7ccae892 100644 --- a/aiogram/methods/forward_message.py +++ b/aiogram/methods/forward_message.py @@ -1,10 +1,9 @@ from __future__ import annotations -import datetime from typing import TYPE_CHECKING, Any, Optional, Union from ..client.default import Default -from ..types import Message +from ..types import ChatIdUnion, DateTimeUnion, Message from .base import TelegramMethod @@ -18,15 +17,15 @@ class ForwardMessage(TelegramMethod[Message]): __returning__ = Message __api_method__ = "forwardMessage" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - from_chat_id: Union[int, str] + from_chat_id: ChatIdUnion """Unique identifier for the chat where the original message was sent (or channel username in the format :code:`@channelusername`)""" message_id: int """Message identifier in the chat specified in *from_chat_id*""" message_thread_id: Optional[int] = None """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" - video_start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None + video_start_timestamp: Optional[DateTimeUnion] = None """New start timestamp for the forwarded video in the message""" disable_notification: Optional[bool] = None """Sends the message `silently `_. Users will receive a notification with no sound.""" @@ -40,13 +39,11 @@ class ForwardMessage(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - from_chat_id: Union[int, str], + chat_id: ChatIdUnion, + from_chat_id: ChatIdUnion, message_id: int, message_thread_id: Optional[int] = None, - video_start_timestamp: Optional[ - Union[datetime.datetime, datetime.timedelta, int] - ] = None, + video_start_timestamp: Optional[DateTimeUnion] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), **__pydantic_kwargs: Any, diff --git a/aiogram/methods/forward_messages.py b/aiogram/methods/forward_messages.py index c627b01c..51d6bde7 100644 --- a/aiogram/methods/forward_messages.py +++ b/aiogram/methods/forward_messages.py @@ -1,6 +1,6 @@ -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import MessageId +from ..types import ChatIdUnion, MessageId from .base import TelegramMethod @@ -14,9 +14,9 @@ class ForwardMessages(TelegramMethod[list[MessageId]]): __returning__ = list[MessageId] __api_method__ = "forwardMessages" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - from_chat_id: Union[int, str] + from_chat_id: ChatIdUnion """Unique identifier for the chat where the original messages were sent (or channel username in the format :code:`@channelusername`)""" message_ids: list[int] """A JSON-serialized list of 1-100 identifiers of messages in the chat *from_chat_id* to forward. The identifiers must be specified in a strictly increasing order.""" @@ -34,8 +34,8 @@ class ForwardMessages(TelegramMethod[list[MessageId]]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - from_chat_id: Union[int, str], + chat_id: ChatIdUnion, + from_chat_id: ChatIdUnion, message_ids: list[int], message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, diff --git a/aiogram/methods/get_chat.py b/aiogram/methods/get_chat.py index 6b6b9773..41609377 100644 --- a/aiogram/methods/get_chat.py +++ b/aiogram/methods/get_chat.py @@ -1,8 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any -from ..types import ChatFullInfo +from ..types import ChatFullInfo, ChatIdUnion from .base import TelegramMethod @@ -16,7 +16,7 @@ class GetChat(TelegramMethod[ChatFullInfo]): __returning__ = ChatFullInfo __api_method__ = "getChat" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup or channel (in the format :code:`@channelusername`)""" if TYPE_CHECKING: @@ -24,7 +24,7 @@ class GetChat(TelegramMethod[ChatFullInfo]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/get_chat_administrators.py b/aiogram/methods/get_chat_administrators.py index 46ff243b..6185116e 100644 --- a/aiogram/methods/get_chat_administrators.py +++ b/aiogram/methods/get_chat_administrators.py @@ -1,51 +1,22 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any -from ..types import ( - ChatMemberAdministrator, - ChatMemberBanned, - ChatMemberLeft, - ChatMemberMember, - ChatMemberOwner, - ChatMemberRestricted, -) +from ..types import ChatIdUnion, ResultChatMemberUnion from .base import TelegramMethod -class GetChatAdministrators( - TelegramMethod[ - list[ - Union[ - ChatMemberOwner, - ChatMemberAdministrator, - ChatMemberMember, - ChatMemberRestricted, - ChatMemberLeft, - ChatMemberBanned, - ] - ] - ] -): +class GetChatAdministrators(TelegramMethod[list[ResultChatMemberUnion]]): """ Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of :class:`aiogram.types.chat_member.ChatMember` objects. Source: https://core.telegram.org/bots/api#getchatadministrators """ - __returning__ = list[ - Union[ - ChatMemberOwner, - ChatMemberAdministrator, - ChatMemberMember, - ChatMemberRestricted, - ChatMemberLeft, - ChatMemberBanned, - ] - ] + __returning__ = list[ResultChatMemberUnion] __api_method__ = "getChatAdministrators" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup or channel (in the format :code:`@channelusername`)""" if TYPE_CHECKING: @@ -53,7 +24,7 @@ class GetChatAdministrators( # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/get_chat_member.py b/aiogram/methods/get_chat_member.py index 495f6287..a2550af8 100644 --- a/aiogram/methods/get_chat_member.py +++ b/aiogram/methods/get_chat_member.py @@ -1,47 +1,22 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any -from ..types import ( - ChatMemberAdministrator, - ChatMemberBanned, - ChatMemberLeft, - ChatMemberMember, - ChatMemberOwner, - ChatMemberRestricted, -) +from ..types import ChatIdUnion, ResultChatMemberUnion from .base import TelegramMethod -class GetChatMember( - TelegramMethod[ - Union[ - ChatMemberOwner, - ChatMemberAdministrator, - ChatMemberMember, - ChatMemberRestricted, - ChatMemberLeft, - ChatMemberBanned, - ] - ] -): +class GetChatMember(TelegramMethod[ResultChatMemberUnion]): """ Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a :class:`aiogram.types.chat_member.ChatMember` object on success. Source: https://core.telegram.org/bots/api#getchatmember """ - __returning__ = Union[ - ChatMemberOwner, - ChatMemberAdministrator, - ChatMemberMember, - ChatMemberRestricted, - ChatMemberLeft, - ChatMemberBanned, - ] + __returning__ = ResultChatMemberUnion __api_method__ = "getChatMember" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup or channel (in the format :code:`@channelusername`)""" user_id: int """Unique identifier of the target user""" @@ -51,7 +26,7 @@ class GetChatMember( # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], user_id: int, **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, user_id: int, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/get_chat_member_count.py b/aiogram/methods/get_chat_member_count.py index fc33c23f..0b3476fb 100644 --- a/aiogram/methods/get_chat_member_count.py +++ b/aiogram/methods/get_chat_member_count.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class GetChatMemberCount(TelegramMethod[int]): __returning__ = int __api_method__ = "getChatMemberCount" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup or channel (in the format :code:`@channelusername`)""" if TYPE_CHECKING: @@ -23,7 +24,7 @@ class GetChatMemberCount(TelegramMethod[int]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/get_chat_menu_button.py b/aiogram/methods/get_chat_menu_button.py index ee1248d0..5c7e06c8 100644 --- a/aiogram/methods/get_chat_menu_button.py +++ b/aiogram/methods/get_chat_menu_button.py @@ -1,21 +1,19 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import MenuButtonCommands, MenuButtonDefault, MenuButtonWebApp +from ..types import ResultMenuButtonUnion from .base import TelegramMethod -class GetChatMenuButton( - TelegramMethod[Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands]] -): +class GetChatMenuButton(TelegramMethod[ResultMenuButtonUnion]): """ Use this method to get the current value of the bot's menu button in a private chat, or the default menu button. Returns :class:`aiogram.types.menu_button.MenuButton` on success. Source: https://core.telegram.org/bots/api#getchatmenubutton """ - __returning__ = Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands] + __returning__ = ResultMenuButtonUnion __api_method__ = "getChatMenuButton" chat_id: Optional[int] = None diff --git a/aiogram/methods/get_my_commands.py b/aiogram/methods/get_my_commands.py index b69d8c6b..c155f18f 100644 --- a/aiogram/methods/get_my_commands.py +++ b/aiogram/methods/get_my_commands.py @@ -1,17 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import ( - BotCommand, - BotCommandScopeAllChatAdministrators, - BotCommandScopeAllGroupChats, - BotCommandScopeAllPrivateChats, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - BotCommandScopeDefault, -) +from ..types import BotCommand, BotCommandScopeUnion from .base import TelegramMethod @@ -25,17 +16,7 @@ class GetMyCommands(TelegramMethod[list[BotCommand]]): __returning__ = list[BotCommand] __api_method__ = "getMyCommands" - scope: Optional[ - Union[ - BotCommandScopeDefault, - BotCommandScopeAllPrivateChats, - BotCommandScopeAllGroupChats, - BotCommandScopeAllChatAdministrators, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - ] - ] = None + scope: Optional[BotCommandScopeUnion] = None """A JSON-serialized object, describing scope of users. Defaults to :class:`aiogram.types.bot_command_scope_default.BotCommandScopeDefault`.""" language_code: Optional[str] = None """A two-letter ISO 639-1 language code or an empty string""" @@ -47,17 +28,7 @@ class GetMyCommands(TelegramMethod[list[BotCommand]]): def __init__( __pydantic__self__, *, - scope: Optional[ - Union[ - BotCommandScopeDefault, - BotCommandScopeAllPrivateChats, - BotCommandScopeAllGroupChats, - BotCommandScopeAllChatAdministrators, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - ] - ] = None, + scope: Optional[BotCommandScopeUnion] = None, language_code: Optional[str] = None, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/get_user_chat_boosts.py b/aiogram/methods/get_user_chat_boosts.py index f3eae261..04313643 100644 --- a/aiogram/methods/get_user_chat_boosts.py +++ b/aiogram/methods/get_user_chat_boosts.py @@ -1,6 +1,6 @@ -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any -from ..types import UserChatBoosts +from ..types import ChatIdUnion, UserChatBoosts from .base import TelegramMethod @@ -14,7 +14,7 @@ class GetUserChatBoosts(TelegramMethod[UserChatBoosts]): __returning__ = UserChatBoosts __api_method__ = "getUserChatBoosts" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the chat or username of the channel (in the format :code:`@channelusername`)""" user_id: int """Unique identifier of the target user""" @@ -24,7 +24,7 @@ class GetUserChatBoosts(TelegramMethod[UserChatBoosts]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], user_id: int, **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, user_id: int, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/hide_general_forum_topic.py b/aiogram/methods/hide_general_forum_topic.py index a3b6ee3f..e2a1cd26 100644 --- a/aiogram/methods/hide_general_forum_topic.py +++ b/aiogram/methods/hide_general_forum_topic.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class HideGeneralForumTopic(TelegramMethod[bool]): __returning__ = bool __api_method__ = "hideGeneralForumTopic" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" if TYPE_CHECKING: @@ -23,7 +24,7 @@ class HideGeneralForumTopic(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/leave_chat.py b/aiogram/methods/leave_chat.py index f9d43128..ec1d10eb 100644 --- a/aiogram/methods/leave_chat.py +++ b/aiogram/methods/leave_chat.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class LeaveChat(TelegramMethod[bool]): __returning__ = bool __api_method__ = "leaveChat" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup or channel (in the format :code:`@channelusername`)""" if TYPE_CHECKING: @@ -23,7 +24,7 @@ class LeaveChat(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/pin_chat_message.py b/aiogram/methods/pin_chat_message.py index 47c28f1c..92154f10 100644 --- a/aiogram/methods/pin_chat_message.py +++ b/aiogram/methods/pin_chat_message.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class PinChatMessage(TelegramMethod[bool]): __returning__ = bool __api_method__ = "pinChatMessage" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" message_id: int """Identifier of a message to pin""" @@ -31,7 +32,7 @@ class PinChatMessage(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_id: int, business_connection_id: Optional[str] = None, disable_notification: Optional[bool] = None, diff --git a/aiogram/methods/promote_chat_member.py b/aiogram/methods/promote_chat_member.py index 2ca410f0..7ce66b56 100644 --- a/aiogram/methods/promote_chat_member.py +++ b/aiogram/methods/promote_chat_member.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class PromoteChatMember(TelegramMethod[bool]): __returning__ = bool __api_method__ = "promoteChatMember" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" user_id: int """Unique identifier of the target user""" @@ -57,7 +58,7 @@ class PromoteChatMember(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, is_anonymous: Optional[bool] = None, can_manage_chat: Optional[bool] = None, diff --git a/aiogram/methods/remove_chat_verification.py b/aiogram/methods/remove_chat_verification.py index 1cd2cc81..3c864a7a 100644 --- a/aiogram/methods/remove_chat_verification.py +++ b/aiogram/methods/remove_chat_verification.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class RemoveChatVerification(TelegramMethod[bool]): __returning__ = bool __api_method__ = "removeChatVerification" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" if TYPE_CHECKING: @@ -23,7 +24,7 @@ class RemoveChatVerification(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/reopen_forum_topic.py b/aiogram/methods/reopen_forum_topic.py index 45eb18d0..b67adfaa 100644 --- a/aiogram/methods/reopen_forum_topic.py +++ b/aiogram/methods/reopen_forum_topic.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class ReopenForumTopic(TelegramMethod[bool]): __returning__ = bool __api_method__ = "reopenForumTopic" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" message_thread_id: int """Unique identifier for the target message thread of the forum topic""" @@ -27,7 +28,7 @@ class ReopenForumTopic(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: int, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/reopen_general_forum_topic.py b/aiogram/methods/reopen_general_forum_topic.py index a6dc04e0..670ab3bc 100644 --- a/aiogram/methods/reopen_general_forum_topic.py +++ b/aiogram/methods/reopen_general_forum_topic.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class ReopenGeneralForumTopic(TelegramMethod[bool]): __returning__ = bool __api_method__ = "reopenGeneralForumTopic" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" if TYPE_CHECKING: @@ -23,7 +24,7 @@ class ReopenGeneralForumTopic(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/restrict_chat_member.py b/aiogram/methods/restrict_chat_member.py index 5dfbd01d..83e87364 100644 --- a/aiogram/methods/restrict_chat_member.py +++ b/aiogram/methods/restrict_chat_member.py @@ -1,9 +1,8 @@ from __future__ import annotations -import datetime -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import ChatPermissions +from ..types import ChatIdUnion, ChatPermissions, DateTimeUnion from .base import TelegramMethod @@ -17,7 +16,7 @@ class RestrictChatMember(TelegramMethod[bool]): __returning__ = bool __api_method__ = "restrictChatMember" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" user_id: int """Unique identifier of the target user""" @@ -25,7 +24,7 @@ class RestrictChatMember(TelegramMethod[bool]): """A JSON-serialized object for new user permissions""" use_independent_chat_permissions: Optional[bool] = None """Pass :code:`True` if chat permissions are set independently. Otherwise, the *can_send_other_messages* and *can_add_web_page_previews* permissions will imply the *can_send_messages*, *can_send_audios*, *can_send_documents*, *can_send_photos*, *can_send_videos*, *can_send_video_notes*, and *can_send_voice_notes* permissions; the *can_send_polls* permission will imply the *can_send_messages* permission.""" - until_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None + until_date: Optional[DateTimeUnion] = None """Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever""" if TYPE_CHECKING: @@ -35,11 +34,11 @@ class RestrictChatMember(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, permissions: ChatPermissions, use_independent_chat_permissions: Optional[bool] = None, - until_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + until_date: Optional[DateTimeUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/methods/revoke_chat_invite_link.py b/aiogram/methods/revoke_chat_invite_link.py index 414feb30..402750f1 100644 --- a/aiogram/methods/revoke_chat_invite_link.py +++ b/aiogram/methods/revoke_chat_invite_link.py @@ -1,8 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any -from ..types import ChatInviteLink +from ..types import ChatIdUnion, ChatInviteLink from .base import TelegramMethod @@ -16,7 +16,7 @@ class RevokeChatInviteLink(TelegramMethod[ChatInviteLink]): __returning__ = ChatInviteLink __api_method__ = "revokeChatInviteLink" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier of the target chat or username of the target channel (in the format :code:`@channelusername`)""" invite_link: str """The invite link to revoke""" @@ -26,11 +26,7 @@ class RevokeChatInviteLink(TelegramMethod[ChatInviteLink]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, - *, - chat_id: Union[int, str], - invite_link: str, - **__pydantic_kwargs: Any, + __pydantic__self__, *, chat_id: ChatIdUnion, invite_link: str, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/save_prepared_inline_message.py b/aiogram/methods/save_prepared_inline_message.py index 07b53e34..aff799bc 100644 --- a/aiogram/methods/save_prepared_inline_message.py +++ b/aiogram/methods/save_prepared_inline_message.py @@ -1,28 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types.inline_query_result_article import InlineQueryResultArticle -from ..types.inline_query_result_audio import InlineQueryResultAudio -from ..types.inline_query_result_cached_audio import InlineQueryResultCachedAudio -from ..types.inline_query_result_cached_document import InlineQueryResultCachedDocument -from ..types.inline_query_result_cached_gif import InlineQueryResultCachedGif -from ..types.inline_query_result_cached_mpeg4_gif import InlineQueryResultCachedMpeg4Gif -from ..types.inline_query_result_cached_photo import InlineQueryResultCachedPhoto -from ..types.inline_query_result_cached_sticker import InlineQueryResultCachedSticker -from ..types.inline_query_result_cached_video import InlineQueryResultCachedVideo -from ..types.inline_query_result_cached_voice import InlineQueryResultCachedVoice -from ..types.inline_query_result_contact import InlineQueryResultContact -from ..types.inline_query_result_document import InlineQueryResultDocument -from ..types.inline_query_result_game import InlineQueryResultGame -from ..types.inline_query_result_gif import InlineQueryResultGif -from ..types.inline_query_result_location import InlineQueryResultLocation -from ..types.inline_query_result_mpeg4_gif import InlineQueryResultMpeg4Gif -from ..types.inline_query_result_photo import InlineQueryResultPhoto -from ..types.inline_query_result_venue import InlineQueryResultVenue -from ..types.inline_query_result_video import InlineQueryResultVideo -from ..types.inline_query_result_voice import InlineQueryResultVoice -from ..types.prepared_inline_message import PreparedInlineMessage +from ..types import InlineQueryResultUnion, PreparedInlineMessage from .base import TelegramMethod @@ -38,28 +18,7 @@ class SavePreparedInlineMessage(TelegramMethod[PreparedInlineMessage]): user_id: int """Unique identifier of the target user that can use the prepared message""" - result: Union[ - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultContact, - InlineQueryResultGame, - InlineQueryResultDocument, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, - ] + result: InlineQueryResultUnion """A JSON-serialized object describing the message to be sent""" allow_user_chats: Optional[bool] = None """Pass :code:`True` if the message can be sent to private chats with users""" @@ -78,28 +37,7 @@ class SavePreparedInlineMessage(TelegramMethod[PreparedInlineMessage]): __pydantic__self__, *, user_id: int, - result: Union[ - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultContact, - InlineQueryResultGame, - InlineQueryResultDocument, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, - ], + result: InlineQueryResultUnion, allow_user_chats: Optional[bool] = None, allow_bot_chats: Optional[bool] = None, allow_group_chats: Optional[bool] = None, diff --git a/aiogram/methods/send_animation.py b/aiogram/methods/send_animation.py index 70d7cbd6..4d63b9b9 100644 --- a/aiogram/methods/send_animation.py +++ b/aiogram/methods/send_animation.py @@ -6,13 +6,12 @@ from pydantic import Field from ..client.default import Default from ..types import ( - ForceReply, - InlineKeyboardMarkup, + ChatIdUnion, InputFile, + InputFileUnion, Message, MessageEntity, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -28,9 +27,9 @@ class SendAnimation(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendAnimation" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - animation: Union[InputFile, str] + animation: InputFileUnion """Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. :ref:`More information on Sending Files » `""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -64,9 +63,7 @@ class SendAnimation(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -88,8 +85,8 @@ class SendAnimation(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - animation: Union[InputFile, str], + chat_id: ChatIdUnion, + animation: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -108,9 +105,7 @@ class SendAnimation(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_audio.py b/aiogram/methods/send_audio.py index b76dafe4..f5c8b14f 100644 --- a/aiogram/methods/send_audio.py +++ b/aiogram/methods/send_audio.py @@ -6,13 +6,12 @@ from pydantic import Field from ..client.default import Default from ..types import ( - ForceReply, - InlineKeyboardMarkup, + ChatIdUnion, InputFile, + InputFileUnion, Message, MessageEntity, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -29,9 +28,9 @@ class SendAudio(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendAudio" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - audio: Union[InputFile, str] + audio: InputFileUnion """Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data. :ref:`More information on Sending Files » `""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -61,9 +60,7 @@ class SendAudio(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -85,8 +82,8 @@ class SendAudio(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - audio: Union[InputFile, str], + chat_id: ChatIdUnion, + audio: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -101,9 +98,7 @@ class SendAudio(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_chat_action.py b/aiogram/methods/send_chat_action.py index a9f452af..ac9cecca 100644 --- a/aiogram/methods/send_chat_action.py +++ b/aiogram/methods/send_chat_action.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional +from ..types import ChatIdUnion from .base import TelegramMethod @@ -19,7 +20,7 @@ class SendChatAction(TelegramMethod[bool]): __returning__ = bool __api_method__ = "sendChatAction" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" action: str """Type of action to broadcast. Choose one, depending on what the user is about to receive: *typing* for `text messages `_, *upload_photo* for `photos `_, *record_video* or *upload_video* for `videos `_, *record_voice* or *upload_voice* for `voice notes `_, *upload_document* for `general files `_, *choose_sticker* for `stickers `_, *find_location* for `location data `_, *record_video_note* or *upload_video_note* for `video notes `_.""" @@ -35,7 +36,7 @@ class SendChatAction(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, action: str, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, diff --git a/aiogram/methods/send_contact.py b/aiogram/methods/send_contact.py index 353b3151..c257a6b3 100644 --- a/aiogram/methods/send_contact.py +++ b/aiogram/methods/send_contact.py @@ -5,14 +5,7 @@ from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field from ..client.default import Default -from ..types import ( - ForceReply, - InlineKeyboardMarkup, - Message, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, - ReplyParameters, -) +from ..types import ChatIdUnion, Message, ReplyMarkupUnion, ReplyParameters from .base import TelegramMethod @@ -26,7 +19,7 @@ class SendContact(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendContact" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" phone_number: str """Contact's phone number""" @@ -50,9 +43,7 @@ class SendContact(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -74,7 +65,7 @@ class SendContact(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, phone_number: str, first_name: str, business_connection_id: Optional[str] = None, @@ -86,9 +77,7 @@ class SendContact(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_dice.py b/aiogram/methods/send_dice.py index f5227772..de091ae9 100644 --- a/aiogram/methods/send_dice.py +++ b/aiogram/methods/send_dice.py @@ -5,14 +5,7 @@ from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field from ..client.default import Default -from ..types import ( - ForceReply, - InlineKeyboardMarkup, - Message, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, - ReplyParameters, -) +from ..types import ChatIdUnion, Message, ReplyMarkupUnion, ReplyParameters from .base import TelegramMethod @@ -26,7 +19,7 @@ class SendDice(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendDice" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -44,9 +37,7 @@ class SendDice(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -68,7 +59,7 @@ class SendDice(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, emoji: Optional[str] = None, @@ -77,9 +68,7 @@ class SendDice(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_document.py b/aiogram/methods/send_document.py index 0108ea3a..aef25c4c 100644 --- a/aiogram/methods/send_document.py +++ b/aiogram/methods/send_document.py @@ -6,13 +6,12 @@ from pydantic import Field from ..client.default import Default from ..types import ( - ForceReply, - InlineKeyboardMarkup, + ChatIdUnion, InputFile, + InputFileUnion, Message, MessageEntity, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -28,9 +27,9 @@ class SendDocument(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendDocument" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - document: Union[InputFile, str] + document: InputFileUnion """File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. :ref:`More information on Sending Files » `""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -56,9 +55,7 @@ class SendDocument(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -80,8 +77,8 @@ class SendDocument(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - document: Union[InputFile, str], + chat_id: ChatIdUnion, + document: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, thumbnail: Optional[InputFile] = None, @@ -94,9 +91,7 @@ class SendDocument(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_gift.py b/aiogram/methods/send_gift.py index e666c75f..082dfae7 100644 --- a/aiogram/methods/send_gift.py +++ b/aiogram/methods/send_gift.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional +from ..types import ChatIdUnion from ..types.message_entity import MessageEntity from .base import TelegramMethod @@ -20,7 +21,7 @@ class SendGift(TelegramMethod[bool]): """Identifier of the gift""" user_id: Optional[int] = None """Required if *chat_id* is not specified. Unique identifier of the target user who will receive the gift.""" - chat_id: Optional[Union[int, str]] = None + chat_id: Optional[ChatIdUnion] = None """Required if *user_id* is not specified. Unique identifier for the chat or username of the channel (in the format :code:`@channelusername`) that will receive the gift.""" pay_for_upgrade: Optional[bool] = None """Pass :code:`True` to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver""" @@ -40,7 +41,7 @@ class SendGift(TelegramMethod[bool]): *, gift_id: str, user_id: Optional[int] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, pay_for_upgrade: Optional[bool] = None, text: Optional[str] = None, text_parse_mode: Optional[str] = None, diff --git a/aiogram/methods/send_invoice.py b/aiogram/methods/send_invoice.py index 1bcdea89..fe54e9ec 100644 --- a/aiogram/methods/send_invoice.py +++ b/aiogram/methods/send_invoice.py @@ -5,7 +5,13 @@ from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field from ..client.default import Default -from ..types import InlineKeyboardMarkup, LabeledPrice, Message, ReplyParameters +from ..types import ( + ChatIdUnion, + InlineKeyboardMarkup, + LabeledPrice, + Message, + ReplyParameters, +) from .base import TelegramMethod @@ -19,7 +25,7 @@ class SendInvoice(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendInvoice" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" title: str """Product name, 1-32 characters""" @@ -97,7 +103,7 @@ class SendInvoice(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, title: str, description: str, payload: str, diff --git a/aiogram/methods/send_location.py b/aiogram/methods/send_location.py index 3f03fd40..f5dba433 100644 --- a/aiogram/methods/send_location.py +++ b/aiogram/methods/send_location.py @@ -5,14 +5,7 @@ from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field from ..client.default import Default -from ..types import ( - ForceReply, - InlineKeyboardMarkup, - Message, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, - ReplyParameters, -) +from ..types import ChatIdUnion, Message, ReplyMarkupUnion, ReplyParameters from .base import TelegramMethod @@ -26,7 +19,7 @@ class SendLocation(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendLocation" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" latitude: float """Latitude of the location""" @@ -54,9 +47,7 @@ class SendLocation(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -78,7 +69,7 @@ class SendLocation(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, latitude: float, longitude: float, business_connection_id: Optional[str] = None, @@ -92,9 +83,7 @@ class SendLocation(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_media_group.py b/aiogram/methods/send_media_group.py index 045fca09..214c8af8 100644 --- a/aiogram/methods/send_media_group.py +++ b/aiogram/methods/send_media_group.py @@ -5,14 +5,7 @@ from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field from ..client.default import Default -from ..types import ( - InputMediaAudio, - InputMediaDocument, - InputMediaPhoto, - InputMediaVideo, - Message, - ReplyParameters, -) +from ..types import ChatIdUnion, MediaUnion, Message, ReplyParameters from .base import TelegramMethod @@ -26,9 +19,9 @@ class SendMediaGroup(TelegramMethod[list[Message]]): __returning__ = list[Message] __api_method__ = "sendMediaGroup" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - media: list[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]] + media: list[MediaUnion] """A JSON-serialized array describing messages to be sent, must include 2-10 items""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -64,10 +57,8 @@ class SendMediaGroup(TelegramMethod[list[Message]]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - media: list[ - Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo] - ], + chat_id: ChatIdUnion, + media: list[MediaUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, diff --git a/aiogram/methods/send_message.py b/aiogram/methods/send_message.py index 954bb92e..db053a45 100644 --- a/aiogram/methods/send_message.py +++ b/aiogram/methods/send_message.py @@ -6,13 +6,11 @@ from pydantic import Field from ..client.default import Default from ..types import ( - ForceReply, - InlineKeyboardMarkup, + ChatIdUnion, LinkPreviewOptions, Message, MessageEntity, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -28,7 +26,7 @@ class SendMessage(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendMessage" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" text: str """Text of the message to be sent, 1-4096 characters after entities parsing""" @@ -52,9 +50,7 @@ class SendMessage(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -83,7 +79,7 @@ class SendMessage(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, text: str, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, @@ -97,9 +93,7 @@ class SendMessage(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, disable_web_page_preview: Optional[Union[bool, Default]] = Default( "link_preview_is_disabled" diff --git a/aiogram/methods/send_paid_media.py b/aiogram/methods/send_paid_media.py index ba7e1452..10981c57 100644 --- a/aiogram/methods/send_paid_media.py +++ b/aiogram/methods/send_paid_media.py @@ -1,16 +1,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional from ..types import ( - ForceReply, - InlineKeyboardMarkup, - InputPaidMediaPhoto, - InputPaidMediaVideo, + ChatIdUnion, + InputPaidMediaUnion, Message, MessageEntity, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -26,11 +23,11 @@ class SendPaidMedia(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendPaidMedia" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance.""" star_count: int """The number of Telegram Stars that must be paid to buy access to the media; 1-2500""" - media: list[Union[InputPaidMediaPhoto, InputPaidMediaVideo]] + media: list[InputPaidMediaUnion] """A JSON-serialized array describing the media to be sent; up to 10 items""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -52,9 +49,7 @@ class SendPaidMedia(TelegramMethod[Message]): """Pass :code:`True` to allow up to 1000 messages per second, ignoring `broadcasting limits `_ for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" if TYPE_CHECKING: @@ -64,9 +59,9 @@ class SendPaidMedia(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, star_count: int, - media: list[Union[InputPaidMediaPhoto, InputPaidMediaVideo]], + media: list[InputPaidMediaUnion], business_connection_id: Optional[str] = None, payload: Optional[str] = None, caption: Optional[str] = None, @@ -77,9 +72,7 @@ class SendPaidMedia(TelegramMethod[Message]): protect_content: Optional[bool] = None, allow_paid_broadcast: Optional[bool] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/methods/send_photo.py b/aiogram/methods/send_photo.py index 8f011b62..8a0ef798 100644 --- a/aiogram/methods/send_photo.py +++ b/aiogram/methods/send_photo.py @@ -6,13 +6,11 @@ from pydantic import Field from ..client.default import Default from ..types import ( - ForceReply, - InlineKeyboardMarkup, - InputFile, + ChatIdUnion, + InputFileUnion, Message, MessageEntity, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -28,9 +26,9 @@ class SendPhoto(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendPhoto" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - photo: Union[InputFile, str] + photo: InputFileUnion """Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. :ref:`More information on Sending Files » `""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -56,9 +54,7 @@ class SendPhoto(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -80,8 +76,8 @@ class SendPhoto(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - photo: Union[InputFile, str], + chat_id: ChatIdUnion, + photo: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -96,9 +92,7 @@ class SendPhoto(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_poll.py b/aiogram/methods/send_poll.py index dbcfeda6..c98603a4 100644 --- a/aiogram/methods/send_poll.py +++ b/aiogram/methods/send_poll.py @@ -1,19 +1,17 @@ from __future__ import annotations -import datetime from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field from ..client.default import Default from ..types import ( - ForceReply, - InlineKeyboardMarkup, - InputPollOption, + ChatIdUnion, + DateTimeUnion, + InputPollOptionUnion, Message, MessageEntity, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -29,11 +27,11 @@ class SendPoll(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendPoll" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" question: str """Poll question, 1-300 characters""" - options: list[Union[InputPollOption, str]] + options: list[InputPollOptionUnion] """A JSON-serialized list of 2-10 answer options""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -59,7 +57,7 @@ class SendPoll(TelegramMethod[Message]): """A JSON-serialized list of special entities that appear in the poll explanation. It can be specified instead of *explanation_parse_mode*""" open_period: Optional[int] = None """Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with *close_date*.""" - close_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None + close_date: Optional[DateTimeUnion] = None """Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future. Can't be used together with *open_period*.""" is_closed: Optional[bool] = None """Pass :code:`True` if the poll needs to be immediately closed. This can be useful for poll preview.""" @@ -73,9 +71,7 @@ class SendPoll(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -97,9 +93,9 @@ class SendPoll(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, question: str, - options: list[Union[InputPollOption, str]], + options: list[InputPollOptionUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, question_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), @@ -112,16 +108,14 @@ class SendPoll(TelegramMethod[Message]): explanation_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), explanation_entities: Optional[list[MessageEntity]] = None, open_period: Optional[int] = None, - close_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + close_date: Optional[DateTimeUnion] = None, is_closed: Optional[bool] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_sticker.py b/aiogram/methods/send_sticker.py index b558afa3..ac9c8815 100644 --- a/aiogram/methods/send_sticker.py +++ b/aiogram/methods/send_sticker.py @@ -6,12 +6,10 @@ from pydantic import Field from ..client.default import Default from ..types import ( - ForceReply, - InlineKeyboardMarkup, - InputFile, + ChatIdUnion, + InputFileUnion, Message, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -27,9 +25,9 @@ class SendSticker(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendSticker" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - sticker: Union[InputFile, str] + sticker: InputFileUnion """Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data. :ref:`More information on Sending Files » `. Video and animated stickers can't be sent via an HTTP URL.""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -47,9 +45,7 @@ class SendSticker(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -71,8 +67,8 @@ class SendSticker(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - sticker: Union[InputFile, str], + chat_id: ChatIdUnion, + sticker: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, emoji: Optional[str] = None, @@ -81,9 +77,7 @@ class SendSticker(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_venue.py b/aiogram/methods/send_venue.py index 6ccd8cb8..d0ed16fb 100644 --- a/aiogram/methods/send_venue.py +++ b/aiogram/methods/send_venue.py @@ -5,14 +5,7 @@ from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field from ..client.default import Default -from ..types import ( - ForceReply, - InlineKeyboardMarkup, - Message, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, - ReplyParameters, -) +from ..types import ChatIdUnion, Message, ReplyMarkupUnion, ReplyParameters from .base import TelegramMethod @@ -26,7 +19,7 @@ class SendVenue(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendVenue" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" latitude: float """Latitude of the venue""" @@ -58,9 +51,7 @@ class SendVenue(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -82,7 +73,7 @@ class SendVenue(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, latitude: float, longitude: float, title: str, @@ -98,9 +89,7 @@ class SendVenue(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_video.py b/aiogram/methods/send_video.py index b3e7271c..585c4c5b 100644 --- a/aiogram/methods/send_video.py +++ b/aiogram/methods/send_video.py @@ -1,19 +1,18 @@ from __future__ import annotations -import datetime from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field from ..client.default import Default from ..types import ( - ForceReply, - InlineKeyboardMarkup, + ChatIdUnion, + DateTimeUnion, InputFile, + InputFileUnion, Message, MessageEntity, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -29,9 +28,9 @@ class SendVideo(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendVideo" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - video: Union[InputFile, str] + video: InputFileUnion """Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data. :ref:`More information on Sending Files » `""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -45,9 +44,9 @@ class SendVideo(TelegramMethod[Message]): """Video height""" thumbnail: Optional[InputFile] = None """Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass 'attach://' if the thumbnail was uploaded using multipart/form-data under . :ref:`More information on Sending Files » `""" - cover: Optional[Union[InputFile, str]] = None + cover: Optional[InputFileUnion] = None """Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass 'attach://' to upload a new one using multipart/form-data under name. :ref:`More information on Sending Files » `""" - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None + start_timestamp: Optional[DateTimeUnion] = None """Start timestamp for the video in the message""" caption: Optional[str] = None """Video caption (may also be used when resending videos by *file_id*), 0-1024 characters after entities parsing""" @@ -71,9 +70,7 @@ class SendVideo(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -95,16 +92,16 @@ class SendVideo(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - video: Union[InputFile, str], + chat_id: ChatIdUnion, + video: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, thumbnail: Optional[InputFile] = None, - cover: Optional[Union[InputFile, str]] = None, - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + cover: Optional[InputFileUnion] = None, + start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -118,9 +115,7 @@ class SendVideo(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_video_note.py b/aiogram/methods/send_video_note.py index 05ec334b..0506b162 100644 --- a/aiogram/methods/send_video_note.py +++ b/aiogram/methods/send_video_note.py @@ -6,12 +6,11 @@ from pydantic import Field from ..client.default import Default from ..types import ( - ForceReply, - InlineKeyboardMarkup, + ChatIdUnion, InputFile, + InputFileUnion, Message, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -27,9 +26,9 @@ class SendVideoNote(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendVideoNote" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - video_note: Union[InputFile, str] + video_note: InputFileUnion """Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. :ref:`More information on Sending Files » `. Sending video notes by a URL is currently unsupported""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -51,9 +50,7 @@ class SendVideoNote(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -75,8 +72,8 @@ class SendVideoNote(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - video_note: Union[InputFile, str], + chat_id: ChatIdUnion, + video_note: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -87,9 +84,7 @@ class SendVideoNote(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/send_voice.py b/aiogram/methods/send_voice.py index 9d789bd7..05247a8f 100644 --- a/aiogram/methods/send_voice.py +++ b/aiogram/methods/send_voice.py @@ -6,13 +6,11 @@ from pydantic import Field from ..client.default import Default from ..types import ( - ForceReply, - InlineKeyboardMarkup, - InputFile, + ChatIdUnion, + InputFileUnion, Message, MessageEntity, - ReplyKeyboardMarkup, - ReplyKeyboardRemove, + ReplyMarkupUnion, ReplyParameters, ) from .base import TelegramMethod @@ -28,9 +26,9 @@ class SendVoice(TelegramMethod[Message]): __returning__ = Message __api_method__ = "sendVoice" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" - voice: Union[InputFile, str] + voice: InputFileUnion """Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. :ref:`More information on Sending Files » `""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be sent""" @@ -54,9 +52,7 @@ class SendVoice(TelegramMethod[Message]): """Unique identifier of the message effect to be added to the message; for private chats only""" reply_parameters: Optional[ReplyParameters] = None """Description of the message to reply to""" - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None + reply_markup: Optional[ReplyMarkupUnion] = None """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove a reply keyboard or to force a reply from the user""" allow_sending_without_reply: Optional[bool] = Field( None, json_schema_extra={"deprecated": True} @@ -78,8 +74,8 @@ class SendVoice(TelegramMethod[Message]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], - voice: Union[InputFile, str], + chat_id: ChatIdUnion, + voice: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -91,9 +87,7 @@ class SendVoice(TelegramMethod[Message]): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/set_chat_administrator_custom_title.py b/aiogram/methods/set_chat_administrator_custom_title.py index a7953c12..d18a41d9 100644 --- a/aiogram/methods/set_chat_administrator_custom_title.py +++ b/aiogram/methods/set_chat_administrator_custom_title.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class SetChatAdministratorCustomTitle(TelegramMethod[bool]): __returning__ = bool __api_method__ = "setChatAdministratorCustomTitle" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" user_id: int """Unique identifier of the target user""" @@ -29,7 +30,7 @@ class SetChatAdministratorCustomTitle(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, custom_title: str, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/set_chat_description.py b/aiogram/methods/set_chat_description.py index 0f8a4a4b..0cd15924 100644 --- a/aiogram/methods/set_chat_description.py +++ b/aiogram/methods/set_chat_description.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class SetChatDescription(TelegramMethod[bool]): __returning__ = bool __api_method__ = "setChatDescription" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" description: Optional[str] = None """New chat description, 0-255 characters""" @@ -27,7 +28,7 @@ class SetChatDescription(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, description: Optional[str] = None, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/set_chat_menu_button.py b/aiogram/methods/set_chat_menu_button.py index 97515d5a..8ba8acc6 100644 --- a/aiogram/methods/set_chat_menu_button.py +++ b/aiogram/methods/set_chat_menu_button.py @@ -1,8 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import MenuButtonCommands, MenuButtonDefault, MenuButtonWebApp +from ..types import MenuButtonUnion from .base import TelegramMethod @@ -18,7 +18,7 @@ class SetChatMenuButton(TelegramMethod[bool]): chat_id: Optional[int] = None """Unique identifier for the target private chat. If not specified, default bot's menu button will be changed""" - menu_button: Optional[Union[MenuButtonCommands, MenuButtonWebApp, MenuButtonDefault]] = None + menu_button: Optional[MenuButtonUnion] = None """A JSON-serialized object for the bot's new menu button. Defaults to :class:`aiogram.types.menu_button_default.MenuButtonDefault`""" if TYPE_CHECKING: @@ -29,9 +29,7 @@ class SetChatMenuButton(TelegramMethod[bool]): __pydantic__self__, *, chat_id: Optional[int] = None, - menu_button: Optional[ - Union[MenuButtonCommands, MenuButtonWebApp, MenuButtonDefault] - ] = None, + menu_button: Optional[MenuButtonUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/methods/set_chat_permissions.py b/aiogram/methods/set_chat_permissions.py index 232af08c..65b3a585 100644 --- a/aiogram/methods/set_chat_permissions.py +++ b/aiogram/methods/set_chat_permissions.py @@ -1,8 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import ChatPermissions +from ..types import ChatIdUnion, ChatPermissions from .base import TelegramMethod @@ -16,7 +16,7 @@ class SetChatPermissions(TelegramMethod[bool]): __returning__ = bool __api_method__ = "setChatPermissions" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" permissions: ChatPermissions """A JSON-serialized object for new default chat permissions""" @@ -30,7 +30,7 @@ class SetChatPermissions(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, permissions: ChatPermissions, use_independent_chat_permissions: Optional[bool] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/set_chat_photo.py b/aiogram/methods/set_chat_photo.py index 105f8f87..7d6a4b79 100644 --- a/aiogram/methods/set_chat_photo.py +++ b/aiogram/methods/set_chat_photo.py @@ -1,8 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any -from ..types import InputFile +from ..types import ChatIdUnion, InputFile from .base import TelegramMethod @@ -16,7 +16,7 @@ class SetChatPhoto(TelegramMethod[bool]): __returning__ = bool __api_method__ = "setChatPhoto" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" photo: InputFile """New chat photo, uploaded using multipart/form-data""" @@ -26,11 +26,7 @@ class SetChatPhoto(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, - *, - chat_id: Union[int, str], - photo: InputFile, - **__pydantic_kwargs: Any, + __pydantic__self__, *, chat_id: ChatIdUnion, photo: InputFile, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/set_chat_sticker_set.py b/aiogram/methods/set_chat_sticker_set.py index 62ed5d18..d453ddc5 100644 --- a/aiogram/methods/set_chat_sticker_set.py +++ b/aiogram/methods/set_chat_sticker_set.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class SetChatStickerSet(TelegramMethod[bool]): __returning__ = bool __api_method__ = "setChatStickerSet" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" sticker_set_name: str """Name of the sticker set to be set as the group sticker set""" @@ -27,7 +28,7 @@ class SetChatStickerSet(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, sticker_set_name: str, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/set_chat_title.py b/aiogram/methods/set_chat_title.py index 04b52e09..5cf29ea9 100644 --- a/aiogram/methods/set_chat_title.py +++ b/aiogram/methods/set_chat_title.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class SetChatTitle(TelegramMethod[bool]): __returning__ = bool __api_method__ = "setChatTitle" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" title: str """New chat title, 1-128 characters""" @@ -25,7 +26,7 @@ class SetChatTitle(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], title: str, **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, title: str, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/set_message_reaction.py b/aiogram/methods/set_message_reaction.py index 923edaa8..6af7edb1 100644 --- a/aiogram/methods/set_message_reaction.py +++ b/aiogram/methods/set_message_reaction.py @@ -1,6 +1,6 @@ -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import ReactionTypeCustomEmoji, ReactionTypeEmoji, ReactionTypePaid +from ..types import ChatIdUnion, ReactionTypeUnion from .base import TelegramMethod @@ -14,13 +14,11 @@ class SetMessageReaction(TelegramMethod[bool]): __returning__ = bool __api_method__ = "setMessageReaction" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" message_id: int """Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.""" - reaction: Optional[ - list[Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid]] - ] = None + reaction: Optional[list[ReactionTypeUnion]] = None """A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators. Paid reactions can't be used by bots.""" is_big: Optional[bool] = None """Pass :code:`True` to set the reaction with a big animation""" @@ -32,11 +30,9 @@ class SetMessageReaction(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_id: int, - reaction: Optional[ - list[Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid]] - ] = None, + reaction: Optional[list[ReactionTypeUnion]] = None, is_big: Optional[bool] = None, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/set_my_commands.py b/aiogram/methods/set_my_commands.py index a8186c9b..5f9a0552 100644 --- a/aiogram/methods/set_my_commands.py +++ b/aiogram/methods/set_my_commands.py @@ -1,17 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import ( - BotCommand, - BotCommandScopeAllChatAdministrators, - BotCommandScopeAllGroupChats, - BotCommandScopeAllPrivateChats, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - BotCommandScopeDefault, -) +from ..types import BotCommand, BotCommandScopeUnion from .base import TelegramMethod @@ -27,17 +18,7 @@ class SetMyCommands(TelegramMethod[bool]): commands: list[BotCommand] """A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.""" - scope: Optional[ - Union[ - BotCommandScopeDefault, - BotCommandScopeAllPrivateChats, - BotCommandScopeAllGroupChats, - BotCommandScopeAllChatAdministrators, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - ] - ] = None + scope: Optional[BotCommandScopeUnion] = None """A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to :class:`aiogram.types.bot_command_scope_default.BotCommandScopeDefault`.""" language_code: Optional[str] = None """A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands""" @@ -50,17 +31,7 @@ class SetMyCommands(TelegramMethod[bool]): __pydantic__self__, *, commands: list[BotCommand], - scope: Optional[ - Union[ - BotCommandScopeDefault, - BotCommandScopeAllPrivateChats, - BotCommandScopeAllGroupChats, - BotCommandScopeAllChatAdministrators, - BotCommandScopeChat, - BotCommandScopeChatAdministrators, - BotCommandScopeChatMember, - ] - ] = None, + scope: Optional[BotCommandScopeUnion] = None, language_code: Optional[str] = None, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/set_passport_data_errors.py b/aiogram/methods/set_passport_data_errors.py index 9d50ffae..73f2b92d 100644 --- a/aiogram/methods/set_passport_data_errors.py +++ b/aiogram/methods/set_passport_data_errors.py @@ -1,18 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any -from ..types import ( - PassportElementErrorDataField, - PassportElementErrorFile, - PassportElementErrorFiles, - PassportElementErrorFrontSide, - PassportElementErrorReverseSide, - PassportElementErrorSelfie, - PassportElementErrorTranslationFile, - PassportElementErrorTranslationFiles, - PassportElementErrorUnspecified, -) +from ..types import PassportElementErrorUnion from .base import TelegramMethod @@ -29,19 +19,7 @@ class SetPassportDataErrors(TelegramMethod[bool]): user_id: int """User identifier""" - errors: list[ - Union[ - PassportElementErrorDataField, - PassportElementErrorFrontSide, - PassportElementErrorReverseSide, - PassportElementErrorSelfie, - PassportElementErrorFile, - PassportElementErrorFiles, - PassportElementErrorTranslationFile, - PassportElementErrorTranslationFiles, - PassportElementErrorUnspecified, - ] - ] + errors: list[PassportElementErrorUnion] """A JSON-serialized array describing the errors""" if TYPE_CHECKING: @@ -52,19 +30,7 @@ class SetPassportDataErrors(TelegramMethod[bool]): __pydantic__self__, *, user_id: int, - errors: list[ - Union[ - PassportElementErrorDataField, - PassportElementErrorFrontSide, - PassportElementErrorReverseSide, - PassportElementErrorSelfie, - PassportElementErrorFile, - PassportElementErrorFiles, - PassportElementErrorTranslationFile, - PassportElementErrorTranslationFiles, - PassportElementErrorUnspecified, - ] - ], + errors: list[PassportElementErrorUnion], **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/methods/set_sticker_set_thumbnail.py b/aiogram/methods/set_sticker_set_thumbnail.py index 64140ee4..ef5d8ae8 100644 --- a/aiogram/methods/set_sticker_set_thumbnail.py +++ b/aiogram/methods/set_sticker_set_thumbnail.py @@ -1,8 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import InputFile +from ..types import InputFileUnion from .base import TelegramMethod @@ -22,7 +22,7 @@ class SetStickerSetThumbnail(TelegramMethod[bool]): """User identifier of the sticker set owner""" format: str """Format of the thumbnail, must be one of 'static' for a **.WEBP** or **.PNG** image, 'animated' for a **.TGS** animation, or 'video' for a **.WEBM** video""" - thumbnail: Optional[Union[InputFile, str]] = None + thumbnail: Optional[InputFileUnion] = None """A **.WEBP** or **.PNG** image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a **.TGS** animation with a thumbnail up to 32 kilobytes in size (see `https://core.telegram.org/stickers#animation-requirements `_`https://core.telegram.org/stickers#animation-requirements `_ for animated sticker technical requirements), or a **.WEBM** video with the thumbnail up to 32 kilobytes in size; see `https://core.telegram.org/stickers#video-requirements `_`https://core.telegram.org/stickers#video-requirements `_ for video sticker technical requirements. Pass a *file_id* as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. :ref:`More information on Sending Files » `. Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail.""" if TYPE_CHECKING: @@ -35,7 +35,7 @@ class SetStickerSetThumbnail(TelegramMethod[bool]): name: str, user_id: int, format: str, - thumbnail: Optional[Union[InputFile, str]] = None, + thumbnail: Optional[InputFileUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/methods/set_user_emoji_status.py b/aiogram/methods/set_user_emoji_status.py index 216ec787..b35b19c3 100644 --- a/aiogram/methods/set_user_emoji_status.py +++ b/aiogram/methods/set_user_emoji_status.py @@ -1,8 +1,8 @@ from __future__ import annotations -import datetime -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional +from ..types import DateTimeUnion from .base import TelegramMethod @@ -20,9 +20,7 @@ class SetUserEmojiStatus(TelegramMethod[bool]): """Unique identifier of the target user""" emoji_status_custom_emoji_id: Optional[str] = None """Custom emoji identifier of the emoji status to set. Pass an empty string to remove the status.""" - emoji_status_expiration_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = ( - None - ) + emoji_status_expiration_date: Optional[DateTimeUnion] = None """Expiration date of the emoji status, if any""" if TYPE_CHECKING: @@ -34,9 +32,7 @@ class SetUserEmojiStatus(TelegramMethod[bool]): *, user_id: int, emoji_status_custom_emoji_id: Optional[str] = None, - emoji_status_expiration_date: Optional[ - Union[datetime.datetime, datetime.timedelta, int] - ] = None, + emoji_status_expiration_date: Optional[DateTimeUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/methods/stop_message_live_location.py b/aiogram/methods/stop_message_live_location.py index f5fe3359..04addd76 100644 --- a/aiogram/methods/stop_message_live_location.py +++ b/aiogram/methods/stop_message_live_location.py @@ -2,7 +2,7 @@ from __future__ import annotations from typing import TYPE_CHECKING, Any, Optional, Union -from ..types import InlineKeyboardMarkup, Message +from ..types import ChatIdUnion, InlineKeyboardMarkup, Message from .base import TelegramMethod @@ -18,7 +18,7 @@ class StopMessageLiveLocation(TelegramMethod[Union[Message, bool]]): business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message to be edited was sent""" - chat_id: Optional[Union[int, str]] = None + chat_id: Optional[ChatIdUnion] = None """Required if *inline_message_id* is not specified. Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" message_id: Optional[int] = None """Required if *inline_message_id* is not specified. Identifier of the message with live location to stop""" @@ -35,7 +35,7 @@ class StopMessageLiveLocation(TelegramMethod[Union[Message, bool]]): __pydantic__self__, *, business_connection_id: Optional[str] = None, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, message_id: Optional[int] = None, inline_message_id: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, diff --git a/aiogram/methods/stop_poll.py b/aiogram/methods/stop_poll.py index 8393a522..2c4f16aa 100644 --- a/aiogram/methods/stop_poll.py +++ b/aiogram/methods/stop_poll.py @@ -1,8 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional -from ..types import InlineKeyboardMarkup, Poll +from ..types import ChatIdUnion, InlineKeyboardMarkup, Poll from .base import TelegramMethod @@ -16,7 +16,7 @@ class StopPoll(TelegramMethod[Poll]): __returning__ = Poll __api_method__ = "stopPoll" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" message_id: int """Identifier of the original message with the poll""" @@ -32,7 +32,7 @@ class StopPoll(TelegramMethod[Poll]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_id: int, business_connection_id: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, diff --git a/aiogram/methods/unban_chat_member.py b/aiogram/methods/unban_chat_member.py index 1094db52..20178bc8 100644 --- a/aiogram/methods/unban_chat_member.py +++ b/aiogram/methods/unban_chat_member.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class UnbanChatMember(TelegramMethod[bool]): __returning__ = bool __api_method__ = "unbanChatMember" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target group or username of the target supergroup or channel (in the format :code:`@channelusername`)""" user_id: int """Unique identifier of the target user""" @@ -29,7 +30,7 @@ class UnbanChatMember(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, only_if_banned: Optional[bool] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/unban_chat_sender_chat.py b/aiogram/methods/unban_chat_sender_chat.py index b9816984..b4f8343d 100644 --- a/aiogram/methods/unban_chat_sender_chat.py +++ b/aiogram/methods/unban_chat_sender_chat.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class UnbanChatSenderChat(TelegramMethod[bool]): __returning__ = bool __api_method__ = "unbanChatSenderChat" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" sender_chat_id: int """Unique identifier of the target sender chat""" @@ -27,7 +28,7 @@ class UnbanChatSenderChat(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, sender_chat_id: int, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/unhide_general_forum_topic.py b/aiogram/methods/unhide_general_forum_topic.py index a9149bc8..b0e1b58d 100644 --- a/aiogram/methods/unhide_general_forum_topic.py +++ b/aiogram/methods/unhide_general_forum_topic.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class UnhideGeneralForumTopic(TelegramMethod[bool]): __returning__ = bool __api_method__ = "unhideGeneralForumTopic" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" if TYPE_CHECKING: @@ -23,7 +24,7 @@ class UnhideGeneralForumTopic(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/unpin_all_chat_messages.py b/aiogram/methods/unpin_all_chat_messages.py index aca090f3..03f35390 100644 --- a/aiogram/methods/unpin_all_chat_messages.py +++ b/aiogram/methods/unpin_all_chat_messages.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class UnpinAllChatMessages(TelegramMethod[bool]): __returning__ = bool __api_method__ = "unpinAllChatMessages" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" if TYPE_CHECKING: @@ -23,7 +24,7 @@ class UnpinAllChatMessages(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/unpin_all_forum_topic_messages.py b/aiogram/methods/unpin_all_forum_topic_messages.py index f1350ecc..083a84eb 100644 --- a/aiogram/methods/unpin_all_forum_topic_messages.py +++ b/aiogram/methods/unpin_all_forum_topic_messages.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class UnpinAllForumTopicMessages(TelegramMethod[bool]): __returning__ = bool __api_method__ = "unpinAllForumTopicMessages" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" message_thread_id: int """Unique identifier for the target message thread of the forum topic""" @@ -27,7 +28,7 @@ class UnpinAllForumTopicMessages(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: int, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/methods/unpin_all_general_forum_topic_messages.py b/aiogram/methods/unpin_all_general_forum_topic_messages.py index be76c198..1341832d 100644 --- a/aiogram/methods/unpin_all_general_forum_topic_messages.py +++ b/aiogram/methods/unpin_all_general_forum_topic_messages.py @@ -1,7 +1,9 @@ -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any from aiogram.methods import TelegramMethod +from ..types import ChatIdUnion + class UnpinAllGeneralForumTopicMessages(TelegramMethod[bool]): """ @@ -13,7 +15,7 @@ class UnpinAllGeneralForumTopicMessages(TelegramMethod[bool]): __returning__ = bool __api_method__ = "unpinAllGeneralForumTopicMessages" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" if TYPE_CHECKING: @@ -21,7 +23,7 @@ class UnpinAllGeneralForumTopicMessages(TelegramMethod[bool]): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, *, chat_id: Union[int, str], **__pydantic_kwargs: Any + __pydantic__self__, *, chat_id: ChatIdUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/methods/unpin_chat_message.py b/aiogram/methods/unpin_chat_message.py index 249aee6d..17e246f2 100644 --- a/aiogram/methods/unpin_chat_message.py +++ b/aiogram/methods/unpin_chat_message.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class UnpinChatMessage(TelegramMethod[bool]): __returning__ = bool __api_method__ = "unpinChatMessage" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" business_connection_id: Optional[str] = None """Unique identifier of the business connection on behalf of which the message will be unpinned""" @@ -29,7 +30,7 @@ class UnpinChatMessage(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, business_connection_id: Optional[str] = None, message_id: Optional[int] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/methods/verify_chat.py b/aiogram/methods/verify_chat.py index 4154219f..fc389022 100644 --- a/aiogram/methods/verify_chat.py +++ b/aiogram/methods/verify_chat.py @@ -1,7 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional +from ..types import ChatIdUnion from .base import TelegramMethod @@ -15,7 +16,7 @@ class VerifyChat(TelegramMethod[bool]): __returning__ = bool __api_method__ = "verifyChat" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" custom_description: Optional[str] = None """Custom description for the verification; 0-70 characters. Must be empty if the organization isn't allowed to provide a custom verification description.""" @@ -27,7 +28,7 @@ class VerifyChat(TelegramMethod[bool]): def __init__( __pydantic__self__, *, - chat_id: Union[int, str], + chat_id: ChatIdUnion, custom_description: Optional[str] = None, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/types/__init__.py b/aiogram/types/__init__.py index 8966b4db..7b07990d 100644 --- a/aiogram/types/__init__.py +++ b/aiogram/types/__init__.py @@ -7,10 +7,12 @@ from .background_fill import BackgroundFill from .background_fill_freeform_gradient import BackgroundFillFreeformGradient from .background_fill_gradient import BackgroundFillGradient from .background_fill_solid import BackgroundFillSolid +from .background_fill_union import BackgroundFillUnion from .background_type import BackgroundType from .background_type_chat_theme import BackgroundTypeChatTheme from .background_type_fill import BackgroundTypeFill from .background_type_pattern import BackgroundTypePattern +from .background_type_union import BackgroundTypeUnion from .background_type_wallpaper import BackgroundTypeWallpaper from .base import UNSET_PARSE_MODE, TelegramObject from .birthdate import Birthdate @@ -25,6 +27,7 @@ from .bot_command_scope_chat import BotCommandScopeChat from .bot_command_scope_chat_administrators import BotCommandScopeChatAdministrators from .bot_command_scope_chat_member import BotCommandScopeChatMember from .bot_command_scope_default import BotCommandScopeDefault +from .bot_command_scope_union import BotCommandScopeUnion from .bot_description import BotDescription from .bot_name import BotName from .bot_short_description import BotShortDescription @@ -46,8 +49,10 @@ from .chat_boost_source import ChatBoostSource from .chat_boost_source_gift_code import ChatBoostSourceGiftCode from .chat_boost_source_giveaway import ChatBoostSourceGiveaway from .chat_boost_source_premium import ChatBoostSourcePremium +from .chat_boost_source_union import ChatBoostSourceUnion from .chat_boost_updated import ChatBoostUpdated from .chat_full_info import ChatFullInfo +from .chat_id_union import ChatIdUnion from .chat_invite_link import ChatInviteLink from .chat_join_request import ChatJoinRequest from .chat_location import ChatLocation @@ -58,6 +63,7 @@ from .chat_member_left import ChatMemberLeft from .chat_member_member import ChatMemberMember from .chat_member_owner import ChatMemberOwner from .chat_member_restricted import ChatMemberRestricted +from .chat_member_union import ChatMemberUnion from .chat_member_updated import ChatMemberUpdated from .chat_permissions import ChatPermissions from .chat_photo import ChatPhoto @@ -66,6 +72,7 @@ from .chosen_inline_result import ChosenInlineResult from .contact import Contact from .copy_text_button import CopyTextButton from .custom import DateTime +from .date_time_union import DateTimeUnion from .dice import Dice from .document import Document from .downloadable import Downloadable @@ -112,12 +119,14 @@ from .inline_query_result_gif import InlineQueryResultGif from .inline_query_result_location import InlineQueryResultLocation from .inline_query_result_mpeg4_gif import InlineQueryResultMpeg4Gif from .inline_query_result_photo import InlineQueryResultPhoto +from .inline_query_result_union import InlineQueryResultUnion from .inline_query_result_venue import InlineQueryResultVenue from .inline_query_result_video import InlineQueryResultVideo from .inline_query_result_voice import InlineQueryResultVoice from .inline_query_results_button import InlineQueryResultsButton from .input_contact_message_content import InputContactMessageContent from .input_file import BufferedInputFile, FSInputFile, InputFile, URLInputFile +from .input_file_union import InputFileUnion from .input_invoice_message_content import InputInvoiceMessageContent from .input_location_message_content import InputLocationMessageContent from .input_media import InputMedia @@ -125,12 +134,16 @@ from .input_media_animation import InputMediaAnimation from .input_media_audio import InputMediaAudio from .input_media_document import InputMediaDocument from .input_media_photo import InputMediaPhoto +from .input_media_union import InputMediaUnion from .input_media_video import InputMediaVideo from .input_message_content import InputMessageContent +from .input_message_content_union import InputMessageContentUnion from .input_paid_media import InputPaidMedia from .input_paid_media_photo import InputPaidMediaPhoto +from .input_paid_media_union import InputPaidMediaUnion from .input_paid_media_video import InputPaidMediaVideo from .input_poll_option import InputPollOption +from .input_poll_option_union import InputPollOptionUnion from .input_sticker import InputSticker from .input_text_message_content import InputTextMessageContent from .input_venue_message_content import InputVenueMessageContent @@ -146,9 +159,12 @@ from .location import Location from .login_url import LoginUrl from .mask_position import MaskPosition from .maybe_inaccessible_message import MaybeInaccessibleMessage +from .maybe_inaccessible_message_union import MaybeInaccessibleMessageUnion +from .media_union import MediaUnion from .menu_button import MenuButton from .menu_button_commands import MenuButtonCommands from .menu_button_default import MenuButtonDefault +from .menu_button_union import MenuButtonUnion from .menu_button_web_app import MenuButtonWebApp from .message import ContentType, Message from .message_auto_delete_timer_changed import MessageAutoDeleteTimerChanged @@ -158,6 +174,7 @@ from .message_origin import MessageOrigin from .message_origin_channel import MessageOriginChannel from .message_origin_chat import MessageOriginChat from .message_origin_hidden_user import MessageOriginHiddenUser +from .message_origin_union import MessageOriginUnion from .message_origin_user import MessageOriginUser from .message_reaction_count_updated import MessageReactionCountUpdated from .message_reaction_updated import MessageReactionUpdated @@ -167,6 +184,7 @@ from .paid_media_info import PaidMediaInfo from .paid_media_photo import PaidMediaPhoto from .paid_media_preview import PaidMediaPreview from .paid_media_purchased import PaidMediaPurchased +from .paid_media_union import PaidMediaUnion from .paid_media_video import PaidMediaVideo from .passport_data import PassportData from .passport_element_error import PassportElementError @@ -180,6 +198,7 @@ from .passport_element_error_translation_file import PassportElementErrorTransla from .passport_element_error_translation_files import ( PassportElementErrorTranslationFiles, ) +from .passport_element_error_union import PassportElementErrorUnion from .passport_element_error_unspecified import PassportElementErrorUnspecified from .passport_file import PassportFile from .photo_size import PhotoSize @@ -194,15 +213,20 @@ from .reaction_type import ReactionType from .reaction_type_custom_emoji import ReactionTypeCustomEmoji from .reaction_type_emoji import ReactionTypeEmoji from .reaction_type_paid import ReactionTypePaid +from .reaction_type_union import ReactionTypeUnion from .refunded_payment import RefundedPayment from .reply_keyboard_markup import ReplyKeyboardMarkup from .reply_keyboard_remove import ReplyKeyboardRemove +from .reply_markup_union import ReplyMarkupUnion from .reply_parameters import ReplyParameters from .response_parameters import ResponseParameters +from .result_chat_member_union import ResultChatMemberUnion +from .result_menu_button_union import ResultMenuButtonUnion from .revenue_withdrawal_state import RevenueWithdrawalState from .revenue_withdrawal_state_failed import RevenueWithdrawalStateFailed from .revenue_withdrawal_state_pending import RevenueWithdrawalStatePending from .revenue_withdrawal_state_succeeded import RevenueWithdrawalStateSucceeded +from .revenue_withdrawal_state_union import RevenueWithdrawalStateUnion from .sent_web_app_message import SentWebAppMessage from .shared_user import SharedUser from .shipping_address import ShippingAddress @@ -223,6 +247,7 @@ from .transaction_partner_fragment import TransactionPartnerFragment from .transaction_partner_other import TransactionPartnerOther from .transaction_partner_telegram_ads import TransactionPartnerTelegramAds from .transaction_partner_telegram_api import TransactionPartnerTelegramApi +from .transaction_partner_union import TransactionPartnerUnion from .transaction_partner_user import TransactionPartnerUser from .update import Update from .user import User @@ -251,10 +276,12 @@ __all__ = ( "BackgroundFillFreeformGradient", "BackgroundFillGradient", "BackgroundFillSolid", + "BackgroundFillUnion", "BackgroundType", "BackgroundTypeChatTheme", "BackgroundTypeFill", "BackgroundTypePattern", + "BackgroundTypeUnion", "BackgroundTypeWallpaper", "Birthdate", "BotCommand", @@ -266,6 +293,7 @@ __all__ = ( "BotCommandScopeChatAdministrators", "BotCommandScopeChatMember", "BotCommandScopeDefault", + "BotCommandScopeUnion", "BotDescription", "BotName", "BotShortDescription", @@ -288,8 +316,10 @@ __all__ = ( "ChatBoostSourceGiftCode", "ChatBoostSourceGiveaway", "ChatBoostSourcePremium", + "ChatBoostSourceUnion", "ChatBoostUpdated", "ChatFullInfo", + "ChatIdUnion", "ChatInviteLink", "ChatJoinRequest", "ChatLocation", @@ -300,6 +330,7 @@ __all__ = ( "ChatMemberMember", "ChatMemberOwner", "ChatMemberRestricted", + "ChatMemberUnion", "ChatMemberUpdated", "ChatPermissions", "ChatPhoto", @@ -309,6 +340,7 @@ __all__ = ( "ContentType", "CopyTextButton", "DateTime", + "DateTimeUnion", "Dice", "Document", "Downloadable", @@ -356,12 +388,14 @@ __all__ = ( "InlineQueryResultLocation", "InlineQueryResultMpeg4Gif", "InlineQueryResultPhoto", + "InlineQueryResultUnion", "InlineQueryResultVenue", "InlineQueryResultVideo", "InlineQueryResultVoice", "InlineQueryResultsButton", "InputContactMessageContent", "InputFile", + "InputFileUnion", "InputInvoiceMessageContent", "InputLocationMessageContent", "InputMedia", @@ -369,12 +403,16 @@ __all__ = ( "InputMediaAudio", "InputMediaDocument", "InputMediaPhoto", + "InputMediaUnion", "InputMediaVideo", "InputMessageContent", + "InputMessageContentUnion", "InputPaidMedia", "InputPaidMediaPhoto", + "InputPaidMediaUnion", "InputPaidMediaVideo", "InputPollOption", + "InputPollOptionUnion", "InputSticker", "InputTextMessageContent", "InputVenueMessageContent", @@ -390,9 +428,12 @@ __all__ = ( "LoginUrl", "MaskPosition", "MaybeInaccessibleMessage", + "MaybeInaccessibleMessageUnion", + "MediaUnion", "MenuButton", "MenuButtonCommands", "MenuButtonDefault", + "MenuButtonUnion", "MenuButtonWebApp", "Message", "MessageAutoDeleteTimerChanged", @@ -402,6 +443,7 @@ __all__ = ( "MessageOriginChannel", "MessageOriginChat", "MessageOriginHiddenUser", + "MessageOriginUnion", "MessageOriginUser", "MessageReactionCountUpdated", "MessageReactionUpdated", @@ -411,6 +453,7 @@ __all__ = ( "PaidMediaPhoto", "PaidMediaPreview", "PaidMediaPurchased", + "PaidMediaUnion", "PaidMediaVideo", "PassportData", "PassportElementError", @@ -422,6 +465,7 @@ __all__ = ( "PassportElementErrorSelfie", "PassportElementErrorTranslationFile", "PassportElementErrorTranslationFiles", + "PassportElementErrorUnion", "PassportElementErrorUnspecified", "PassportFile", "PhotoSize", @@ -436,15 +480,20 @@ __all__ = ( "ReactionTypeCustomEmoji", "ReactionTypeEmoji", "ReactionTypePaid", + "ReactionTypeUnion", "RefundedPayment", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", + "ReplyMarkupUnion", "ReplyParameters", "ResponseParameters", + "ResultChatMemberUnion", + "ResultMenuButtonUnion", "RevenueWithdrawalState", "RevenueWithdrawalStateFailed", "RevenueWithdrawalStatePending", "RevenueWithdrawalStateSucceeded", + "RevenueWithdrawalStateUnion", "SentWebAppMessage", "SharedUser", "ShippingAddress", @@ -466,6 +515,7 @@ __all__ = ( "TransactionPartnerOther", "TransactionPartnerTelegramAds", "TransactionPartnerTelegramApi", + "TransactionPartnerUnion", "TransactionPartnerUser", "UNSET_PARSE_MODE", "URLInputFile", diff --git a/aiogram/types/background_fill_union.py b/aiogram/types/background_fill_union.py new file mode 100644 index 00000000..cb54f511 --- /dev/null +++ b/aiogram/types/background_fill_union.py @@ -0,0 +1,11 @@ +from __future__ import annotations + +from typing import Union + +from .background_fill_freeform_gradient import BackgroundFillFreeformGradient +from .background_fill_gradient import BackgroundFillGradient +from .background_fill_solid import BackgroundFillSolid + +BackgroundFillUnion = Union[ + BackgroundFillSolid, BackgroundFillGradient, BackgroundFillFreeformGradient +] diff --git a/aiogram/types/background_type_fill.py b/aiogram/types/background_type_fill.py index c506e4ea..49f2767d 100644 --- a/aiogram/types/background_type_fill.py +++ b/aiogram/types/background_type_fill.py @@ -1,13 +1,11 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Union +from typing import TYPE_CHECKING, Any, Literal from .background_type import BackgroundType if TYPE_CHECKING: - from .background_fill_freeform_gradient import BackgroundFillFreeformGradient - from .background_fill_gradient import BackgroundFillGradient - from .background_fill_solid import BackgroundFillSolid + from .background_fill_union import BackgroundFillUnion class BackgroundTypeFill(BackgroundType): @@ -19,7 +17,7 @@ class BackgroundTypeFill(BackgroundType): type: Literal["fill"] = "fill" """Type of the background, always 'fill'""" - fill: Union[BackgroundFillSolid, BackgroundFillGradient, BackgroundFillFreeformGradient] + fill: BackgroundFillUnion """The background fill""" dark_theme_dimming: int """Dimming of the background in dark themes, as a percentage; 0-100""" @@ -32,9 +30,7 @@ class BackgroundTypeFill(BackgroundType): __pydantic__self__, *, type: Literal["fill"] = "fill", - fill: Union[ - BackgroundFillSolid, BackgroundFillGradient, BackgroundFillFreeformGradient - ], + fill: BackgroundFillUnion, dark_theme_dimming: int, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/types/background_type_pattern.py b/aiogram/types/background_type_pattern.py index 0c3ba3a3..f7e0b8cc 100644 --- a/aiogram/types/background_type_pattern.py +++ b/aiogram/types/background_type_pattern.py @@ -1,13 +1,11 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Optional, Union +from typing import TYPE_CHECKING, Any, Literal, Optional from .background_type import BackgroundType if TYPE_CHECKING: - from .background_fill_freeform_gradient import BackgroundFillFreeformGradient - from .background_fill_gradient import BackgroundFillGradient - from .background_fill_solid import BackgroundFillSolid + from .background_fill_union import BackgroundFillUnion from .document import Document @@ -22,7 +20,7 @@ class BackgroundTypePattern(BackgroundType): """Type of the background, always 'pattern'""" document: Document """Document with the pattern""" - fill: Union[BackgroundFillSolid, BackgroundFillGradient, BackgroundFillFreeformGradient] + fill: BackgroundFillUnion """The background fill that is combined with the pattern""" intensity: int """Intensity of the pattern when it is shown above the filled background; 0-100""" @@ -40,9 +38,7 @@ class BackgroundTypePattern(BackgroundType): *, type: Literal["pattern"] = "pattern", document: Document, - fill: Union[ - BackgroundFillSolid, BackgroundFillGradient, BackgroundFillFreeformGradient - ], + fill: BackgroundFillUnion, intensity: int, is_inverted: Optional[bool] = None, is_moving: Optional[bool] = None, diff --git a/aiogram/types/background_type_union.py b/aiogram/types/background_type_union.py new file mode 100644 index 00000000..66a2582d --- /dev/null +++ b/aiogram/types/background_type_union.py @@ -0,0 +1,12 @@ +from __future__ import annotations + +from typing import Union + +from .background_type_chat_theme import BackgroundTypeChatTheme +from .background_type_fill import BackgroundTypeFill +from .background_type_pattern import BackgroundTypePattern +from .background_type_wallpaper import BackgroundTypeWallpaper + +BackgroundTypeUnion = Union[ + BackgroundTypeFill, BackgroundTypeWallpaper, BackgroundTypePattern, BackgroundTypeChatTheme +] diff --git a/aiogram/types/bot_command_scope_chat.py b/aiogram/types/bot_command_scope_chat.py index f36c4a1d..037e2d26 100644 --- a/aiogram/types/bot_command_scope_chat.py +++ b/aiogram/types/bot_command_scope_chat.py @@ -1,10 +1,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Union +from typing import TYPE_CHECKING, Any, Literal from ..enums import BotCommandScopeType from .bot_command_scope import BotCommandScope +if TYPE_CHECKING: + from .chat_id_union import ChatIdUnion + class BotCommandScopeChat(BotCommandScope): """ @@ -15,7 +18,7 @@ class BotCommandScopeChat(BotCommandScope): type: Literal[BotCommandScopeType.CHAT] = BotCommandScopeType.CHAT """Scope type, must be *chat*""" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" if TYPE_CHECKING: @@ -26,7 +29,7 @@ class BotCommandScopeChat(BotCommandScope): __pydantic__self__, *, type: Literal[BotCommandScopeType.CHAT] = BotCommandScopeType.CHAT, - chat_id: Union[int, str], + chat_id: ChatIdUnion, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/bot_command_scope_chat_administrators.py b/aiogram/types/bot_command_scope_chat_administrators.py index f90623ef..0562bc62 100644 --- a/aiogram/types/bot_command_scope_chat_administrators.py +++ b/aiogram/types/bot_command_scope_chat_administrators.py @@ -1,10 +1,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Union +from typing import TYPE_CHECKING, Any, Literal from ..enums import BotCommandScopeType from .bot_command_scope import BotCommandScope +if TYPE_CHECKING: + from .chat_id_union import ChatIdUnion + class BotCommandScopeChatAdministrators(BotCommandScope): """ @@ -17,7 +20,7 @@ class BotCommandScopeChatAdministrators(BotCommandScope): BotCommandScopeType.CHAT_ADMINISTRATORS ) """Scope type, must be *chat_administrators*""" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" if TYPE_CHECKING: @@ -30,7 +33,7 @@ class BotCommandScopeChatAdministrators(BotCommandScope): type: Literal[ BotCommandScopeType.CHAT_ADMINISTRATORS ] = BotCommandScopeType.CHAT_ADMINISTRATORS, - chat_id: Union[int, str], + chat_id: ChatIdUnion, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/bot_command_scope_chat_member.py b/aiogram/types/bot_command_scope_chat_member.py index 4d20b1f3..b8405f6a 100644 --- a/aiogram/types/bot_command_scope_chat_member.py +++ b/aiogram/types/bot_command_scope_chat_member.py @@ -1,10 +1,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Union +from typing import TYPE_CHECKING, Any, Literal from ..enums import BotCommandScopeType from .bot_command_scope import BotCommandScope +if TYPE_CHECKING: + from .chat_id_union import ChatIdUnion + class BotCommandScopeChatMember(BotCommandScope): """ @@ -15,7 +18,7 @@ class BotCommandScopeChatMember(BotCommandScope): type: Literal[BotCommandScopeType.CHAT_MEMBER] = BotCommandScopeType.CHAT_MEMBER """Scope type, must be *chat_member*""" - chat_id: Union[int, str] + chat_id: ChatIdUnion """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" user_id: int """Unique identifier of the target user""" @@ -28,7 +31,7 @@ class BotCommandScopeChatMember(BotCommandScope): __pydantic__self__, *, type: Literal[BotCommandScopeType.CHAT_MEMBER] = BotCommandScopeType.CHAT_MEMBER, - chat_id: Union[int, str], + chat_id: ChatIdUnion, user_id: int, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/types/bot_command_scope_union.py b/aiogram/types/bot_command_scope_union.py new file mode 100644 index 00000000..45788f94 --- /dev/null +++ b/aiogram/types/bot_command_scope_union.py @@ -0,0 +1,23 @@ +from __future__ import annotations + +from typing import Union + +from .bot_command_scope_all_chat_administrators import ( + BotCommandScopeAllChatAdministrators, +) +from .bot_command_scope_all_group_chats import BotCommandScopeAllGroupChats +from .bot_command_scope_all_private_chats import BotCommandScopeAllPrivateChats +from .bot_command_scope_chat import BotCommandScopeChat +from .bot_command_scope_chat_administrators import BotCommandScopeChatAdministrators +from .bot_command_scope_chat_member import BotCommandScopeChatMember +from .bot_command_scope_default import BotCommandScopeDefault + +BotCommandScopeUnion = Union[ + BotCommandScopeDefault, + BotCommandScopeAllPrivateChats, + BotCommandScopeAllGroupChats, + BotCommandScopeAllChatAdministrators, + BotCommandScopeChat, + BotCommandScopeChatAdministrators, + BotCommandScopeChatMember, +] diff --git a/aiogram/types/callback_query.py b/aiogram/types/callback_query.py index c3b33b5f..d976c1b8 100644 --- a/aiogram/types/callback_query.py +++ b/aiogram/types/callback_query.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional from pydantic import Field @@ -8,8 +8,7 @@ from .base import TelegramObject if TYPE_CHECKING: from ..methods import AnswerCallbackQuery - from .inaccessible_message import InaccessibleMessage - from .message import Message + from .maybe_inaccessible_message_union import MaybeInaccessibleMessageUnion from .user import User @@ -28,7 +27,7 @@ class CallbackQuery(TelegramObject): """Sender""" chat_instance: str """Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in :class:`aiogram.methods.games.Games`.""" - message: Optional[Union[Message, InaccessibleMessage]] = None + message: Optional[MaybeInaccessibleMessageUnion] = None """*Optional*. Message sent by the bot with the callback button that originated the query""" inline_message_id: Optional[str] = None """*Optional*. Identifier of the message sent via the bot in inline mode, that originated the query.""" @@ -47,7 +46,7 @@ class CallbackQuery(TelegramObject): id: str, from_user: User, chat_instance: str, - message: Optional[Union[Message, InaccessibleMessage]] = None, + message: Optional[MaybeInaccessibleMessageUnion] = None, inline_message_id: Optional[str] = None, data: Optional[str] = None, game_short_name: Optional[str] = None, diff --git a/aiogram/types/chat.py b/aiogram/types/chat.py index ddb0f983..e54e84cd 100644 --- a/aiogram/types/chat.py +++ b/aiogram/types/chat.py @@ -1,7 +1,6 @@ from __future__ import annotations -import datetime -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional from pydantic import Field @@ -46,11 +45,10 @@ if TYPE_CHECKING: from .chat_location import ChatLocation from .chat_permissions import ChatPermissions from .chat_photo import ChatPhoto + from .date_time_union import DateTimeUnion from .input_file import InputFile from .message import Message - from .reaction_type_custom_emoji import ReactionTypeCustomEmoji - from .reaction_type_emoji import ReactionTypeEmoji - from .reaction_type_paid import ReactionTypePaid + from .reaction_type_union import ReactionTypeUnion class Chat(TelegramObject): @@ -84,9 +82,9 @@ class Chat(TelegramObject): .. deprecated:: API:7.3 https://core.telegram.org/bots/api-changelog#may-6-2024""" - available_reactions: Optional[ - list[Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid]] - ] = Field(None, json_schema_extra={"deprecated": True}) + available_reactions: Optional[list[ReactionTypeUnion]] = Field( + None, json_schema_extra={"deprecated": True} + ) """*Optional*. List of available reactions allowed in the chat. If omitted, then all `emoji reactions `_ are allowed. Returned only in :class:`aiogram.methods.get_chat.GetChat`. .. deprecated:: API:7.3 @@ -284,9 +282,7 @@ class Chat(TelegramObject): is_forum: Optional[bool] = None, accent_color_id: Optional[int] = None, active_usernames: Optional[list[str]] = None, - available_reactions: Optional[ - list[Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid]] - ] = None, + available_reactions: Optional[list[ReactionTypeUnion]] = None, background_custom_emoji_id: Optional[str] = None, bio: Optional[str] = None, birthdate: Optional[Birthdate] = None, @@ -566,7 +562,7 @@ class Chat(TelegramObject): self, invite_link: str, name: Optional[str] = None, - expire_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + expire_date: Optional[DateTimeUnion] = None, member_limit: Optional[int] = None, creates_join_request: Optional[bool] = None, **kwargs: Any, @@ -606,7 +602,7 @@ class Chat(TelegramObject): def create_invite_link( self, name: Optional[str] = None, - expire_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + expire_date: Optional[DateTimeUnion] = None, member_limit: Optional[int] = None, creates_join_request: Optional[bool] = None, **kwargs: Any, @@ -1080,7 +1076,7 @@ class Chat(TelegramObject): user_id: int, permissions: ChatPermissions, use_independent_chat_permissions: Optional[bool] = None, - until_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + until_date: Optional[DateTimeUnion] = None, **kwargs: Any, ) -> RestrictChatMember: """ @@ -1148,7 +1144,7 @@ class Chat(TelegramObject): def ban( self, user_id: int, - until_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + until_date: Optional[DateTimeUnion] = None, revoke_messages: Optional[bool] = None, **kwargs: Any, ) -> BanChatMember: diff --git a/aiogram/types/chat_background.py b/aiogram/types/chat_background.py index 937b4366..c234c8e6 100644 --- a/aiogram/types/chat_background.py +++ b/aiogram/types/chat_background.py @@ -1,13 +1,11 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any + +from .base import TelegramObject if TYPE_CHECKING: - from .background_type_chat_theme import BackgroundTypeChatTheme - from .background_type_fill import BackgroundTypeFill - from .background_type_pattern import BackgroundTypePattern - from .background_type_wallpaper import BackgroundTypeWallpaper -from .base import TelegramObject + from .background_type_union import BackgroundTypeUnion class ChatBackground(TelegramObject): @@ -17,9 +15,7 @@ class ChatBackground(TelegramObject): Source: https://core.telegram.org/bots/api#chatbackground """ - type: Union[ - BackgroundTypeFill, BackgroundTypeWallpaper, BackgroundTypePattern, BackgroundTypeChatTheme - ] + type: BackgroundTypeUnion """Type of the background""" if TYPE_CHECKING: @@ -27,15 +23,7 @@ class ChatBackground(TelegramObject): # This section was auto-generated via `butcher` def __init__( - __pydantic__self__, - *, - type: Union[ - BackgroundTypeFill, - BackgroundTypeWallpaper, - BackgroundTypePattern, - BackgroundTypeChatTheme, - ], - **__pydantic_kwargs: Any, + __pydantic__self__, *, type: BackgroundTypeUnion, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` diff --git a/aiogram/types/chat_boost.py b/aiogram/types/chat_boost.py index 96e444f9..a4d2dc28 100644 --- a/aiogram/types/chat_boost.py +++ b/aiogram/types/chat_boost.py @@ -1,14 +1,12 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any from .base import TelegramObject from .custom import DateTime if TYPE_CHECKING: - from .chat_boost_source_gift_code import ChatBoostSourceGiftCode - from .chat_boost_source_giveaway import ChatBoostSourceGiveaway - from .chat_boost_source_premium import ChatBoostSourcePremium + from .chat_boost_source_union import ChatBoostSourceUnion class ChatBoost(TelegramObject): @@ -24,7 +22,7 @@ class ChatBoost(TelegramObject): """Point in time (Unix timestamp) when the chat was boosted""" expiration_date: DateTime """Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged""" - source: Union[ChatBoostSourcePremium, ChatBoostSourceGiftCode, ChatBoostSourceGiveaway] + source: ChatBoostSourceUnion """Source of the added boost""" if TYPE_CHECKING: @@ -37,9 +35,7 @@ class ChatBoost(TelegramObject): boost_id: str, add_date: DateTime, expiration_date: DateTime, - source: Union[ - ChatBoostSourcePremium, ChatBoostSourceGiftCode, ChatBoostSourceGiveaway - ], + source: ChatBoostSourceUnion, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/chat_boost_removed.py b/aiogram/types/chat_boost_removed.py index 094b0572..8ce7dee1 100644 --- a/aiogram/types/chat_boost_removed.py +++ b/aiogram/types/chat_boost_removed.py @@ -1,15 +1,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any from .base import TelegramObject from .custom import DateTime if TYPE_CHECKING: from .chat import Chat - from .chat_boost_source_gift_code import ChatBoostSourceGiftCode - from .chat_boost_source_giveaway import ChatBoostSourceGiveaway - from .chat_boost_source_premium import ChatBoostSourcePremium + from .chat_boost_source_union import ChatBoostSourceUnion class ChatBoostRemoved(TelegramObject): @@ -25,7 +23,7 @@ class ChatBoostRemoved(TelegramObject): """Unique identifier of the boost""" remove_date: DateTime """Point in time (Unix timestamp) when the boost was removed""" - source: Union[ChatBoostSourcePremium, ChatBoostSourceGiftCode, ChatBoostSourceGiveaway] + source: ChatBoostSourceUnion """Source of the removed boost""" if TYPE_CHECKING: @@ -38,9 +36,7 @@ class ChatBoostRemoved(TelegramObject): chat: Chat, boost_id: str, remove_date: DateTime, - source: Union[ - ChatBoostSourcePremium, ChatBoostSourceGiftCode, ChatBoostSourceGiveaway - ], + source: ChatBoostSourceUnion, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/chat_boost_source_union.py b/aiogram/types/chat_boost_source_union.py new file mode 100644 index 00000000..8b69aa66 --- /dev/null +++ b/aiogram/types/chat_boost_source_union.py @@ -0,0 +1,11 @@ +from __future__ import annotations + +from typing import Union + +from .chat_boost_source_gift_code import ChatBoostSourceGiftCode +from .chat_boost_source_giveaway import ChatBoostSourceGiveaway +from .chat_boost_source_premium import ChatBoostSourcePremium + +ChatBoostSourceUnion = Union[ + ChatBoostSourcePremium, ChatBoostSourceGiftCode, ChatBoostSourceGiveaway +] diff --git a/aiogram/types/chat_full_info.py b/aiogram/types/chat_full_info.py index 85f11060..6d804313 100644 --- a/aiogram/types/chat_full_info.py +++ b/aiogram/types/chat_full_info.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional from .chat import Chat from .custom import DateTime @@ -14,9 +14,7 @@ if TYPE_CHECKING: from .chat_permissions import ChatPermissions from .chat_photo import ChatPhoto from .message import Message - from .reaction_type_custom_emoji import ReactionTypeCustomEmoji - from .reaction_type_emoji import ReactionTypeEmoji - from .reaction_type_paid import ReactionTypePaid + from .reaction_type_union import ReactionTypeUnion class ChatFullInfo(Chat): @@ -58,9 +56,7 @@ class ChatFullInfo(Chat): """*Optional*. For private chats with business accounts, the opening hours of the business""" personal_chat: Optional[Chat] = None """*Optional*. For private chats, the personal channel of the user""" - available_reactions: Optional[ - list[Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid]] - ] = None + available_reactions: Optional[list[ReactionTypeUnion]] = None """*Optional*. List of available reactions allowed in the chat. If omitted, then all `emoji reactions `_ are allowed.""" background_custom_emoji_id: Optional[str] = None """*Optional*. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background""" @@ -142,9 +138,7 @@ class ChatFullInfo(Chat): business_location: Optional[BusinessLocation] = None, business_opening_hours: Optional[BusinessOpeningHours] = None, personal_chat: Optional[Chat] = None, - available_reactions: Optional[ - list[Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid]] - ] = None, + available_reactions: Optional[list[ReactionTypeUnion]] = None, background_custom_emoji_id: Optional[str] = None, profile_accent_color_id: Optional[int] = None, profile_background_custom_emoji_id: Optional[str] = None, diff --git a/aiogram/types/chat_id_union.py b/aiogram/types/chat_id_union.py new file mode 100644 index 00000000..1ed35693 --- /dev/null +++ b/aiogram/types/chat_id_union.py @@ -0,0 +1,5 @@ +from __future__ import annotations + +from typing import Union + +ChatIdUnion = Union[int, str] diff --git a/aiogram/types/chat_join_request.py b/aiogram/types/chat_join_request.py index 65753890..33385af7 100644 --- a/aiogram/types/chat_join_request.py +++ b/aiogram/types/chat_join_request.py @@ -1,6 +1,5 @@ from __future__ import annotations -import datetime from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field @@ -33,19 +32,16 @@ if TYPE_CHECKING: ) from .chat import Chat from .chat_invite_link import ChatInviteLink - from .force_reply import ForceReply + from .date_time_union import DateTimeUnion from .inline_keyboard_markup import InlineKeyboardMarkup from .input_file import InputFile - from .input_media_audio import InputMediaAudio - from .input_media_document import InputMediaDocument - from .input_media_photo import InputMediaPhoto - from .input_media_video import InputMediaVideo - from .input_poll_option import InputPollOption + from .input_file_union import InputFileUnion + from .input_poll_option_union import InputPollOptionUnion from .labeled_price import LabeledPrice from .link_preview_options import LinkPreviewOptions + from .media_union import MediaUnion from .message_entity import MessageEntity - from .reply_keyboard_markup import ReplyKeyboardMarkup - from .reply_keyboard_remove import ReplyKeyboardRemove + from .reply_markup_union import ReplyMarkupUnion from .reply_parameters import ReplyParameters from .user import User @@ -170,9 +166,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, disable_web_page_preview: Optional[Union[bool, Default]] = Default( "link_preview_is_disabled" @@ -247,9 +241,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, disable_web_page_preview: Optional[Union[bool, Default]] = Default( "link_preview_is_disabled" @@ -311,7 +303,7 @@ class ChatJoinRequest(TelegramObject): def answer_animation( self, - animation: Union[InputFile, str], + animation: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -330,9 +322,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -401,7 +391,7 @@ class ChatJoinRequest(TelegramObject): def answer_animation_pm( self, - animation: Union[InputFile, str], + animation: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -420,9 +410,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -491,7 +479,7 @@ class ChatJoinRequest(TelegramObject): def answer_audio( self, - audio: Union[InputFile, str], + audio: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -506,9 +494,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -574,7 +560,7 @@ class ChatJoinRequest(TelegramObject): def answer_audio_pm( self, - audio: Union[InputFile, str], + audio: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -589,9 +575,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -668,9 +652,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -738,9 +720,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -797,7 +777,7 @@ class ChatJoinRequest(TelegramObject): def answer_document( self, - document: Union[InputFile, str], + document: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, thumbnail: Optional[InputFile] = None, @@ -810,9 +790,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -873,7 +851,7 @@ class ChatJoinRequest(TelegramObject): def answer_document_pm( self, - document: Union[InputFile, str], + document: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, thumbnail: Optional[InputFile] = None, @@ -886,9 +864,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1312,9 +1288,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1388,9 +1362,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1451,7 +1423,7 @@ class ChatJoinRequest(TelegramObject): def answer_media_group( self, - media: list[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]], + media: list[MediaUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, @@ -1507,7 +1479,7 @@ class ChatJoinRequest(TelegramObject): def answer_media_group_pm( self, - media: list[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]], + media: list[MediaUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, @@ -1563,7 +1535,7 @@ class ChatJoinRequest(TelegramObject): def answer_photo( self, - photo: Union[InputFile, str], + photo: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -1578,9 +1550,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1641,7 +1611,7 @@ class ChatJoinRequest(TelegramObject): def answer_photo_pm( self, - photo: Union[InputFile, str], + photo: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -1656,9 +1626,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1720,7 +1688,7 @@ class ChatJoinRequest(TelegramObject): def answer_poll( self, question: str, - options: list[Union[InputPollOption, str]], + options: list[InputPollOptionUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, question_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), @@ -1733,16 +1701,14 @@ class ChatJoinRequest(TelegramObject): explanation_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), explanation_entities: Optional[list[MessageEntity]] = None, open_period: Optional[int] = None, - close_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + close_date: Optional[DateTimeUnion] = None, is_closed: Optional[bool] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1820,7 +1786,7 @@ class ChatJoinRequest(TelegramObject): def answer_poll_pm( self, question: str, - options: list[Union[InputPollOption, str]], + options: list[InputPollOptionUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, question_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), @@ -1833,16 +1799,14 @@ class ChatJoinRequest(TelegramObject): explanation_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), explanation_entities: Optional[list[MessageEntity]] = None, open_period: Optional[int] = None, - close_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + close_date: Optional[DateTimeUnion] = None, is_closed: Optional[bool] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1927,9 +1891,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1988,9 +1950,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2041,7 +2001,7 @@ class ChatJoinRequest(TelegramObject): def answer_sticker( self, - sticker: Union[InputFile, str], + sticker: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, emoji: Optional[str] = None, @@ -2050,9 +2010,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2105,7 +2063,7 @@ class ChatJoinRequest(TelegramObject): def answer_sticker_pm( self, - sticker: Union[InputFile, str], + sticker: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, emoji: Optional[str] = None, @@ -2114,9 +2072,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2184,9 +2140,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2266,9 +2220,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2333,15 +2285,15 @@ class ChatJoinRequest(TelegramObject): def answer_video( self, - video: Union[InputFile, str], + video: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, thumbnail: Optional[InputFile] = None, - cover: Optional[Union[InputFile, str]] = None, - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + cover: Optional[InputFileUnion] = None, + start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -2355,9 +2307,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2432,15 +2382,15 @@ class ChatJoinRequest(TelegramObject): def answer_video_pm( self, - video: Union[InputFile, str], + video: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, thumbnail: Optional[InputFile] = None, - cover: Optional[Union[InputFile, str]] = None, - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + cover: Optional[InputFileUnion] = None, + start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -2454,9 +2404,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2531,7 +2479,7 @@ class ChatJoinRequest(TelegramObject): def answer_video_note( self, - video_note: Union[InputFile, str], + video_note: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -2542,9 +2490,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2601,7 +2547,7 @@ class ChatJoinRequest(TelegramObject): def answer_video_note_pm( self, - video_note: Union[InputFile, str], + video_note: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -2612,9 +2558,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2671,7 +2615,7 @@ class ChatJoinRequest(TelegramObject): def answer_voice( self, - voice: Union[InputFile, str], + voice: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -2683,9 +2627,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2744,7 +2686,7 @@ class ChatJoinRequest(TelegramObject): def answer_voice_pm( self, - voice: Union[InputFile, str], + voice: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -2756,9 +2698,7 @@ class ChatJoinRequest(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, diff --git a/aiogram/types/chat_member_union.py b/aiogram/types/chat_member_union.py new file mode 100644 index 00000000..83289769 --- /dev/null +++ b/aiogram/types/chat_member_union.py @@ -0,0 +1,19 @@ +from __future__ import annotations + +from typing import Union + +from .chat_member_administrator import ChatMemberAdministrator +from .chat_member_banned import ChatMemberBanned +from .chat_member_left import ChatMemberLeft +from .chat_member_member import ChatMemberMember +from .chat_member_owner import ChatMemberOwner +from .chat_member_restricted import ChatMemberRestricted + +ChatMemberUnion = Union[ + ChatMemberOwner, + ChatMemberAdministrator, + ChatMemberMember, + ChatMemberRestricted, + ChatMemberLeft, + ChatMemberBanned, +] diff --git a/aiogram/types/chat_member_updated.py b/aiogram/types/chat_member_updated.py index 297fbf74..c6fa10dd 100644 --- a/aiogram/types/chat_member_updated.py +++ b/aiogram/types/chat_member_updated.py @@ -1,6 +1,5 @@ from __future__ import annotations -import datetime from typing import TYPE_CHECKING, Any, Optional, Union from pydantic import Field @@ -31,25 +30,17 @@ if TYPE_CHECKING: ) from .chat import Chat from .chat_invite_link import ChatInviteLink - from .chat_member_administrator import ChatMemberAdministrator - from .chat_member_banned import ChatMemberBanned - from .chat_member_left import ChatMemberLeft - from .chat_member_member import ChatMemberMember - from .chat_member_owner import ChatMemberOwner - from .chat_member_restricted import ChatMemberRestricted - from .force_reply import ForceReply + from .chat_member_union import ChatMemberUnion + from .date_time_union import DateTimeUnion from .inline_keyboard_markup import InlineKeyboardMarkup from .input_file import InputFile - from .input_media_audio import InputMediaAudio - from .input_media_document import InputMediaDocument - from .input_media_photo import InputMediaPhoto - from .input_media_video import InputMediaVideo - from .input_poll_option import InputPollOption + from .input_file_union import InputFileUnion + from .input_poll_option_union import InputPollOptionUnion from .labeled_price import LabeledPrice from .link_preview_options import LinkPreviewOptions + from .media_union import MediaUnion from .message_entity import MessageEntity - from .reply_keyboard_markup import ReplyKeyboardMarkup - from .reply_keyboard_remove import ReplyKeyboardRemove + from .reply_markup_union import ReplyMarkupUnion from .reply_parameters import ReplyParameters from .user import User @@ -67,23 +58,9 @@ class ChatMemberUpdated(TelegramObject): """Performer of the action, which resulted in the change""" date: DateTime """Date the change was done in Unix time""" - old_chat_member: Union[ - ChatMemberOwner, - ChatMemberAdministrator, - ChatMemberMember, - ChatMemberRestricted, - ChatMemberLeft, - ChatMemberBanned, - ] + old_chat_member: ChatMemberUnion """Previous information about the chat member""" - new_chat_member: Union[ - ChatMemberOwner, - ChatMemberAdministrator, - ChatMemberMember, - ChatMemberRestricted, - ChatMemberLeft, - ChatMemberBanned, - ] + new_chat_member: ChatMemberUnion """New information about the chat member""" invite_link: Optional[ChatInviteLink] = None """*Optional*. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.""" @@ -102,22 +79,8 @@ class ChatMemberUpdated(TelegramObject): chat: Chat, from_user: User, date: DateTime, - old_chat_member: Union[ - ChatMemberOwner, - ChatMemberAdministrator, - ChatMemberMember, - ChatMemberRestricted, - ChatMemberLeft, - ChatMemberBanned, - ], - new_chat_member: Union[ - ChatMemberOwner, - ChatMemberAdministrator, - ChatMemberMember, - ChatMemberRestricted, - ChatMemberLeft, - ChatMemberBanned, - ], + old_chat_member: ChatMemberUnion, + new_chat_member: ChatMemberUnion, invite_link: Optional[ChatInviteLink] = None, via_join_request: Optional[bool] = None, via_chat_folder_invite_link: Optional[bool] = None, @@ -154,9 +117,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, disable_web_page_preview: Optional[Union[bool, Default]] = Default( "link_preview_is_disabled" @@ -218,7 +179,7 @@ class ChatMemberUpdated(TelegramObject): def answer_animation( self, - animation: Union[InputFile, str], + animation: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -237,9 +198,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -308,7 +267,7 @@ class ChatMemberUpdated(TelegramObject): def answer_audio( self, - audio: Union[InputFile, str], + audio: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -323,9 +282,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -402,9 +359,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -461,7 +416,7 @@ class ChatMemberUpdated(TelegramObject): def answer_document( self, - document: Union[InputFile, str], + document: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, thumbnail: Optional[InputFile] = None, @@ -474,9 +429,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -725,9 +678,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -788,7 +739,7 @@ class ChatMemberUpdated(TelegramObject): def answer_media_group( self, - media: list[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]], + media: list[MediaUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, @@ -844,7 +795,7 @@ class ChatMemberUpdated(TelegramObject): def answer_photo( self, - photo: Union[InputFile, str], + photo: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -859,9 +810,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -923,7 +872,7 @@ class ChatMemberUpdated(TelegramObject): def answer_poll( self, question: str, - options: list[Union[InputPollOption, str]], + options: list[InputPollOptionUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, question_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), @@ -936,16 +885,14 @@ class ChatMemberUpdated(TelegramObject): explanation_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), explanation_entities: Optional[list[MessageEntity]] = None, open_period: Optional[int] = None, - close_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + close_date: Optional[DateTimeUnion] = None, is_closed: Optional[bool] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1030,9 +977,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1083,7 +1028,7 @@ class ChatMemberUpdated(TelegramObject): def answer_sticker( self, - sticker: Union[InputFile, str], + sticker: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, emoji: Optional[str] = None, @@ -1092,9 +1037,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1162,9 +1105,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1229,15 +1170,15 @@ class ChatMemberUpdated(TelegramObject): def answer_video( self, - video: Union[InputFile, str], + video: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, thumbnail: Optional[InputFile] = None, - cover: Optional[Union[InputFile, str]] = None, - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + cover: Optional[InputFileUnion] = None, + start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -1251,9 +1192,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1328,7 +1267,7 @@ class ChatMemberUpdated(TelegramObject): def answer_video_note( self, - video_note: Union[InputFile, str], + video_note: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -1339,9 +1278,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1398,7 +1335,7 @@ class ChatMemberUpdated(TelegramObject): def answer_voice( self, - voice: Union[InputFile, str], + voice: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -1410,9 +1347,7 @@ class ChatMemberUpdated(TelegramObject): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, diff --git a/aiogram/types/date_time_union.py b/aiogram/types/date_time_union.py new file mode 100644 index 00000000..8ac15f17 --- /dev/null +++ b/aiogram/types/date_time_union.py @@ -0,0 +1,6 @@ +from __future__ import annotations + +import datetime +from typing import Union + +DateTimeUnion = Union[datetime.datetime, datetime.timedelta, int] diff --git a/aiogram/types/external_reply_info.py b/aiogram/types/external_reply_info.py index 260fa6ff..776cdb28 100644 --- a/aiogram/types/external_reply_info.py +++ b/aiogram/types/external_reply_info.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional from .base import TelegramObject @@ -17,10 +17,7 @@ if TYPE_CHECKING: from .invoice import Invoice from .link_preview_options import LinkPreviewOptions from .location import Location - from .message_origin_channel import MessageOriginChannel - from .message_origin_chat import MessageOriginChat - from .message_origin_hidden_user import MessageOriginHiddenUser - from .message_origin_user import MessageOriginUser + from .message_origin_union import MessageOriginUnion from .paid_media_info import PaidMediaInfo from .photo_size import PhotoSize from .poll import Poll @@ -39,9 +36,7 @@ class ExternalReplyInfo(TelegramObject): Source: https://core.telegram.org/bots/api#externalreplyinfo """ - origin: Union[ - MessageOriginUser, MessageOriginHiddenUser, MessageOriginChat, MessageOriginChannel - ] + origin: MessageOriginUnion """Origin of the message replied to by the given message""" chat: Optional[Chat] = None """*Optional*. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.""" @@ -97,9 +92,7 @@ class ExternalReplyInfo(TelegramObject): def __init__( __pydantic__self__, *, - origin: Union[ - MessageOriginUser, MessageOriginHiddenUser, MessageOriginChat, MessageOriginChannel - ], + origin: MessageOriginUnion, chat: Optional[Chat] = None, message_id: Optional[int] = None, link_preview_options: Optional[LinkPreviewOptions] = None, diff --git a/aiogram/types/inaccessible_message.py b/aiogram/types/inaccessible_message.py index a4c38aac..c2cfc53e 100644 --- a/aiogram/types/inaccessible_message.py +++ b/aiogram/types/inaccessible_message.py @@ -1,6 +1,5 @@ from __future__ import annotations -import datetime from typing import TYPE_CHECKING, Any, List, Literal, Optional, Union from aiogram.types.chat import Chat @@ -30,21 +29,17 @@ if TYPE_CHECKING: SendVideoNote, SendVoice, ) - from .force_reply import ForceReply + from .date_time_union import DateTimeUnion from .inline_keyboard_markup import InlineKeyboardMarkup from .input_file import InputFile - from .input_media_audio import InputMediaAudio - from .input_media_document import InputMediaDocument - from .input_media_photo import InputMediaPhoto - from .input_media_video import InputMediaVideo - from .input_paid_media_photo import InputPaidMediaPhoto - from .input_paid_media_video import InputPaidMediaVideo - from .input_poll_option import InputPollOption + from .input_file_union import InputFileUnion + from .input_paid_media_union import InputPaidMediaUnion + from .input_poll_option_union import InputPollOptionUnion from .labeled_price import LabeledPrice from .link_preview_options import LinkPreviewOptions + from .media_union import MediaUnion from .message_entity import MessageEntity - from .reply_keyboard_markup import ReplyKeyboardMarkup - from .reply_keyboard_remove import ReplyKeyboardRemove + from .reply_markup_union import ReplyMarkupUnion class InaccessibleMessage(MaybeInaccessibleMessage): @@ -94,9 +89,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, disable_web_page_preview: Optional[Union[bool, Default]] = Default( "link_preview_is_disabled" @@ -174,9 +167,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, disable_web_page_preview: Optional[Union[bool, Default]] = Default( "link_preview_is_disabled" @@ -239,7 +230,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def answer_animation( self, - animation: Union[InputFile, str], + animation: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -258,9 +249,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -333,7 +322,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def reply_animation( self, - animation: Union[InputFile, str], + animation: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -351,9 +340,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendAnimation: @@ -423,7 +410,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def answer_audio( self, - audio: Union[InputFile, str], + audio: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -438,9 +425,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -510,7 +495,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def reply_audio( self, - audio: Union[InputFile, str], + audio: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -524,9 +509,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendAudio: @@ -604,9 +587,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -677,9 +658,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendContact: @@ -737,7 +716,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def answer_document( self, - document: Union[InputFile, str], + document: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, thumbnail: Optional[InputFile] = None, @@ -750,9 +729,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -817,7 +794,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def reply_document( self, - document: Union[InputFile, str], + document: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, thumbnail: Optional[InputFile] = None, @@ -829,9 +806,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendDocument: @@ -1264,9 +1239,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1343,9 +1316,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendLocation: @@ -1407,7 +1378,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def answer_media_group( self, - media: list[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]], + media: list[MediaUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, @@ -1467,7 +1438,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def reply_media_group( self, - media: list[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]], + media: list[MediaUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, @@ -1523,7 +1494,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def answer_photo( self, - photo: Union[InputFile, str], + photo: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -1538,9 +1509,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1605,7 +1574,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def reply_photo( self, - photo: Union[InputFile, str], + photo: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -1619,9 +1588,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendPhoto: @@ -1684,7 +1651,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def answer_poll( self, question: str, - options: list[Union[InputPollOption, str]], + options: list[InputPollOptionUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, question_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), @@ -1697,16 +1664,14 @@ class InaccessibleMessage(MaybeInaccessibleMessage): explanation_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), explanation_entities: Optional[list[MessageEntity]] = None, open_period: Optional[int] = None, - close_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + close_date: Optional[DateTimeUnion] = None, is_closed: Optional[bool] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1788,7 +1753,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def reply_poll( self, question: str, - options: list[Union[InputPollOption, str]], + options: list[InputPollOptionUnion], business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, question_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), @@ -1801,15 +1766,13 @@ class InaccessibleMessage(MaybeInaccessibleMessage): explanation_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), explanation_entities: Optional[list[MessageEntity]] = None, open_period: Optional[int] = None, - close_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + close_date: Optional[DateTimeUnion] = None, is_closed: Optional[bool] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendPoll: @@ -1895,9 +1858,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1959,9 +1920,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendDice: @@ -2013,7 +1972,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def answer_sticker( self, - sticker: Union[InputFile, str], + sticker: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, emoji: Optional[str] = None, @@ -2022,9 +1981,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2081,7 +2038,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def reply_sticker( self, - sticker: Union[InputFile, str], + sticker: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, emoji: Optional[str] = None, @@ -2089,9 +2046,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendSticker: @@ -2160,9 +2115,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2245,9 +2198,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendVenue: @@ -2313,15 +2264,15 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def answer_video( self, - video: Union[InputFile, str], + video: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, thumbnail: Optional[InputFile] = None, - cover: Optional[Union[InputFile, str]] = None, - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + cover: Optional[InputFileUnion] = None, + start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -2335,9 +2286,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2416,15 +2365,15 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def reply_video( self, - video: Union[InputFile, str], + video: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, thumbnail: Optional[InputFile] = None, - cover: Optional[Union[InputFile, str]] = None, - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + cover: Optional[InputFileUnion] = None, + start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -2437,9 +2386,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendVideo: @@ -2515,7 +2462,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def answer_video_note( self, - video_note: Union[InputFile, str], + video_note: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -2526,9 +2473,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2589,7 +2534,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def reply_video_note( self, - video_note: Union[InputFile, str], + video_note: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, duration: Optional[int] = None, @@ -2599,9 +2544,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendVideoNote: @@ -2659,7 +2602,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def answer_voice( self, - voice: Union[InputFile, str], + voice: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -2671,9 +2614,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2736,7 +2677,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def reply_voice( self, - voice: Union[InputFile, str], + voice: InputFileUnion, business_connection_id: Optional[str] = None, message_thread_id: Optional[int] = None, caption: Optional[str] = None, @@ -2747,9 +2688,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendVoice: @@ -2810,7 +2749,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def answer_paid_media( self, star_count: int, - media: list[Union[InputPaidMediaPhoto, InputPaidMediaVideo]], + media: list[InputPaidMediaUnion], business_connection_id: Optional[str] = None, payload: Optional[str] = None, caption: Optional[str] = None, @@ -2821,9 +2760,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): protect_content: Optional[bool] = None, allow_paid_broadcast: Optional[bool] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, **kwargs: Any, ) -> SendPaidMedia: """ @@ -2881,7 +2818,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): def reply_paid_media( self, star_count: int, - media: list[Union[InputPaidMediaPhoto, InputPaidMediaVideo]], + media: list[InputPaidMediaUnion], business_connection_id: Optional[str] = None, payload: Optional[str] = None, caption: Optional[str] = None, @@ -2891,9 +2828,7 @@ class InaccessibleMessage(MaybeInaccessibleMessage): disable_notification: Optional[bool] = None, protect_content: Optional[bool] = None, allow_paid_broadcast: Optional[bool] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, **kwargs: Any, ) -> SendPaidMedia: """ diff --git a/aiogram/types/inline_query.py b/aiogram/types/inline_query.py index fefe0dd9..cbac7e51 100644 --- a/aiogram/types/inline_query.py +++ b/aiogram/types/inline_query.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional from pydantic import Field @@ -8,26 +8,7 @@ from .base import TelegramObject if TYPE_CHECKING: from ..methods import AnswerInlineQuery - from .inline_query_result_article import InlineQueryResultArticle - from .inline_query_result_audio import InlineQueryResultAudio - from .inline_query_result_cached_audio import InlineQueryResultCachedAudio - from .inline_query_result_cached_document import InlineQueryResultCachedDocument - from .inline_query_result_cached_gif import InlineQueryResultCachedGif - from .inline_query_result_cached_mpeg4_gif import InlineQueryResultCachedMpeg4Gif - from .inline_query_result_cached_photo import InlineQueryResultCachedPhoto - from .inline_query_result_cached_sticker import InlineQueryResultCachedSticker - from .inline_query_result_cached_video import InlineQueryResultCachedVideo - from .inline_query_result_cached_voice import InlineQueryResultCachedVoice - from .inline_query_result_contact import InlineQueryResultContact - from .inline_query_result_document import InlineQueryResultDocument - from .inline_query_result_game import InlineQueryResultGame - from .inline_query_result_gif import InlineQueryResultGif - from .inline_query_result_location import InlineQueryResultLocation - from .inline_query_result_mpeg4_gif import InlineQueryResultMpeg4Gif - from .inline_query_result_photo import InlineQueryResultPhoto - from .inline_query_result_venue import InlineQueryResultVenue - from .inline_query_result_video import InlineQueryResultVideo - from .inline_query_result_voice import InlineQueryResultVoice + from .inline_query_result_union import InlineQueryResultUnion from .inline_query_results_button import InlineQueryResultsButton from .location import Location from .user import User @@ -84,30 +65,7 @@ class InlineQuery(TelegramObject): def answer( self, - results: list[ - Union[ - InlineQueryResultCachedAudio, - InlineQueryResultCachedDocument, - InlineQueryResultCachedGif, - InlineQueryResultCachedMpeg4Gif, - InlineQueryResultCachedPhoto, - InlineQueryResultCachedSticker, - InlineQueryResultCachedVideo, - InlineQueryResultCachedVoice, - InlineQueryResultArticle, - InlineQueryResultAudio, - InlineQueryResultContact, - InlineQueryResultGame, - InlineQueryResultDocument, - InlineQueryResultGif, - InlineQueryResultLocation, - InlineQueryResultMpeg4Gif, - InlineQueryResultPhoto, - InlineQueryResultVenue, - InlineQueryResultVideo, - InlineQueryResultVoice, - ] - ], + results: list[InlineQueryResultUnion], cache_time: Optional[int] = None, is_personal: Optional[bool] = None, next_offset: Optional[str] = None, diff --git a/aiogram/types/inline_query_result_article.py b/aiogram/types/inline_query_result_article.py index afd8ffdc..f922bee4 100644 --- a/aiogram/types/inline_query_result_article.py +++ b/aiogram/types/inline_query_result_article.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Optional, Union +from typing import TYPE_CHECKING, Any, Literal, Optional from pydantic import Field @@ -9,11 +9,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion class InlineQueryResultArticle(InlineQueryResult): @@ -29,13 +25,7 @@ class InlineQueryResultArticle(InlineQueryResult): """Unique identifier for this result, 1-64 Bytes""" title: str """Title of the result""" - input_message_content: Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] + input_message_content: InputMessageContentUnion """Content of the message to be sent""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" @@ -65,13 +55,7 @@ class InlineQueryResultArticle(InlineQueryResult): type: Literal[InlineQueryResultType.ARTICLE] = InlineQueryResultType.ARTICLE, id: str, title: str, - input_message_content: Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ], + input_message_content: InputMessageContentUnion, reply_markup: Optional[InlineKeyboardMarkup] = None, url: Optional[str] = None, description: Optional[str] = None, diff --git a/aiogram/types/inline_query_result_audio.py b/aiogram/types/inline_query_result_audio.py index 461d806e..51f81f66 100644 --- a/aiogram/types/inline_query_result_audio.py +++ b/aiogram/types/inline_query_result_audio.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -43,15 +39,7 @@ class InlineQueryResultAudio(InlineQueryResult): """*Optional*. Audio duration in seconds""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the audio""" if TYPE_CHECKING: @@ -71,15 +59,7 @@ class InlineQueryResultAudio(InlineQueryResult): performer: Optional[str] = None, audio_duration: Optional[int] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_cached_audio.py b/aiogram/types/inline_query_result_cached_audio.py index 40ee181d..fdacd87e 100644 --- a/aiogram/types/inline_query_result_cached_audio.py +++ b/aiogram/types/inline_query_result_cached_audio.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -37,15 +33,7 @@ class InlineQueryResultCachedAudio(InlineQueryResult): """*Optional*. List of special entities that appear in the caption, which can be specified instead of *parse_mode*""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the audio""" if TYPE_CHECKING: @@ -62,15 +50,7 @@ class InlineQueryResultCachedAudio(InlineQueryResult): parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_cached_document.py b/aiogram/types/inline_query_result_cached_document.py index d3cf947a..1552f507 100644 --- a/aiogram/types/inline_query_result_cached_document.py +++ b/aiogram/types/inline_query_result_cached_document.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -41,15 +37,7 @@ class InlineQueryResultCachedDocument(InlineQueryResult): """*Optional*. List of special entities that appear in the caption, which can be specified instead of *parse_mode*""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the file""" if TYPE_CHECKING: @@ -68,15 +56,7 @@ class InlineQueryResultCachedDocument(InlineQueryResult): parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_cached_gif.py b/aiogram/types/inline_query_result_cached_gif.py index d4cb9b68..8c534941 100644 --- a/aiogram/types/inline_query_result_cached_gif.py +++ b/aiogram/types/inline_query_result_cached_gif.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -41,15 +37,7 @@ class InlineQueryResultCachedGif(InlineQueryResult): """*Optional*. Pass :code:`True`, if the caption must be shown above the message media""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the GIF animation""" if TYPE_CHECKING: @@ -70,15 +58,7 @@ class InlineQueryResultCachedGif(InlineQueryResult): "show_caption_above_media" ), reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_cached_mpeg4_gif.py b/aiogram/types/inline_query_result_cached_mpeg4_gif.py index 797bfaf3..7dd710fd 100644 --- a/aiogram/types/inline_query_result_cached_mpeg4_gif.py +++ b/aiogram/types/inline_query_result_cached_mpeg4_gif.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -41,15 +37,7 @@ class InlineQueryResultCachedMpeg4Gif(InlineQueryResult): """*Optional*. Pass :code:`True`, if the caption must be shown above the message media""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the video animation""" if TYPE_CHECKING: @@ -70,15 +58,7 @@ class InlineQueryResultCachedMpeg4Gif(InlineQueryResult): "show_caption_above_media" ), reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_cached_photo.py b/aiogram/types/inline_query_result_cached_photo.py index c67a5c0e..46df4ea1 100644 --- a/aiogram/types/inline_query_result_cached_photo.py +++ b/aiogram/types/inline_query_result_cached_photo.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -43,15 +39,7 @@ class InlineQueryResultCachedPhoto(InlineQueryResult): """*Optional*. Pass :code:`True`, if the caption must be shown above the message media""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the photo""" if TYPE_CHECKING: @@ -73,15 +61,7 @@ class InlineQueryResultCachedPhoto(InlineQueryResult): "show_caption_above_media" ), reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_cached_sticker.py b/aiogram/types/inline_query_result_cached_sticker.py index 4300023c..d8ae36b3 100644 --- a/aiogram/types/inline_query_result_cached_sticker.py +++ b/aiogram/types/inline_query_result_cached_sticker.py @@ -1,17 +1,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Optional, Union +from typing import TYPE_CHECKING, Any, Literal, Optional from ..enums import InlineQueryResultType from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion class InlineQueryResultCachedSticker(InlineQueryResult): @@ -29,15 +25,7 @@ class InlineQueryResultCachedSticker(InlineQueryResult): """A valid file identifier of the sticker""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the sticker""" if TYPE_CHECKING: @@ -51,15 +39,7 @@ class InlineQueryResultCachedSticker(InlineQueryResult): id: str, sticker_file_id: str, reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_cached_video.py b/aiogram/types/inline_query_result_cached_video.py index c961e7c3..450f7115 100644 --- a/aiogram/types/inline_query_result_cached_video.py +++ b/aiogram/types/inline_query_result_cached_video.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -43,15 +39,7 @@ class InlineQueryResultCachedVideo(InlineQueryResult): """*Optional*. Pass :code:`True`, if the caption must be shown above the message media""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the video""" if TYPE_CHECKING: @@ -73,15 +61,7 @@ class InlineQueryResultCachedVideo(InlineQueryResult): "show_caption_above_media" ), reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_cached_voice.py b/aiogram/types/inline_query_result_cached_voice.py index eb8a19a8..5a7701c7 100644 --- a/aiogram/types/inline_query_result_cached_voice.py +++ b/aiogram/types/inline_query_result_cached_voice.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -39,15 +35,7 @@ class InlineQueryResultCachedVoice(InlineQueryResult): """*Optional*. List of special entities that appear in the caption, which can be specified instead of *parse_mode*""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the voice message""" if TYPE_CHECKING: @@ -65,15 +53,7 @@ class InlineQueryResultCachedVoice(InlineQueryResult): parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_contact.py b/aiogram/types/inline_query_result_contact.py index cc2900cd..71c93975 100644 --- a/aiogram/types/inline_query_result_contact.py +++ b/aiogram/types/inline_query_result_contact.py @@ -1,17 +1,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Optional, Union +from typing import TYPE_CHECKING, Any, Literal, Optional from ..enums import InlineQueryResultType from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion class InlineQueryResultContact(InlineQueryResult): @@ -35,15 +31,7 @@ class InlineQueryResultContact(InlineQueryResult): """*Optional*. Additional data about the contact in the form of a `vCard `_, 0-2048 bytes""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the contact""" thumbnail_url: Optional[str] = None """*Optional*. Url of the thumbnail for the result""" @@ -66,15 +54,7 @@ class InlineQueryResultContact(InlineQueryResult): last_name: Optional[str] = None, vcard: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, thumbnail_url: Optional[str] = None, thumbnail_width: Optional[int] = None, thumbnail_height: Optional[int] = None, diff --git a/aiogram/types/inline_query_result_document.py b/aiogram/types/inline_query_result_document.py index b52bfba5..dc1172f8 100644 --- a/aiogram/types/inline_query_result_document.py +++ b/aiogram/types/inline_query_result_document.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -43,15 +39,7 @@ class InlineQueryResultDocument(InlineQueryResult): """*Optional*. Short description of the result""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. Inline keyboard attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the file""" thumbnail_url: Optional[str] = None """*Optional*. URL of the thumbnail (JPEG only) for the file""" @@ -77,15 +65,7 @@ class InlineQueryResultDocument(InlineQueryResult): caption_entities: Optional[list[MessageEntity]] = None, description: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, thumbnail_url: Optional[str] = None, thumbnail_width: Optional[int] = None, thumbnail_height: Optional[int] = None, diff --git a/aiogram/types/inline_query_result_gif.py b/aiogram/types/inline_query_result_gif.py index cedc588c..910b21a9 100644 --- a/aiogram/types/inline_query_result_gif.py +++ b/aiogram/types/inline_query_result_gif.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -51,15 +47,7 @@ class InlineQueryResultGif(InlineQueryResult): """*Optional*. Pass :code:`True`, if the caption must be shown above the message media""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the GIF animation""" if TYPE_CHECKING: @@ -85,15 +73,7 @@ class InlineQueryResultGif(InlineQueryResult): "show_caption_above_media" ), reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_location.py b/aiogram/types/inline_query_result_location.py index 50b3ed8a..e62e8083 100644 --- a/aiogram/types/inline_query_result_location.py +++ b/aiogram/types/inline_query_result_location.py @@ -1,17 +1,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Optional, Union +from typing import TYPE_CHECKING, Any, Literal, Optional from ..enums import InlineQueryResultType from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion class InlineQueryResultLocation(InlineQueryResult): @@ -41,15 +37,7 @@ class InlineQueryResultLocation(InlineQueryResult): """*Optional*. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the location""" thumbnail_url: Optional[str] = None """*Optional*. Url of the thumbnail for the result""" @@ -75,15 +63,7 @@ class InlineQueryResultLocation(InlineQueryResult): heading: Optional[int] = None, proximity_alert_radius: Optional[int] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, thumbnail_url: Optional[str] = None, thumbnail_width: Optional[int] = None, thumbnail_height: Optional[int] = None, diff --git a/aiogram/types/inline_query_result_mpeg4_gif.py b/aiogram/types/inline_query_result_mpeg4_gif.py index 9fd1e716..7e50dd74 100644 --- a/aiogram/types/inline_query_result_mpeg4_gif.py +++ b/aiogram/types/inline_query_result_mpeg4_gif.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -51,15 +47,7 @@ class InlineQueryResultMpeg4Gif(InlineQueryResult): """*Optional*. Pass :code:`True`, if the caption must be shown above the message media""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the video animation""" if TYPE_CHECKING: @@ -85,15 +73,7 @@ class InlineQueryResultMpeg4Gif(InlineQueryResult): "show_caption_above_media" ), reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_photo.py b/aiogram/types/inline_query_result_photo.py index 942ad717..7af052a3 100644 --- a/aiogram/types/inline_query_result_photo.py +++ b/aiogram/types/inline_query_result_photo.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -49,15 +45,7 @@ class InlineQueryResultPhoto(InlineQueryResult): """*Optional*. Pass :code:`True`, if the caption must be shown above the message media""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the photo""" if TYPE_CHECKING: @@ -82,15 +70,7 @@ class InlineQueryResultPhoto(InlineQueryResult): "show_caption_above_media" ), reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_union.py b/aiogram/types/inline_query_result_union.py new file mode 100644 index 00000000..c2132b20 --- /dev/null +++ b/aiogram/types/inline_query_result_union.py @@ -0,0 +1,47 @@ +from __future__ import annotations + +from typing import Union + +from .inline_query_result_article import InlineQueryResultArticle +from .inline_query_result_audio import InlineQueryResultAudio +from .inline_query_result_cached_audio import InlineQueryResultCachedAudio +from .inline_query_result_cached_document import InlineQueryResultCachedDocument +from .inline_query_result_cached_gif import InlineQueryResultCachedGif +from .inline_query_result_cached_mpeg4_gif import InlineQueryResultCachedMpeg4Gif +from .inline_query_result_cached_photo import InlineQueryResultCachedPhoto +from .inline_query_result_cached_sticker import InlineQueryResultCachedSticker +from .inline_query_result_cached_video import InlineQueryResultCachedVideo +from .inline_query_result_cached_voice import InlineQueryResultCachedVoice +from .inline_query_result_contact import InlineQueryResultContact +from .inline_query_result_document import InlineQueryResultDocument +from .inline_query_result_game import InlineQueryResultGame +from .inline_query_result_gif import InlineQueryResultGif +from .inline_query_result_location import InlineQueryResultLocation +from .inline_query_result_mpeg4_gif import InlineQueryResultMpeg4Gif +from .inline_query_result_photo import InlineQueryResultPhoto +from .inline_query_result_venue import InlineQueryResultVenue +from .inline_query_result_video import InlineQueryResultVideo +from .inline_query_result_voice import InlineQueryResultVoice + +InlineQueryResultUnion = Union[ + InlineQueryResultCachedAudio, + InlineQueryResultCachedDocument, + InlineQueryResultCachedGif, + InlineQueryResultCachedMpeg4Gif, + InlineQueryResultCachedPhoto, + InlineQueryResultCachedSticker, + InlineQueryResultCachedVideo, + InlineQueryResultCachedVoice, + InlineQueryResultArticle, + InlineQueryResultAudio, + InlineQueryResultContact, + InlineQueryResultGame, + InlineQueryResultDocument, + InlineQueryResultGif, + InlineQueryResultLocation, + InlineQueryResultMpeg4Gif, + InlineQueryResultPhoto, + InlineQueryResultVenue, + InlineQueryResultVideo, + InlineQueryResultVoice, +] diff --git a/aiogram/types/inline_query_result_venue.py b/aiogram/types/inline_query_result_venue.py index b8775b6b..24628d23 100644 --- a/aiogram/types/inline_query_result_venue.py +++ b/aiogram/types/inline_query_result_venue.py @@ -1,17 +1,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Optional, Union +from typing import TYPE_CHECKING, Any, Literal, Optional from ..enums import InlineQueryResultType from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion class InlineQueryResultVenue(InlineQueryResult): @@ -43,15 +39,7 @@ class InlineQueryResultVenue(InlineQueryResult): """*Optional*. Google Places type of the venue. (See `supported types `_.)""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the venue""" thumbnail_url: Optional[str] = None """*Optional*. Url of the thumbnail for the result""" @@ -78,15 +66,7 @@ class InlineQueryResultVenue(InlineQueryResult): google_place_id: Optional[str] = None, google_place_type: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, thumbnail_url: Optional[str] = None, thumbnail_width: Optional[int] = None, thumbnail_height: Optional[int] = None, diff --git a/aiogram/types/inline_query_result_video.py b/aiogram/types/inline_query_result_video.py index 54c9674c..72aa6224 100644 --- a/aiogram/types/inline_query_result_video.py +++ b/aiogram/types/inline_query_result_video.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -55,15 +51,7 @@ class InlineQueryResultVideo(InlineQueryResult): """*Optional*. Short description of the result""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the video. This field is **required** if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).""" if TYPE_CHECKING: @@ -90,15 +78,7 @@ class InlineQueryResultVideo(InlineQueryResult): video_duration: Optional[int] = None, description: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/inline_query_result_voice.py b/aiogram/types/inline_query_result_voice.py index 0923a0e9..0d7bfc9d 100644 --- a/aiogram/types/inline_query_result_voice.py +++ b/aiogram/types/inline_query_result_voice.py @@ -8,11 +8,7 @@ from .inline_query_result import InlineQueryResult if TYPE_CHECKING: from .inline_keyboard_markup import InlineKeyboardMarkup - from .input_contact_message_content import InputContactMessageContent - from .input_invoice_message_content import InputInvoiceMessageContent - from .input_location_message_content import InputLocationMessageContent - from .input_text_message_content import InputTextMessageContent - from .input_venue_message_content import InputVenueMessageContent + from .input_message_content_union import InputMessageContentUnion from .message_entity import MessageEntity @@ -41,15 +37,7 @@ class InlineQueryResultVoice(InlineQueryResult): """*Optional*. Recording duration in seconds""" reply_markup: Optional[InlineKeyboardMarkup] = None """*Optional*. `Inline keyboard `_ attached to the message""" - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None + input_message_content: Optional[InputMessageContentUnion] = None """*Optional*. Content of the message to be sent instead of the voice recording""" if TYPE_CHECKING: @@ -68,15 +56,7 @@ class InlineQueryResultVoice(InlineQueryResult): caption_entities: Optional[list[MessageEntity]] = None, voice_duration: Optional[int] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, - input_message_content: Optional[ - Union[ - InputTextMessageContent, - InputLocationMessageContent, - InputVenueMessageContent, - InputContactMessageContent, - InputInvoiceMessageContent, - ] - ] = None, + input_message_content: Optional[InputMessageContentUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/input_file_union.py b/aiogram/types/input_file_union.py new file mode 100644 index 00000000..7038e400 --- /dev/null +++ b/aiogram/types/input_file_union.py @@ -0,0 +1,7 @@ +from __future__ import annotations + +from typing import Union + +from .input_file import InputFile + +InputFileUnion = Union[str, InputFile] diff --git a/aiogram/types/input_media_animation.py b/aiogram/types/input_media_animation.py index 89c5790c..56d5a564 100644 --- a/aiogram/types/input_media_animation.py +++ b/aiogram/types/input_media_animation.py @@ -8,6 +8,7 @@ from .input_media import InputMedia if TYPE_CHECKING: from .input_file import InputFile + from .input_file_union import InputFileUnion from .message_entity import MessageEntity @@ -20,7 +21,7 @@ class InputMediaAnimation(InputMedia): type: Literal[InputMediaType.ANIMATION] = InputMediaType.ANIMATION """Type of the result, must be *animation*""" - media: Union[str, InputFile] + media: InputFileUnion """File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass 'attach://' to upload a new one using multipart/form-data under name. :ref:`More information on Sending Files » `""" thumbnail: Optional[InputFile] = None """*Optional*. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass 'attach://' if the thumbnail was uploaded using multipart/form-data under . :ref:`More information on Sending Files » `""" @@ -49,7 +50,7 @@ class InputMediaAnimation(InputMedia): __pydantic__self__, *, type: Literal[InputMediaType.ANIMATION] = InputMediaType.ANIMATION, - media: Union[str, InputFile], + media: InputFileUnion, thumbnail: Optional[InputFile] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), diff --git a/aiogram/types/input_media_audio.py b/aiogram/types/input_media_audio.py index bc5bb8ca..b0214216 100644 --- a/aiogram/types/input_media_audio.py +++ b/aiogram/types/input_media_audio.py @@ -8,6 +8,7 @@ from .input_media import InputMedia if TYPE_CHECKING: from .input_file import InputFile + from .input_file_union import InputFileUnion from .message_entity import MessageEntity @@ -20,7 +21,7 @@ class InputMediaAudio(InputMedia): type: Literal[InputMediaType.AUDIO] = InputMediaType.AUDIO """Type of the result, must be *audio*""" - media: Union[str, InputFile] + media: InputFileUnion """File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass 'attach://' to upload a new one using multipart/form-data under name. :ref:`More information on Sending Files » `""" thumbnail: Optional[InputFile] = None """*Optional*. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass 'attach://' if the thumbnail was uploaded using multipart/form-data under . :ref:`More information on Sending Files » `""" @@ -45,7 +46,7 @@ class InputMediaAudio(InputMedia): __pydantic__self__, *, type: Literal[InputMediaType.AUDIO] = InputMediaType.AUDIO, - media: Union[str, InputFile], + media: InputFileUnion, thumbnail: Optional[InputFile] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), diff --git a/aiogram/types/input_media_document.py b/aiogram/types/input_media_document.py index 788d7ef1..4908f4e7 100644 --- a/aiogram/types/input_media_document.py +++ b/aiogram/types/input_media_document.py @@ -8,6 +8,7 @@ from .input_media import InputMedia if TYPE_CHECKING: from .input_file import InputFile + from .input_file_union import InputFileUnion from .message_entity import MessageEntity @@ -20,7 +21,7 @@ class InputMediaDocument(InputMedia): type: Literal[InputMediaType.DOCUMENT] = InputMediaType.DOCUMENT """Type of the result, must be *document*""" - media: Union[str, InputFile] + media: InputFileUnion """File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass 'attach://' to upload a new one using multipart/form-data under name. :ref:`More information on Sending Files » `""" thumbnail: Optional[InputFile] = None """*Optional*. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass 'attach://' if the thumbnail was uploaded using multipart/form-data under . :ref:`More information on Sending Files » `""" @@ -41,7 +42,7 @@ class InputMediaDocument(InputMedia): __pydantic__self__, *, type: Literal[InputMediaType.DOCUMENT] = InputMediaType.DOCUMENT, - media: Union[str, InputFile], + media: InputFileUnion, thumbnail: Optional[InputFile] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), diff --git a/aiogram/types/input_media_photo.py b/aiogram/types/input_media_photo.py index 91715284..2c460944 100644 --- a/aiogram/types/input_media_photo.py +++ b/aiogram/types/input_media_photo.py @@ -7,7 +7,7 @@ from ..enums import InputMediaType from .input_media import InputMedia if TYPE_CHECKING: - from .input_file import InputFile + from .input_file_union import InputFileUnion from .message_entity import MessageEntity @@ -20,7 +20,7 @@ class InputMediaPhoto(InputMedia): type: Literal[InputMediaType.PHOTO] = InputMediaType.PHOTO """Type of the result, must be *photo*""" - media: Union[str, InputFile] + media: InputFileUnion """File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass 'attach://' to upload a new one using multipart/form-data under name. :ref:`More information on Sending Files » `""" caption: Optional[str] = None """*Optional*. Caption of the photo to be sent, 0-1024 characters after entities parsing""" @@ -41,7 +41,7 @@ class InputMediaPhoto(InputMedia): __pydantic__self__, *, type: Literal[InputMediaType.PHOTO] = InputMediaType.PHOTO, - media: Union[str, InputFile], + media: InputFileUnion, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, diff --git a/aiogram/types/input_media_union.py b/aiogram/types/input_media_union.py new file mode 100644 index 00000000..89293822 --- /dev/null +++ b/aiogram/types/input_media_union.py @@ -0,0 +1,13 @@ +from __future__ import annotations + +from typing import Union + +from .input_media_animation import InputMediaAnimation +from .input_media_audio import InputMediaAudio +from .input_media_document import InputMediaDocument +from .input_media_photo import InputMediaPhoto +from .input_media_video import InputMediaVideo + +InputMediaUnion = Union[ + InputMediaAnimation, InputMediaDocument, InputMediaAudio, InputMediaPhoto, InputMediaVideo +] diff --git a/aiogram/types/input_media_video.py b/aiogram/types/input_media_video.py index f0fc47ee..e9514b88 100644 --- a/aiogram/types/input_media_video.py +++ b/aiogram/types/input_media_video.py @@ -1,6 +1,5 @@ from __future__ import annotations -import datetime from typing import TYPE_CHECKING, Any, Literal, Optional, Union from ..client.default import Default @@ -8,7 +7,9 @@ from ..enums import InputMediaType from .input_media import InputMedia if TYPE_CHECKING: + from .date_time_union import DateTimeUnion from .input_file import InputFile + from .input_file_union import InputFileUnion from .message_entity import MessageEntity @@ -21,13 +22,13 @@ class InputMediaVideo(InputMedia): type: Literal[InputMediaType.VIDEO] = InputMediaType.VIDEO """Type of the result, must be *video*""" - media: Union[str, InputFile] + media: InputFileUnion """File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass 'attach://' to upload a new one using multipart/form-data under name. :ref:`More information on Sending Files » `""" thumbnail: Optional[InputFile] = None """*Optional*. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass 'attach://' if the thumbnail was uploaded using multipart/form-data under . :ref:`More information on Sending Files » `""" - cover: Optional[Union[str, InputFile]] = None + cover: Optional[InputFileUnion] = None """*Optional*. Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass 'attach://' to upload a new one using multipart/form-data under name. :ref:`More information on Sending Files » `""" - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None + start_timestamp: Optional[DateTimeUnion] = None """*Optional*. Start timestamp for the video in the message""" caption: Optional[str] = None """*Optional*. Caption of the video to be sent, 0-1024 characters after entities parsing""" @@ -56,10 +57,10 @@ class InputMediaVideo(InputMedia): __pydantic__self__, *, type: Literal[InputMediaType.VIDEO] = InputMediaType.VIDEO, - media: Union[str, InputFile], + media: InputFileUnion, thumbnail: Optional[InputFile] = None, - cover: Optional[Union[str, InputFile]] = None, - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + cover: Optional[InputFileUnion] = None, + start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, diff --git a/aiogram/types/input_message_content_union.py b/aiogram/types/input_message_content_union.py new file mode 100644 index 00000000..47454e39 --- /dev/null +++ b/aiogram/types/input_message_content_union.py @@ -0,0 +1,17 @@ +from __future__ import annotations + +from typing import Union + +from .input_contact_message_content import InputContactMessageContent +from .input_invoice_message_content import InputInvoiceMessageContent +from .input_location_message_content import InputLocationMessageContent +from .input_text_message_content import InputTextMessageContent +from .input_venue_message_content import InputVenueMessageContent + +InputMessageContentUnion = Union[ + InputTextMessageContent, + InputLocationMessageContent, + InputVenueMessageContent, + InputContactMessageContent, + InputInvoiceMessageContent, +] diff --git a/aiogram/types/input_paid_media_photo.py b/aiogram/types/input_paid_media_photo.py index 1756db50..0f94920d 100644 --- a/aiogram/types/input_paid_media_photo.py +++ b/aiogram/types/input_paid_media_photo.py @@ -1,9 +1,9 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Union +from typing import TYPE_CHECKING, Any, Literal from ..enums import InputPaidMediaType -from .input_file import InputFile +from .input_file_union import InputFileUnion from .input_paid_media import InputPaidMedia @@ -16,7 +16,7 @@ class InputPaidMediaPhoto(InputPaidMedia): type: Literal[InputPaidMediaType.PHOTO] = InputPaidMediaType.PHOTO """Type of the media, must be *photo*""" - media: Union[str, InputFile] + media: InputFileUnion """File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass 'attach://' to upload a new one using multipart/form-data under name. :ref:`More information on Sending Files » `""" if TYPE_CHECKING: @@ -27,7 +27,7 @@ class InputPaidMediaPhoto(InputPaidMedia): __pydantic__self__, *, type: Literal[InputPaidMediaType.PHOTO] = InputPaidMediaType.PHOTO, - media: Union[str, InputFile], + media: InputFileUnion, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/input_paid_media_union.py b/aiogram/types/input_paid_media_union.py new file mode 100644 index 00000000..70c2465b --- /dev/null +++ b/aiogram/types/input_paid_media_union.py @@ -0,0 +1,8 @@ +from __future__ import annotations + +from typing import Union + +from .input_paid_media_photo import InputPaidMediaPhoto +from .input_paid_media_video import InputPaidMediaVideo + +InputPaidMediaUnion = Union[InputPaidMediaPhoto, InputPaidMediaVideo] diff --git a/aiogram/types/input_paid_media_video.py b/aiogram/types/input_paid_media_video.py index 1d24dfda..6af40867 100644 --- a/aiogram/types/input_paid_media_video.py +++ b/aiogram/types/input_paid_media_video.py @@ -1,10 +1,11 @@ from __future__ import annotations -import datetime -from typing import TYPE_CHECKING, Any, Literal, Optional, Union +from typing import TYPE_CHECKING, Any, Literal, Optional from ..enums import InputPaidMediaType +from .date_time_union import DateTimeUnion from .input_file import InputFile +from .input_file_union import InputFileUnion from .input_paid_media import InputPaidMedia @@ -17,13 +18,13 @@ class InputPaidMediaVideo(InputPaidMedia): type: Literal[InputPaidMediaType.VIDEO] = InputPaidMediaType.VIDEO """Type of the media, must be *video*""" - media: Union[str, InputFile] + media: InputFileUnion """File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass 'attach://' to upload a new one using multipart/form-data under name. :ref:`More information on Sending Files » `""" thumbnail: Optional[InputFile] = None """*Optional*. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass 'attach://' if the thumbnail was uploaded using multipart/form-data under . :ref:`More information on Sending Files » `""" - cover: Optional[Union[str, InputFile]] = None + cover: Optional[InputFileUnion] = None """*Optional*. Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass 'attach://' to upload a new one using multipart/form-data under name. :ref:`More information on Sending Files » `""" - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None + start_timestamp: Optional[DateTimeUnion] = None """*Optional*. Start timestamp for the video in the message""" width: Optional[int] = None """*Optional*. Video width""" @@ -42,10 +43,10 @@ class InputPaidMediaVideo(InputPaidMedia): __pydantic__self__, *, type: Literal[InputPaidMediaType.VIDEO] = InputPaidMediaType.VIDEO, - media: Union[str, InputFile], + media: InputFileUnion, thumbnail: Optional[InputFile] = None, - cover: Optional[Union[str, InputFile]] = None, - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + cover: Optional[InputFileUnion] = None, + start_timestamp: Optional[DateTimeUnion] = None, width: Optional[int] = None, height: Optional[int] = None, duration: Optional[int] = None, diff --git a/aiogram/types/input_poll_option_union.py b/aiogram/types/input_poll_option_union.py new file mode 100644 index 00000000..30160880 --- /dev/null +++ b/aiogram/types/input_poll_option_union.py @@ -0,0 +1,7 @@ +from __future__ import annotations + +from typing import Union + +from .input_poll_option import InputPollOption + +InputPollOptionUnion = Union[InputPollOption, str] diff --git a/aiogram/types/input_sticker.py b/aiogram/types/input_sticker.py index 2971d712..57dccdab 100644 --- a/aiogram/types/input_sticker.py +++ b/aiogram/types/input_sticker.py @@ -1,11 +1,11 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional from .base import TelegramObject if TYPE_CHECKING: - from .input_file import InputFile + from .input_file_union import InputFileUnion from .mask_position import MaskPosition @@ -16,7 +16,7 @@ class InputSticker(TelegramObject): Source: https://core.telegram.org/bots/api#inputsticker """ - sticker: Union[InputFile, str] + sticker: InputFileUnion """The added sticker. Pass a *file_id* as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, upload a new one using multipart/form-data, or pass 'attach://' to upload a new one using multipart/form-data under name. Animated and video stickers can't be uploaded via HTTP URL. :ref:`More information on Sending Files » `""" format: str """Format of the added sticker, must be one of 'static' for a **.WEBP** or **.PNG** image, 'animated' for a **.TGS** animation, 'video' for a **.WEBM** video""" @@ -34,7 +34,7 @@ class InputSticker(TelegramObject): def __init__( __pydantic__self__, *, - sticker: Union[InputFile, str], + sticker: InputFileUnion, format: str, emoji_list: list[str], mask_position: Optional[MaskPosition] = None, diff --git a/aiogram/types/maybe_inaccessible_message_union.py b/aiogram/types/maybe_inaccessible_message_union.py new file mode 100644 index 00000000..dfd6bfac --- /dev/null +++ b/aiogram/types/maybe_inaccessible_message_union.py @@ -0,0 +1,8 @@ +from __future__ import annotations + +from typing import Union + +from .inaccessible_message import InaccessibleMessage +from .message import Message + +MaybeInaccessibleMessageUnion = Union[Message, InaccessibleMessage] diff --git a/aiogram/types/media_union.py b/aiogram/types/media_union.py new file mode 100644 index 00000000..0e010931 --- /dev/null +++ b/aiogram/types/media_union.py @@ -0,0 +1,8 @@ +from typing import Union + +from .input_media_audio import InputMediaAudio +from .input_media_document import InputMediaDocument +from .input_media_photo import InputMediaPhoto +from .input_media_video import InputMediaVideo + +MediaUnion = Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo] diff --git a/aiogram/types/menu_button_union.py b/aiogram/types/menu_button_union.py new file mode 100644 index 00000000..f880cdc3 --- /dev/null +++ b/aiogram/types/menu_button_union.py @@ -0,0 +1,9 @@ +from __future__ import annotations + +from typing import Union + +from .menu_button_commands import MenuButtonCommands +from .menu_button_default import MenuButtonDefault +from .menu_button_web_app import MenuButtonWebApp + +MenuButtonUnion = Union[MenuButtonCommands, MenuButtonWebApp, MenuButtonDefault] diff --git a/aiogram/types/message.py b/aiogram/types/message.py index 27664c5a..a43f194b 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -1,6 +1,5 @@ from __future__ import annotations -import datetime from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union from pydantic import Field @@ -55,12 +54,13 @@ if TYPE_CHECKING: from .chat import Chat from .chat_background import ChatBackground from .chat_boost_added import ChatBoostAdded + from .chat_id_union import ChatIdUnion from .chat_shared import ChatShared from .contact import Contact + from .date_time_union import DateTimeUnion from .dice import Dice from .document import Document from .external_reply_info import ExternalReplyInfo - from .force_reply import ForceReply from .forum_topic_closed import ForumTopicClosed from .forum_topic_created import ForumTopicCreated from .forum_topic_edited import ForumTopicEdited @@ -72,38 +72,31 @@ if TYPE_CHECKING: from .giveaway_completed import GiveawayCompleted from .giveaway_created import GiveawayCreated from .giveaway_winners import GiveawayWinners - from .inaccessible_message import InaccessibleMessage from .inline_keyboard_markup import InlineKeyboardMarkup from .input_file import InputFile - from .input_media_animation import InputMediaAnimation - from .input_media_audio import InputMediaAudio - from .input_media_document import InputMediaDocument - from .input_media_photo import InputMediaPhoto - from .input_media_video import InputMediaVideo - from .input_paid_media_photo import InputPaidMediaPhoto - from .input_paid_media_video import InputPaidMediaVideo + from .input_file_union import InputFileUnion + from .input_media_union import InputMediaUnion + from .input_paid_media_union import InputPaidMediaUnion from .input_poll_option import InputPollOption + from .input_poll_option_union import InputPollOptionUnion from .invoice import Invoice from .labeled_price import LabeledPrice from .link_preview_options import LinkPreviewOptions from .location import Location + from .maybe_inaccessible_message_union import MaybeInaccessibleMessageUnion + from .media_union import MediaUnion from .message_auto_delete_timer_changed import MessageAutoDeleteTimerChanged from .message_entity import MessageEntity - from .message_origin_channel import MessageOriginChannel - from .message_origin_chat import MessageOriginChat - from .message_origin_hidden_user import MessageOriginHiddenUser - from .message_origin_user import MessageOriginUser + from .message_origin_union import MessageOriginUnion from .paid_media_info import PaidMediaInfo from .passport_data import PassportData from .photo_size import PhotoSize from .poll import Poll from .proximity_alert_triggered import ProximityAlertTriggered - from .reaction_type_custom_emoji import ReactionTypeCustomEmoji - from .reaction_type_emoji import ReactionTypeEmoji - from .reaction_type_paid import ReactionTypePaid + from .reaction_type_union import ReactionTypeUnion from .refunded_payment import RefundedPayment from .reply_keyboard_markup import ReplyKeyboardMarkup - from .reply_keyboard_remove import ReplyKeyboardRemove + from .reply_markup_union import ReplyMarkupUnion from .sticker import Sticker from .story import Story from .successful_payment import SuccessfulPayment @@ -148,9 +141,7 @@ class Message(MaybeInaccessibleMessage): """*Optional*. The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.""" business_connection_id: Optional[str] = None """*Optional*. Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.""" - forward_origin: Optional[ - Union[MessageOriginUser, MessageOriginHiddenUser, MessageOriginChat, MessageOriginChannel] - ] = None + forward_origin: Optional[MessageOriginUnion] = None """*Optional*. Information about the original message for forwarded messages""" is_topic_message: Optional[bool] = None """*Optional*. :code:`True`, if the message is sent to a forum topic""" @@ -246,7 +237,7 @@ class Message(MaybeInaccessibleMessage): """*Optional*. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.""" migrate_from_chat_id: Optional[int] = None """*Optional*. The supergroup has been migrated from a group with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.""" - pinned_message: Optional[Union[Message, InaccessibleMessage]] = None + pinned_message: Optional[MaybeInaccessibleMessageUnion] = None """*Optional*. Specified message was pinned. Note that the Message object in this field will not contain further *reply_to_message* fields even if it itself is a reply.""" invoice: Optional[Invoice] = None """*Optional*. Message is an invoice for a `payment `_, information about the invoice. `More about payments » `_""" @@ -354,14 +345,7 @@ class Message(MaybeInaccessibleMessage): sender_boost_count: Optional[int] = None, sender_business_bot: Optional[User] = None, business_connection_id: Optional[str] = None, - forward_origin: Optional[ - Union[ - MessageOriginUser, - MessageOriginHiddenUser, - MessageOriginChat, - MessageOriginChannel, - ] - ] = None, + forward_origin: Optional[MessageOriginUnion] = None, is_topic_message: Optional[bool] = None, is_automatic_forward: Optional[bool] = None, reply_to_message: Optional[Message] = None, @@ -409,7 +393,7 @@ class Message(MaybeInaccessibleMessage): message_auto_delete_timer_changed: Optional[MessageAutoDeleteTimerChanged] = None, migrate_to_chat_id: Optional[int] = None, migrate_from_chat_id: Optional[int] = None, - pinned_message: Optional[Union[Message, InaccessibleMessage]] = None, + pinned_message: Optional[MaybeInaccessibleMessageUnion] = None, invoice: Optional[Invoice] = None, successful_payment: Optional[SuccessfulPayment] = None, refunded_payment: Optional[RefundedPayment] = None, @@ -698,7 +682,7 @@ class Message(MaybeInaccessibleMessage): def reply_animation( self, - animation: Union[InputFile, str], + animation: InputFileUnion, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, @@ -714,9 +698,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendAnimation: @@ -786,7 +768,7 @@ class Message(MaybeInaccessibleMessage): def answer_animation( self, - animation: Union[InputFile, str], + animation: InputFileUnion, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, @@ -803,9 +785,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -878,7 +858,7 @@ class Message(MaybeInaccessibleMessage): def reply_audio( self, - audio: Union[InputFile, str], + audio: InputFileUnion, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -890,9 +870,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendAudio: @@ -959,7 +937,7 @@ class Message(MaybeInaccessibleMessage): def answer_audio( self, - audio: Union[InputFile, str], + audio: InputFileUnion, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -972,9 +950,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1052,9 +1028,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendContact: @@ -1121,9 +1095,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1184,7 +1156,7 @@ class Message(MaybeInaccessibleMessage): def reply_document( self, - document: Union[InputFile, str], + document: InputFileUnion, thumbnail: Optional[InputFile] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), @@ -1194,9 +1166,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendDocument: @@ -1258,7 +1228,7 @@ class Message(MaybeInaccessibleMessage): def answer_document( self, - document: Union[InputFile, str], + document: InputFileUnion, thumbnail: Optional[InputFile] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), @@ -1269,9 +1239,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1702,9 +1670,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendLocation: @@ -1777,9 +1743,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -1844,7 +1808,7 @@ class Message(MaybeInaccessibleMessage): def reply_media_group( self, - media: list[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]], + media: list[MediaUnion], disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, @@ -1898,7 +1862,7 @@ class Message(MaybeInaccessibleMessage): def answer_media_group( self, - media: list[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]], + media: list[MediaUnion], disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, @@ -1966,9 +1930,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, disable_web_page_preview: Optional[Union[bool, Default]] = Default( "link_preview_is_disabled" @@ -2042,9 +2004,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, disable_web_page_preview: Optional[Union[bool, Default]] = Default( "link_preview_is_disabled" @@ -2110,7 +2070,7 @@ class Message(MaybeInaccessibleMessage): def reply_photo( self, - photo: Union[InputFile, str], + photo: InputFileUnion, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -2122,9 +2082,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendPhoto: @@ -2186,7 +2144,7 @@ class Message(MaybeInaccessibleMessage): def answer_photo( self, - photo: Union[InputFile, str], + photo: InputFileUnion, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -2199,9 +2157,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2267,7 +2223,7 @@ class Message(MaybeInaccessibleMessage): def reply_poll( self, question: str, - options: list[Union[InputPollOption, str]], + options: list[InputPollOptionUnion], question_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), question_entities: Optional[list[MessageEntity]] = None, is_anonymous: Optional[bool] = None, @@ -2278,15 +2234,13 @@ class Message(MaybeInaccessibleMessage): explanation_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), explanation_entities: Optional[list[MessageEntity]] = None, open_period: Optional[int] = None, - close_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + close_date: Optional[DateTimeUnion] = None, is_closed: Optional[bool] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendPoll: @@ -2365,7 +2319,7 @@ class Message(MaybeInaccessibleMessage): def answer_poll( self, question: str, - options: list[Union[InputPollOption, str]], + options: list[InputPollOptionUnion], question_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), question_entities: Optional[list[MessageEntity]] = None, is_anonymous: Optional[bool] = None, @@ -2376,16 +2330,14 @@ class Message(MaybeInaccessibleMessage): explanation_parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), explanation_entities: Optional[list[MessageEntity]] = None, open_period: Optional[int] = None, - close_date: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + close_date: Optional[DateTimeUnion] = None, is_closed: Optional[bool] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2471,9 +2423,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendDice: @@ -2531,9 +2481,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2588,15 +2536,13 @@ class Message(MaybeInaccessibleMessage): def reply_sticker( self, - sticker: Union[InputFile, str], + sticker: InputFileUnion, emoji: Optional[str] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendSticker: @@ -2650,16 +2596,14 @@ class Message(MaybeInaccessibleMessage): def answer_sticker( self, - sticker: Union[InputFile, str], + sticker: InputFileUnion, emoji: Optional[str] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2728,9 +2672,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendVenue: @@ -2809,9 +2751,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -2880,13 +2820,13 @@ class Message(MaybeInaccessibleMessage): def reply_video( self, - video: Union[InputFile, str], + video: InputFileUnion, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, thumbnail: Optional[InputFile] = None, - cover: Optional[Union[InputFile, str]] = None, - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + cover: Optional[InputFileUnion] = None, + start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -2899,9 +2839,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendVideo: @@ -2977,13 +2915,13 @@ class Message(MaybeInaccessibleMessage): def answer_video( self, - video: Union[InputFile, str], + video: InputFileUnion, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, thumbnail: Optional[InputFile] = None, - cover: Optional[Union[InputFile, str]] = None, - start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + cover: Optional[InputFileUnion] = None, + start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -2997,9 +2935,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -3078,7 +3014,7 @@ class Message(MaybeInaccessibleMessage): def reply_video_note( self, - video_note: Union[InputFile, str], + video_note: InputFileUnion, duration: Optional[int] = None, length: Optional[int] = None, thumbnail: Optional[InputFile] = None, @@ -3086,9 +3022,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendVideoNote: @@ -3146,7 +3080,7 @@ class Message(MaybeInaccessibleMessage): def answer_video_note( self, - video_note: Union[InputFile, str], + video_note: InputFileUnion, duration: Optional[int] = None, length: Optional[int] = None, thumbnail: Optional[InputFile] = None, @@ -3155,9 +3089,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -3218,7 +3150,7 @@ class Message(MaybeInaccessibleMessage): def reply_voice( self, - voice: Union[InputFile, str], + voice: InputFileUnion, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -3227,9 +3159,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, **kwargs: Any, ) -> SendVoice: @@ -3289,7 +3219,7 @@ class Message(MaybeInaccessibleMessage): def answer_voice( self, - voice: Union[InputFile, str], + voice: InputFileUnion, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -3299,9 +3229,7 @@ class Message(MaybeInaccessibleMessage): allow_paid_broadcast: Optional[bool] = None, message_effect_id: Optional[str] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -3561,9 +3489,9 @@ class Message(MaybeInaccessibleMessage): def copy_to( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: Optional[int] = None, - video_start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + video_start_timestamp: Optional[DateTimeUnion] = None, caption: Optional[str] = None, parse_mode: Optional[Union[str, Default]] = Default("parse_mode"), caption_entities: Optional[list[MessageEntity]] = None, @@ -3574,9 +3502,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[Union[bool, Default]] = Default("protect_content"), allow_paid_broadcast: Optional[bool] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, allow_sending_without_reply: Optional[bool] = None, reply_to_message_id: Optional[int] = None, **kwargs: Any, @@ -3698,9 +3624,9 @@ class Message(MaybeInaccessibleMessage): def forward( self, - chat_id: Union[int, str], + chat_id: ChatIdUnion, message_thread_id: Optional[int] = None, - video_start_timestamp: Optional[Union[datetime.datetime, datetime.timedelta, int]] = None, + video_start_timestamp: Optional[DateTimeUnion] = None, disable_notification: Optional[bool] = None, protect_content: Optional[Union[bool, Default]] = Default("protect_content"), **kwargs: Any, @@ -3745,13 +3671,7 @@ class Message(MaybeInaccessibleMessage): def edit_media( self, - media: Union[ - InputMediaAnimation, - InputMediaDocument, - InputMediaAudio, - InputMediaPhoto, - InputMediaVideo, - ], + media: InputMediaUnion, inline_message_id: Optional[str] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, **kwargs: Any, @@ -4177,9 +4097,7 @@ class Message(MaybeInaccessibleMessage): def react( self, - reaction: Optional[ - list[Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid]] - ] = None, + reaction: Optional[list[ReactionTypeUnion]] = None, is_big: Optional[bool] = None, **kwargs: Any, ) -> SetMessageReaction: @@ -4220,7 +4138,7 @@ class Message(MaybeInaccessibleMessage): def answer_paid_media( self, star_count: int, - media: list[Union[InputPaidMediaPhoto, InputPaidMediaVideo]], + media: list[InputPaidMediaUnion], payload: Optional[str] = None, caption: Optional[str] = None, parse_mode: Optional[str] = None, @@ -4230,9 +4148,7 @@ class Message(MaybeInaccessibleMessage): protect_content: Optional[bool] = None, allow_paid_broadcast: Optional[bool] = None, reply_parameters: Optional[ReplyParameters] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, **kwargs: Any, ) -> SendPaidMedia: """ @@ -4292,7 +4208,7 @@ class Message(MaybeInaccessibleMessage): def reply_paid_media( self, star_count: int, - media: list[Union[InputPaidMediaPhoto, InputPaidMediaVideo]], + media: list[InputPaidMediaUnion], payload: Optional[str] = None, caption: Optional[str] = None, parse_mode: Optional[str] = None, @@ -4301,9 +4217,7 @@ class Message(MaybeInaccessibleMessage): disable_notification: Optional[bool] = None, protect_content: Optional[bool] = None, allow_paid_broadcast: Optional[bool] = None, - reply_markup: Optional[ - Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] - ] = None, + reply_markup: Optional[ReplyMarkupUnion] = None, **kwargs: Any, ) -> SendPaidMedia: """ diff --git a/aiogram/types/message_origin_union.py b/aiogram/types/message_origin_union.py new file mode 100644 index 00000000..d34f1f74 --- /dev/null +++ b/aiogram/types/message_origin_union.py @@ -0,0 +1,12 @@ +from __future__ import annotations + +from typing import Union + +from .message_origin_channel import MessageOriginChannel +from .message_origin_chat import MessageOriginChat +from .message_origin_hidden_user import MessageOriginHiddenUser +from .message_origin_user import MessageOriginUser + +MessageOriginUnion = Union[ + MessageOriginUser, MessageOriginHiddenUser, MessageOriginChat, MessageOriginChannel +] diff --git a/aiogram/types/message_reaction_updated.py b/aiogram/types/message_reaction_updated.py index 23cf0e1e..c40ed6c9 100644 --- a/aiogram/types/message_reaction_updated.py +++ b/aiogram/types/message_reaction_updated.py @@ -1,15 +1,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional from .base import TelegramObject if TYPE_CHECKING: from .chat import Chat from .custom import DateTime - from .reaction_type_custom_emoji import ReactionTypeCustomEmoji - from .reaction_type_emoji import ReactionTypeEmoji - from .reaction_type_paid import ReactionTypePaid + from .reaction_type_union import ReactionTypeUnion from .user import User @@ -26,9 +24,9 @@ class MessageReactionUpdated(TelegramObject): """Unique identifier of the message inside the chat""" date: DateTime """Date of the change in Unix time""" - old_reaction: list[Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid]] + old_reaction: list[ReactionTypeUnion] """Previous list of reaction types that were set by the user""" - new_reaction: list[Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid]] + new_reaction: list[ReactionTypeUnion] """New list of reaction types that have been set by the user""" user: Optional[User] = None """*Optional*. The user that changed the reaction, if the user isn't anonymous""" @@ -45,12 +43,8 @@ class MessageReactionUpdated(TelegramObject): chat: Chat, message_id: int, date: DateTime, - old_reaction: list[ - Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid] - ], - new_reaction: list[ - Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid] - ], + old_reaction: list[ReactionTypeUnion], + new_reaction: list[ReactionTypeUnion], user: Optional[User] = None, actor_chat: Optional[Chat] = None, **__pydantic_kwargs: Any, diff --git a/aiogram/types/paid_media_info.py b/aiogram/types/paid_media_info.py index 274f5d51..566c63e4 100644 --- a/aiogram/types/paid_media_info.py +++ b/aiogram/types/paid_media_info.py @@ -1,13 +1,11 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any from .base import TelegramObject if TYPE_CHECKING: - from .paid_media_photo import PaidMediaPhoto - from .paid_media_preview import PaidMediaPreview - from .paid_media_video import PaidMediaVideo + from .paid_media_union import PaidMediaUnion class PaidMediaInfo(TelegramObject): @@ -19,7 +17,7 @@ class PaidMediaInfo(TelegramObject): star_count: int """The number of Telegram Stars that must be paid to buy access to the media""" - paid_media: list[Union[PaidMediaPreview, PaidMediaPhoto, PaidMediaVideo]] + paid_media: list[PaidMediaUnion] """Information about the paid media""" if TYPE_CHECKING: @@ -30,7 +28,7 @@ class PaidMediaInfo(TelegramObject): __pydantic__self__, *, star_count: int, - paid_media: list[Union[PaidMediaPreview, PaidMediaPhoto, PaidMediaVideo]], + paid_media: list[PaidMediaUnion], **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/paid_media_union.py b/aiogram/types/paid_media_union.py new file mode 100644 index 00000000..85eae573 --- /dev/null +++ b/aiogram/types/paid_media_union.py @@ -0,0 +1,9 @@ +from __future__ import annotations + +from typing import Union + +from .paid_media_photo import PaidMediaPhoto +from .paid_media_preview import PaidMediaPreview +from .paid_media_video import PaidMediaVideo + +PaidMediaUnion = Union[PaidMediaPreview, PaidMediaPhoto, PaidMediaVideo] diff --git a/aiogram/types/passport_element_error_union.py b/aiogram/types/passport_element_error_union.py new file mode 100644 index 00000000..e14fdf17 --- /dev/null +++ b/aiogram/types/passport_element_error_union.py @@ -0,0 +1,27 @@ +from __future__ import annotations + +from typing import Union + +from .passport_element_error_data_field import PassportElementErrorDataField +from .passport_element_error_file import PassportElementErrorFile +from .passport_element_error_files import PassportElementErrorFiles +from .passport_element_error_front_side import PassportElementErrorFrontSide +from .passport_element_error_reverse_side import PassportElementErrorReverseSide +from .passport_element_error_selfie import PassportElementErrorSelfie +from .passport_element_error_translation_file import PassportElementErrorTranslationFile +from .passport_element_error_translation_files import ( + PassportElementErrorTranslationFiles, +) +from .passport_element_error_unspecified import PassportElementErrorUnspecified + +PassportElementErrorUnion = Union[ + PassportElementErrorDataField, + PassportElementErrorFrontSide, + PassportElementErrorReverseSide, + PassportElementErrorSelfie, + PassportElementErrorFile, + PassportElementErrorFiles, + PassportElementErrorTranslationFile, + PassportElementErrorTranslationFiles, + PassportElementErrorUnspecified, +] diff --git a/aiogram/types/prepared_inline_message.py b/aiogram/types/prepared_inline_message.py index 3d91f5fe..17597381 100644 --- a/aiogram/types/prepared_inline_message.py +++ b/aiogram/types/prepared_inline_message.py @@ -1,10 +1,12 @@ from __future__ import annotations -import datetime -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any from .base import TelegramObject +if TYPE_CHECKING: + from .date_time_union import DateTimeUnion + class PreparedInlineMessage(TelegramObject): """ @@ -15,7 +17,7 @@ class PreparedInlineMessage(TelegramObject): id: str """Unique identifier of the prepared message""" - expiration_date: Union[datetime.datetime, datetime.timedelta, int] + expiration_date: DateTimeUnion """Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be used""" if TYPE_CHECKING: @@ -26,7 +28,7 @@ class PreparedInlineMessage(TelegramObject): __pydantic__self__, *, id: str, - expiration_date: Union[datetime.datetime, datetime.timedelta, int], + expiration_date: DateTimeUnion, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/reaction_count.py b/aiogram/types/reaction_count.py index e4ee167b..4a64f0eb 100644 --- a/aiogram/types/reaction_count.py +++ b/aiogram/types/reaction_count.py @@ -1,13 +1,11 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Union +from typing import TYPE_CHECKING, Any from .base import TelegramObject if TYPE_CHECKING: - from .reaction_type_custom_emoji import ReactionTypeCustomEmoji - from .reaction_type_emoji import ReactionTypeEmoji - from .reaction_type_paid import ReactionTypePaid + from .reaction_type_union import ReactionTypeUnion class ReactionCount(TelegramObject): @@ -17,7 +15,7 @@ class ReactionCount(TelegramObject): Source: https://core.telegram.org/bots/api#reactioncount """ - type: Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid] + type: ReactionTypeUnion """Type of the reaction""" total_count: int """Number of times the reaction was added""" @@ -29,7 +27,7 @@ class ReactionCount(TelegramObject): def __init__( __pydantic__self__, *, - type: Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid], + type: ReactionTypeUnion, total_count: int, **__pydantic_kwargs: Any, ) -> None: diff --git a/aiogram/types/reaction_type_union.py b/aiogram/types/reaction_type_union.py new file mode 100644 index 00000000..783370a1 --- /dev/null +++ b/aiogram/types/reaction_type_union.py @@ -0,0 +1,9 @@ +from __future__ import annotations + +from typing import Union + +from .reaction_type_custom_emoji import ReactionTypeCustomEmoji +from .reaction_type_emoji import ReactionTypeEmoji +from .reaction_type_paid import ReactionTypePaid + +ReactionTypeUnion = Union[ReactionTypeEmoji, ReactionTypeCustomEmoji, ReactionTypePaid] diff --git a/aiogram/types/reply_markup_union.py b/aiogram/types/reply_markup_union.py new file mode 100644 index 00000000..13516995 --- /dev/null +++ b/aiogram/types/reply_markup_union.py @@ -0,0 +1,12 @@ +from __future__ import annotations + +from typing import Union + +from .force_reply import ForceReply +from .inline_keyboard_markup import InlineKeyboardMarkup +from .reply_keyboard_markup import ReplyKeyboardMarkup +from .reply_keyboard_remove import ReplyKeyboardRemove + +ReplyMarkupUnion = Union[ + InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply +] diff --git a/aiogram/types/reply_parameters.py b/aiogram/types/reply_parameters.py index a299a0af..2ce1940d 100644 --- a/aiogram/types/reply_parameters.py +++ b/aiogram/types/reply_parameters.py @@ -6,6 +6,7 @@ from ..client.default import Default from .base import TelegramObject if TYPE_CHECKING: + from .chat_id_union import ChatIdUnion from .message_entity import MessageEntity @@ -18,7 +19,7 @@ class ReplyParameters(TelegramObject): message_id: int """Identifier of the message that will be replied to in the current chat, or in the chat *chat_id* if it is specified""" - chat_id: Optional[Union[int, str]] = None + chat_id: Optional[ChatIdUnion] = None """*Optional*. If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format :code:`@channelusername`). Not supported for messages sent on behalf of a business account.""" allow_sending_without_reply: Optional[Union[bool, Default]] = Default( "allow_sending_without_reply" @@ -41,7 +42,7 @@ class ReplyParameters(TelegramObject): __pydantic__self__, *, message_id: int, - chat_id: Optional[Union[int, str]] = None, + chat_id: Optional[ChatIdUnion] = None, allow_sending_without_reply: Optional[Union[bool, Default]] = Default( "allow_sending_without_reply" ), diff --git a/aiogram/types/result_chat_member_union.py b/aiogram/types/result_chat_member_union.py new file mode 100644 index 00000000..f4dc741d --- /dev/null +++ b/aiogram/types/result_chat_member_union.py @@ -0,0 +1,17 @@ +from typing import Union + +from .chat_member_administrator import ChatMemberAdministrator +from .chat_member_banned import ChatMemberBanned +from .chat_member_left import ChatMemberLeft +from .chat_member_member import ChatMemberMember +from .chat_member_owner import ChatMemberOwner +from .chat_member_restricted import ChatMemberRestricted + +ResultChatMemberUnion = Union[ + ChatMemberOwner, + ChatMemberAdministrator, + ChatMemberMember, + ChatMemberRestricted, + ChatMemberLeft, + ChatMemberBanned, +] diff --git a/aiogram/types/result_menu_button_union.py b/aiogram/types/result_menu_button_union.py new file mode 100644 index 00000000..74c47b2c --- /dev/null +++ b/aiogram/types/result_menu_button_union.py @@ -0,0 +1,7 @@ +from typing import Union + +from .menu_button_commands import MenuButtonCommands +from .menu_button_default import MenuButtonDefault +from .menu_button_web_app import MenuButtonWebApp + +ResultMenuButtonUnion = Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands] diff --git a/aiogram/types/revenue_withdrawal_state_union.py b/aiogram/types/revenue_withdrawal_state_union.py new file mode 100644 index 00000000..be913c26 --- /dev/null +++ b/aiogram/types/revenue_withdrawal_state_union.py @@ -0,0 +1,11 @@ +from __future__ import annotations + +from typing import Union + +from .revenue_withdrawal_state_failed import RevenueWithdrawalStateFailed +from .revenue_withdrawal_state_pending import RevenueWithdrawalStatePending +from .revenue_withdrawal_state_succeeded import RevenueWithdrawalStateSucceeded + +RevenueWithdrawalStateUnion = Union[ + RevenueWithdrawalStatePending, RevenueWithdrawalStateSucceeded, RevenueWithdrawalStateFailed +] diff --git a/aiogram/types/star_transaction.py b/aiogram/types/star_transaction.py index 5f91c59a..c6c645fa 100644 --- a/aiogram/types/star_transaction.py +++ b/aiogram/types/star_transaction.py @@ -1,20 +1,12 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional from .base import TelegramObject from .custom import DateTime if TYPE_CHECKING: - from .transaction_partner_affiliate_program import ( - TransactionPartnerAffiliateProgram, - ) - from .transaction_partner_chat import TransactionPartnerChat - from .transaction_partner_fragment import TransactionPartnerFragment - from .transaction_partner_other import TransactionPartnerOther - from .transaction_partner_telegram_ads import TransactionPartnerTelegramAds - from .transaction_partner_telegram_api import TransactionPartnerTelegramApi - from .transaction_partner_user import TransactionPartnerUser + from .transaction_partner_union import TransactionPartnerUnion class StarTransaction(TelegramObject): @@ -32,29 +24,9 @@ class StarTransaction(TelegramObject): """Date the transaction was created in Unix time""" nanostar_amount: Optional[int] = None """*Optional*. The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 to 999999999""" - source: Optional[ - Union[ - TransactionPartnerUser, - TransactionPartnerChat, - TransactionPartnerAffiliateProgram, - TransactionPartnerFragment, - TransactionPartnerTelegramAds, - TransactionPartnerTelegramApi, - TransactionPartnerOther, - ] - ] = None + source: Optional[TransactionPartnerUnion] = None """*Optional*. Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions""" - receiver: Optional[ - Union[ - TransactionPartnerUser, - TransactionPartnerChat, - TransactionPartnerAffiliateProgram, - TransactionPartnerFragment, - TransactionPartnerTelegramAds, - TransactionPartnerTelegramApi, - TransactionPartnerOther, - ] - ] = None + receiver: Optional[TransactionPartnerUnion] = None """*Optional*. Receiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for outgoing transactions""" if TYPE_CHECKING: @@ -68,28 +40,8 @@ class StarTransaction(TelegramObject): amount: int, date: DateTime, nanostar_amount: Optional[int] = None, - source: Optional[ - Union[ - TransactionPartnerUser, - TransactionPartnerChat, - TransactionPartnerAffiliateProgram, - TransactionPartnerFragment, - TransactionPartnerTelegramAds, - TransactionPartnerTelegramApi, - TransactionPartnerOther, - ] - ] = None, - receiver: Optional[ - Union[ - TransactionPartnerUser, - TransactionPartnerChat, - TransactionPartnerAffiliateProgram, - TransactionPartnerFragment, - TransactionPartnerTelegramAds, - TransactionPartnerTelegramApi, - TransactionPartnerOther, - ] - ] = None, + source: Optional[TransactionPartnerUnion] = None, + receiver: Optional[TransactionPartnerUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/transaction_partner_fragment.py b/aiogram/types/transaction_partner_fragment.py index 350109e0..000e2281 100644 --- a/aiogram/types/transaction_partner_fragment.py +++ b/aiogram/types/transaction_partner_fragment.py @@ -1,14 +1,12 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Optional, Union +from typing import TYPE_CHECKING, Any, Literal, Optional from ..enums import TransactionPartnerType from .transaction_partner import TransactionPartner if TYPE_CHECKING: - from .revenue_withdrawal_state_failed import RevenueWithdrawalStateFailed - from .revenue_withdrawal_state_pending import RevenueWithdrawalStatePending - from .revenue_withdrawal_state_succeeded import RevenueWithdrawalStateSucceeded + from .revenue_withdrawal_state_union import RevenueWithdrawalStateUnion class TransactionPartnerFragment(TransactionPartner): @@ -20,13 +18,7 @@ class TransactionPartnerFragment(TransactionPartner): type: Literal[TransactionPartnerType.FRAGMENT] = TransactionPartnerType.FRAGMENT """Type of the transaction partner, always 'fragment'""" - withdrawal_state: Optional[ - Union[ - RevenueWithdrawalStatePending, - RevenueWithdrawalStateSucceeded, - RevenueWithdrawalStateFailed, - ] - ] = None + withdrawal_state: Optional[RevenueWithdrawalStateUnion] = None """*Optional*. State of the transaction if the transaction is outgoing""" if TYPE_CHECKING: @@ -37,13 +29,7 @@ class TransactionPartnerFragment(TransactionPartner): __pydantic__self__, *, type: Literal[TransactionPartnerType.FRAGMENT] = TransactionPartnerType.FRAGMENT, - withdrawal_state: Optional[ - Union[ - RevenueWithdrawalStatePending, - RevenueWithdrawalStateSucceeded, - RevenueWithdrawalStateFailed, - ] - ] = None, + withdrawal_state: Optional[RevenueWithdrawalStateUnion] = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! diff --git a/aiogram/types/transaction_partner_union.py b/aiogram/types/transaction_partner_union.py new file mode 100644 index 00000000..efe4489a --- /dev/null +++ b/aiogram/types/transaction_partner_union.py @@ -0,0 +1,21 @@ +from __future__ import annotations + +from typing import Union + +from .transaction_partner_affiliate_program import TransactionPartnerAffiliateProgram +from .transaction_partner_chat import TransactionPartnerChat +from .transaction_partner_fragment import TransactionPartnerFragment +from .transaction_partner_other import TransactionPartnerOther +from .transaction_partner_telegram_ads import TransactionPartnerTelegramAds +from .transaction_partner_telegram_api import TransactionPartnerTelegramApi +from .transaction_partner_user import TransactionPartnerUser + +TransactionPartnerUnion = Union[ + TransactionPartnerUser, + TransactionPartnerChat, + TransactionPartnerAffiliateProgram, + TransactionPartnerFragment, + TransactionPartnerTelegramAds, + TransactionPartnerTelegramApi, + TransactionPartnerOther, +] diff --git a/aiogram/types/transaction_partner_user.py b/aiogram/types/transaction_partner_user.py index 16ccc652..610433bb 100644 --- a/aiogram/types/transaction_partner_user.py +++ b/aiogram/types/transaction_partner_user.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal, Optional, Union +from typing import TYPE_CHECKING, Any, Literal, Optional from ..enums import TransactionPartnerType from .transaction_partner import TransactionPartner @@ -8,9 +8,7 @@ from .transaction_partner import TransactionPartner if TYPE_CHECKING: from .affiliate_info import AffiliateInfo from .gift import Gift - from .paid_media_photo import PaidMediaPhoto - from .paid_media_preview import PaidMediaPreview - from .paid_media_video import PaidMediaVideo + from .paid_media_union import PaidMediaUnion from .user import User @@ -31,7 +29,7 @@ class TransactionPartnerUser(TransactionPartner): """*Optional*. Bot-specified invoice payload""" subscription_period: Optional[int] = None """*Optional*. The duration of the paid subscription""" - paid_media: Optional[list[Union[PaidMediaPreview, PaidMediaPhoto, PaidMediaVideo]]] = None + paid_media: Optional[list[PaidMediaUnion]] = None """*Optional*. Information about the paid media bought by the user""" paid_media_payload: Optional[str] = None """*Optional*. Bot-specified paid media payload""" @@ -50,9 +48,7 @@ class TransactionPartnerUser(TransactionPartner): affiliate: Optional[AffiliateInfo] = None, invoice_payload: Optional[str] = None, subscription_period: Optional[int] = None, - paid_media: Optional[ - list[Union[PaidMediaPreview, PaidMediaPhoto, PaidMediaVideo]] - ] = None, + paid_media: Optional[list[PaidMediaUnion]] = None, paid_media_payload: Optional[str] = None, gift: Optional[Gift] = None, **__pydantic_kwargs: Any, diff --git a/docs/api/methods/get_chat_administrators.rst b/docs/api/methods/get_chat_administrators.rst index 6e036436..7936090e 100644 --- a/docs/api/methods/get_chat_administrators.rst +++ b/docs/api/methods/get_chat_administrators.rst @@ -2,7 +2,7 @@ getChatAdministrators ##################### -Returns: :obj:`list[Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]]` +Returns: :obj:`list[ResultChatMemberUnion]` .. automodule:: aiogram.methods.get_chat_administrators :members: @@ -19,7 +19,7 @@ As bot method .. code-block:: - result: list[Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]] = await bot.get_chat_administrators(...) + result: list[ResultChatMemberUnion] = await bot.get_chat_administrators(...) Method as object @@ -35,7 +35,7 @@ With specific bot .. code-block:: python - result: list[Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]] = await bot(GetChatAdministrators(...)) + result: list[ResultChatMemberUnion] = await bot(GetChatAdministrators(...)) diff --git a/docs/api/methods/get_chat_member.rst b/docs/api/methods/get_chat_member.rst index 60742bf6..653eb7f6 100644 --- a/docs/api/methods/get_chat_member.rst +++ b/docs/api/methods/get_chat_member.rst @@ -2,7 +2,7 @@ getChatMember ############# -Returns: :obj:`Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]` +Returns: :obj:`ResultChatMemberUnion` .. automodule:: aiogram.methods.get_chat_member :members: @@ -19,7 +19,7 @@ As bot method .. code-block:: - result: Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned] = await bot.get_chat_member(...) + result: ResultChatMemberUnion = await bot.get_chat_member(...) Method as object @@ -35,7 +35,7 @@ With specific bot .. code-block:: python - result: Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned] = await bot(GetChatMember(...)) + result: ResultChatMemberUnion = await bot(GetChatMember(...)) diff --git a/docs/api/methods/get_chat_menu_button.rst b/docs/api/methods/get_chat_menu_button.rst index e70fddb0..16ae0bc4 100644 --- a/docs/api/methods/get_chat_menu_button.rst +++ b/docs/api/methods/get_chat_menu_button.rst @@ -2,7 +2,7 @@ getChatMenuButton ################# -Returns: :obj:`Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands]` +Returns: :obj:`ResultMenuButtonUnion` .. automodule:: aiogram.methods.get_chat_menu_button :members: @@ -19,7 +19,7 @@ As bot method .. code-block:: - result: Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands] = await bot.get_chat_menu_button(...) + result: ResultMenuButtonUnion = await bot.get_chat_menu_button(...) Method as object @@ -35,4 +35,4 @@ With specific bot .. code-block:: python - result: Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands] = await bot(GetChatMenuButton(...)) + result: ResultMenuButtonUnion = await bot(GetChatMenuButton(...)) From de240b62ac474ee821914d0c3237a8bbb7267e3d Mon Sep 17 00:00:00 2001 From: naz <85476822+welaskez@users.noreply.github.com> Date: Sat, 8 Mar 2025 05:25:50 +0500 Subject: [PATCH 2/3] Added support of "startapp" deep links (#1648) * Added "startapp" deep link support * Remove link_type param, added create_startapp_link method * Write tests for create_startapp_link method * Refactor with black & isort * Added CHANGELOG --- CHANGES/1648.feature.rst | 2 ++ aiogram/utils/deep_linking.py | 31 ++++++++++++++++++++++++++- tests/test_utils/test_deep_linking.py | 19 +++++++++++++++- 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 CHANGES/1648.feature.rst diff --git a/CHANGES/1648.feature.rst b/CHANGES/1648.feature.rst new file mode 100644 index 00000000..bc86ada4 --- /dev/null +++ b/CHANGES/1648.feature.rst @@ -0,0 +1,2 @@ +Added new method to utils/deep_linking.py module to creating "startapp" deep links, see also +https://core.telegram.org/api/links#main-mini-app-links diff --git a/aiogram/utils/deep_linking.py b/aiogram/utils/deep_linking.py index fe2764f7..3cb3cc25 100644 --- a/aiogram/utils/deep_linking.py +++ b/aiogram/utils/deep_linking.py @@ -3,6 +3,7 @@ from __future__ import annotations __all__ = [ "create_start_link", "create_startgroup_link", + "create_startapp_link", "create_deep_link", "create_telegram_link", "encode_payload", @@ -77,9 +78,37 @@ async def create_startgroup_link( ) +async def create_startapp_link( + bot: Bot, + payload: str, + encode: bool = False, + encoder: Optional[Callable[[bytes], bytes]] = None, +) -> str: + """ + Create 'startapp' deep link with your payload. + + If you need to encode payload or pass special characters - + set encode as True + + :param bot: bot instance + :param payload: args passed with /start + :param encode: encode payload with base64url or custom encoder + :param encoder: custom encoder callable + :return: link + """ + username = (await bot.me()).username + return create_deep_link( + username=cast(str, username), + link_type="startapp", + payload=payload, + encode=encode, + encoder=encoder, + ) + + def create_deep_link( username: str, - link_type: Literal["start", "startgroup"], + link_type: Literal["start", "startgroup", "startapp"], payload: str, encode: bool = False, encoder: Optional[Callable[[bytes], bytes]] = None, diff --git a/tests/test_utils/test_deep_linking.py b/tests/test_utils/test_deep_linking.py index c5f5259a..b5818c52 100644 --- a/tests/test_utils/test_deep_linking.py +++ b/tests/test_utils/test_deep_linking.py @@ -1,6 +1,10 @@ import pytest -from aiogram.utils.deep_linking import create_start_link, create_startgroup_link +from aiogram.utils.deep_linking import ( + create_start_link, + create_startapp_link, + create_startgroup_link, +) from aiogram.utils.payload import decode_payload, encode_payload from tests.mocked_bot import MockedBot @@ -44,6 +48,10 @@ class TestDeepLinking: link = await create_startgroup_link(bot, payload) assert link == f"https://t.me/tbot?startgroup={payload}" + async def test_get_startapp_link(self, bot: MockedBot, payload: str): + link = await create_startapp_link(bot, payload) + assert link == f"https://t.me/tbot?startapp={payload}" + async def test_filter_encode_and_decode(self, payload: str): encoded = encode_payload(payload) decoded = decode_payload(encoded) @@ -85,6 +93,15 @@ class TestDeepLinking: assert link == f"https://t.me/tbot?start={encoded_payload}" + async def test_get_startapp_link_with_encoding(self, bot: MockedBot, wrong_payload: str): + # define link + link = await create_startapp_link(bot, wrong_payload, encode=True) + + # define reference link + encoded_payload = encode_payload(wrong_payload) + + assert link == f"https://t.me/tbot?startapp={encoded_payload}" + async def test_64_len_payload(self, bot: MockedBot): payload = "p" * 64 link = await create_start_link(bot, payload) From cedbe2c500f72b4ec1f0f93330b43af7d5a50db4 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 8 Mar 2025 03:02:33 +0200 Subject: [PATCH 3/3] Update Ukrainian translation files to match latest API changes (#1650) * Update translation files with new creation dates. This update includes newly added and corrected translation entries for various .po files in the Ukrainian locale. It ensures consistency with updated source files and aligns with the latest Telegram bot API changes. * Update Ukrainian documentation translation --- CHANGES/1650.doc.rst | 1 + docs/locale/uk_UA/LC_MESSAGES/api/bot.po | 48 +- docs/locale/uk_UA/LC_MESSAGES/api/defaults.po | 183 ++ .../api/enums/input_paid_media_type.po | 33 + .../LC_MESSAGES/api/enums/paid_media_type.po | 33 + .../enums/revenue_withdrawal_state_type.po | 33 + .../api/enums/transaction_partner_type.po | 33 + .../api/methods/add_sticker_to_set.po | 42 +- .../api/methods/answer_shipping_query.po | 16 +- .../LC_MESSAGES/api/methods/copy_message.po | 64 +- .../LC_MESSAGES/api/methods/copy_messages.po | 55 +- .../create_chat_subscription_invite_link.po | 117 + .../api/methods/create_invoice_link.po | 167 +- .../api/methods/create_new_sticker_set.po | 42 +- .../api/methods/delete_messages.po | 11 +- .../edit_chat_subscription_invite_link.po | 97 + .../api/methods/edit_forum_topic.po | 33 +- .../api/methods/edit_general_forum_topic.po | 34 +- .../api/methods/edit_message_caption.po | 53 +- .../api/methods/edit_message_live_location.po | 44 +- .../api/methods/edit_message_media.po | 68 +- .../api/methods/edit_message_reply_markup.po | 25 +- .../api/methods/edit_message_text.po | 24 +- .../methods/edit_user_star_subscription.po | 95 + .../api/methods/forward_message.po | 7 +- .../api/methods/forward_messages.po | 19 +- .../api/methods/get_available_gifts.po | 68 + .../api/methods/get_business_connection.po | 77 + .../uk_UA/LC_MESSAGES/api/methods/get_chat.po | 18 +- .../api/methods/get_chat_administrators.po | 33 +- .../api/methods/get_chat_member.po | 32 +- .../api/methods/get_chat_menu_button.po | 27 +- .../api/methods/get_custom_emoji_stickers.po | 33 +- .../methods/get_forum_topic_icon_stickers.po | 23 +- .../api/methods/get_game_high_scores.po | 23 +- .../api/methods/get_my_commands.po | 23 +- .../api/methods/get_star_transactions.po | 82 + .../LC_MESSAGES/api/methods/get_updates.po | 7 +- .../api/methods/pin_chat_message.po | 37 +- .../api/methods/promote_chat_member.po | 113 +- .../api/methods/refund_star_payment.po | 82 + .../api/methods/remove_chat_verification.po | 81 + .../api/methods/remove_user_verification.po | 79 + .../api/methods/replace_sticker_in_set.po | 100 + .../methods/save_prepared_inline_message.po | 110 + .../LC_MESSAGES/api/methods/send_animation.po | 52 +- .../LC_MESSAGES/api/methods/send_audio.po | 46 +- .../api/methods/send_chat_action.po | 38 +- .../LC_MESSAGES/api/methods/send_contact.po | 47 +- .../LC_MESSAGES/api/methods/send_dice.po | 45 +- .../LC_MESSAGES/api/methods/send_document.po | 47 +- .../LC_MESSAGES/api/methods/send_game.po | 32 +- .../LC_MESSAGES/api/methods/send_gift.po | 115 + .../LC_MESSAGES/api/methods/send_invoice.po | 153 +- .../LC_MESSAGES/api/methods/send_location.po | 59 +- .../api/methods/send_media_group.po | 39 +- .../LC_MESSAGES/api/methods/send_message.po | 47 +- .../api/methods/send_paid_media.po | 184 ++ .../LC_MESSAGES/api/methods/send_photo.po | 51 +- .../LC_MESSAGES/api/methods/send_poll.po | 75 +- .../LC_MESSAGES/api/methods/send_sticker.po | 71 +- .../LC_MESSAGES/api/methods/send_venue.po | 46 +- .../LC_MESSAGES/api/methods/send_video.po | 65 +- .../api/methods/send_video_note.po | 47 +- .../LC_MESSAGES/api/methods/send_voice.po | 68 +- .../api/methods/set_message_reaction.po | 40 +- .../api/methods/set_sticker_set_thumbnail.po | 100 +- .../api/methods/set_user_emoji_status.po | 94 + .../LC_MESSAGES/api/methods/set_webhook.po | 38 +- .../api/methods/stop_message_live_location.po | 32 +- .../LC_MESSAGES/api/methods/stop_poll.po | 27 +- .../api/methods/unpin_chat_message.po | 52 +- .../api/methods/upload_sticker_file.po | 37 +- .../LC_MESSAGES/api/methods/verify_chat.po | 86 + .../LC_MESSAGES/api/methods/verify_user.po | 84 + .../LC_MESSAGES/api/types/affiliate_info.po | 70 + .../uk_UA/LC_MESSAGES/api/types/animation.po | 36 +- .../uk_UA/LC_MESSAGES/api/types/audio.po | 36 +- .../LC_MESSAGES/api/types/background_fill.po | 47 + .../background_fill_freeform_gradient.po | 51 + .../api/types/background_fill_gradient.po | 55 + .../api/types/background_fill_solid.po | 43 + .../LC_MESSAGES/api/types/background_type.po | 51 + .../api/types/background_type_chat_theme.po | 44 + .../api/types/background_type_fill.po | 49 + .../api/types/background_type_pattern.po | 73 + .../api/types/background_type_wallpaper.po | 66 + .../uk_UA/LC_MESSAGES/api/types/birthdate.po | 45 + .../api/types/business_connection.po | 69 + .../LC_MESSAGES/api/types/business_intro.po | 47 + .../api/types/business_location.po | 43 + .../api/types/business_messages_deleted.po | 56 + .../api/types/business_opening_hours.po | 44 + .../types/business_opening_hours_interval.po | 53 + .../uk_UA/LC_MESSAGES/api/types/chat.po | 456 ++-- .../api/types/chat_administrator_rights.po | 121 +- .../LC_MESSAGES/api/types/chat_background.po | 37 + .../LC_MESSAGES/api/types/chat_boost_added.po | 15 +- .../api/types/chat_boost_source_giveaway.po | 33 +- .../api/types/chat_boost_updated.po | 7 +- .../LC_MESSAGES/api/types/chat_full_info.po | 322 +++ .../LC_MESSAGES/api/types/chat_invite_link.po | 19 +- .../api/types/chat_join_request.po | 1046 +++++---- .../api/types/chat_member_administrator.po | 121 +- .../api/types/chat_member_member.po | 9 +- .../api/types/chat_member_updated.po | 693 ++++-- .../LC_MESSAGES/api/types/chat_shared.po | 31 +- .../LC_MESSAGES/api/types/copy_text_button.po | 39 + .../uk_UA/LC_MESSAGES/api/types/document.po | 21 +- .../api/types/encrypted_passport_element.po | 110 +- .../api/types/external_reply_info.po | 7 +- .../LC_MESSAGES/api/types/force_reply.po | 35 +- .../uk_UA/LC_MESSAGES/api/types/gift.po | 63 + .../uk_UA/LC_MESSAGES/api/types/gifts.po | 37 + .../uk_UA/LC_MESSAGES/api/types/giveaway.po | 16 +- .../api/types/giveaway_completed.po | 9 +- .../LC_MESSAGES/api/types/giveaway_created.po | 17 +- .../LC_MESSAGES/api/types/giveaway_winners.po | 22 +- .../api/types/inaccessible_message.po | 1722 ++++++++++++++- .../api/types/inline_keyboard_button.po | 97 +- .../api/types/inline_keyboard_markup.po | 21 +- .../api/types/inline_query_result_article.po | 50 +- .../api/types/inline_query_result_audio.po | 23 +- .../types/inline_query_result_cached_audio.po | 22 +- .../inline_query_result_cached_document.po | 24 +- .../types/inline_query_result_cached_gif.po | 12 +- .../inline_query_result_cached_mpeg4_gif.po | 12 +- .../types/inline_query_result_cached_photo.po | 12 +- .../inline_query_result_cached_sticker.po | 27 +- .../types/inline_query_result_cached_video.po | 12 +- .../types/inline_query_result_cached_voice.po | 24 +- .../api/types/inline_query_result_contact.po | 29 +- .../api/types/inline_query_result_document.po | 30 +- .../api/types/inline_query_result_game.po | 22 +- .../api/types/inline_query_result_gif.po | 22 +- .../api/types/inline_query_result_location.po | 39 +- .../types/inline_query_result_mpeg4_gif.po | 21 +- .../api/types/inline_query_result_photo.po | 14 +- .../api/types/inline_query_result_venue.po | 28 +- .../api/types/inline_query_result_video.po | 14 +- .../api/types/inline_query_result_voice.po | 24 +- .../types/input_invoice_message_content.po | 136 +- .../types/input_location_message_content.po | 15 +- .../api/types/input_media_animation.po | 14 +- .../api/types/input_media_photo.po | 12 +- .../api/types/input_media_video.po | 30 +- .../LC_MESSAGES/api/types/input_paid_media.po | 43 + .../api/types/input_paid_media_photo.po | 48 + .../api/types/input_paid_media_video.po | 102 + .../api/types/input_poll_option.po | 54 + .../LC_MESSAGES/api/types/input_sticker.po | 11 +- .../uk_UA/LC_MESSAGES/api/types/invoice.po | 13 +- .../LC_MESSAGES/api/types/keyboard_button.po | 73 +- .../api/types/keyboard_button_request_chat.po | 42 +- .../types/keyboard_button_request_users.po | 37 +- .../api/types/link_preview_options.po | 32 +- .../uk_UA/LC_MESSAGES/api/types/location.po | 18 +- .../LC_MESSAGES/api/types/menu_button.po | 19 +- .../api/types/menu_button_web_app.po | 19 +- .../uk_UA/LC_MESSAGES/api/types/message.po | 1842 ++++++++++------ .../LC_MESSAGES/api/types/message_entity.po | 30 +- .../uk_UA/LC_MESSAGES/api/types/message_id.po | 14 +- .../uk_UA/LC_MESSAGES/api/types/paid_media.po | 45 + .../LC_MESSAGES/api/types/paid_media_info.po | 41 + .../LC_MESSAGES/api/types/paid_media_photo.po | 41 + .../api/types/paid_media_preview.po | 51 + .../api/types/paid_media_purchased.po | 44 + .../LC_MESSAGES/api/types/paid_media_video.po | 41 + .../uk_UA/LC_MESSAGES/api/types/poll.po | 10 +- .../LC_MESSAGES/api/types/poll_option.po | 10 +- .../api/types/pre_checkout_query.po | 22 +- .../api/types/prepared_inline_message.po | 46 + .../LC_MESSAGES/api/types/reaction_type.po | 8 +- .../api/types/reaction_type_paid.po | 37 + .../LC_MESSAGES/api/types/refunded_payment.po | 68 + .../api/types/reply_keyboard_markup.po | 31 +- .../api/types/reply_keyboard_remove.po | 37 +- .../LC_MESSAGES/api/types/reply_parameters.po | 27 +- .../api/types/revenue_withdrawal_state.po | 47 + .../types/revenue_withdrawal_state_failed.po | 41 + .../types/revenue_withdrawal_state_pending.po | 41 + .../revenue_withdrawal_state_succeeded.po | 53 + .../LC_MESSAGES/api/types/shared_user.po | 66 + .../LC_MESSAGES/api/types/shipping_query.po | 25 +- .../LC_MESSAGES/api/types/star_transaction.po | 75 + .../api/types/star_transactions.po | 38 + .../LC_MESSAGES/api/types/sticker_set.po | 25 +- .../uk_UA/LC_MESSAGES/api/types/story.po | 22 +- .../api/types/successful_payment.po | 45 +- .../api/types/transaction_partner.po | 63 + .../transaction_partner_affiliate_program.po | 59 + .../api/types/transaction_partner_chat.po | 48 + .../api/types/transaction_partner_fragment.po | 45 + .../api/types/transaction_partner_other.po | 38 + .../types/transaction_partner_telegram_ads.po | 41 + .../types/transaction_partner_telegram_api.po | 51 + .../api/types/transaction_partner_user.po | 79 + .../uk_UA/LC_MESSAGES/api/types/update.po | 91 +- .../uk_UA/LC_MESSAGES/api/types/user.po | 21 +- .../LC_MESSAGES/api/types/users_shared.po | 10 +- .../uk_UA/LC_MESSAGES/api/types/video.po | 41 +- .../uk_UA/LC_MESSAGES/api/types/video_note.po | 19 +- .../uk_UA/LC_MESSAGES/api/types/voice.po | 14 +- .../uk_UA/LC_MESSAGES/api/upload_file.po | 36 +- docs/locale/uk_UA/LC_MESSAGES/changelog.po | 1917 ++++++++++++++--- docs/locale/uk_UA/LC_MESSAGES/contributing.po | 186 +- .../dispatcher/dependency_injection.po | 129 +- .../LC_MESSAGES/dispatcher/dispatcher.po | 82 +- .../LC_MESSAGES/dispatcher/filters/command.po | 151 +- .../dispatcher/finite_state_machine/scene.po | 49 +- .../finite_state_machine/storages.po | 225 +- .../finite_state_machine/strategy.po | 55 + docs/locale/uk_UA/LC_MESSAGES/index.po | 39 +- docs/locale/uk_UA/LC_MESSAGES/install.po | 18 +- .../uk_UA/LC_MESSAGES/migration_2_to_3.po | 281 ++- .../uk_UA/LC_MESSAGES/utils/chat_action.po | 12 +- .../uk_UA/LC_MESSAGES/utils/formatting.po | 145 +- .../uk_UA/LC_MESSAGES/utils/serialization.po | 146 ++ .../locale/uk_UA/LC_MESSAGES/utils/web_app.po | 138 +- 219 files changed, 15431 insertions(+), 3346 deletions(-) create mode 100644 CHANGES/1650.doc.rst create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/defaults.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/enums/input_paid_media_type.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/enums/paid_media_type.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/enums/revenue_withdrawal_state_type.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/enums/transaction_partner_type.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/create_chat_subscription_invite_link.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_chat_subscription_invite_link.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_user_star_subscription.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/get_available_gifts.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/get_business_connection.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/get_star_transactions.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/refund_star_payment.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/remove_chat_verification.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/remove_user_verification.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/replace_sticker_in_set.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/save_prepared_inline_message.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/send_gift.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/send_paid_media.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/set_user_emoji_status.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/verify_chat.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/verify_user.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/affiliate_info.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_freeform_gradient.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_gradient.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_solid.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/background_type.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_chat_theme.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_fill.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_pattern.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_wallpaper.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/birthdate.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/business_connection.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/business_intro.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/business_location.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/business_messages_deleted.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/business_opening_hours.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/business_opening_hours_interval.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/chat_background.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/chat_full_info.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/copy_text_button.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/gift.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/gifts.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media_photo.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media_video.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/input_poll_option.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_info.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_photo.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_preview.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_purchased.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_video.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/prepared_inline_message.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/reaction_type_paid.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/refunded_payment.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_failed.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_pending.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_succeeded.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/shared_user.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/star_transaction.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/star_transactions.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_affiliate_program.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_chat.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_fragment.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_other.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_telegram_ads.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_telegram_api.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_user.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/strategy.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/utils/serialization.po diff --git a/CHANGES/1650.doc.rst b/CHANGES/1650.doc.rst new file mode 100644 index 00000000..6560510f --- /dev/null +++ b/CHANGES/1650.doc.rst @@ -0,0 +1 @@ +Updated 🇺🇦Ukrainian docs translation diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/bot.po b/docs/locale/uk_UA/LC_MESSAGES/api/bot.po index b2c57a26..648499eb 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/bot.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/bot.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -54,8 +54,7 @@ msgstr "" msgid "Bot class" msgstr "" -#: aiogram.client.bot.Bot.__init__ aiogram.client.bot.Bot.context -#: aiogram.client.bot.Bot.download aiogram.client.bot.Bot.download_file of +#: ../../api/bot.rst msgid "Parameters" msgstr "" @@ -71,33 +70,15 @@ msgstr "" #: aiogram.client.bot.Bot.__init__:6 of msgid "" -"Default parse mode. If specified it will be propagated into the API " -"methods at runtime." -msgstr "" - -#: aiogram.client.bot.Bot.__init__:8 of -msgid "" -"Default disable_web_page_preview mode. If specified it will be propagated" -" into the API methods at runtime." -msgstr "" - -#: aiogram.client.bot.Bot.__init__:10 of -msgid "" -"Default protect_content mode. If specified it will be propagated into the" -" API methods at runtime." -msgstr "" - -#: aiogram.client.bot.Bot.__init__:12 of -msgid "" "Default bot properties. If specified it will be propagated into the API " "methods at runtime." msgstr "" -#: aiogram.client.bot.Bot.__init__ of +#: ../../api/bot.rst msgid "Raises" msgstr "" -#: aiogram.client.bot.Bot.__init__:14 of +#: aiogram.client.bot.Bot.__init__:8 of msgid "When token has invalid format this exception will be raised" msgstr "" @@ -105,8 +86,7 @@ msgstr "" msgid "Get bot ID from token" msgstr "" -#: aiogram.client.bot.Bot.context aiogram.client.bot.Bot.id -#: aiogram.client.bot.Bot.me of +#: ../../api/bot.rst msgid "Returns" msgstr "" @@ -166,3 +146,21 @@ msgstr "" #: aiogram.client.bot.Bot.download:6 of msgid "file_id or Downloadable object" msgstr "" + +#~ msgid "" +#~ "Default parse mode. If specified it " +#~ "will be propagated into the API " +#~ "methods at runtime." +#~ msgstr "" + +#~ msgid "" +#~ "Default disable_web_page_preview mode. If " +#~ "specified it will be propagated into " +#~ "the API methods at runtime." +#~ msgstr "" + +#~ msgid "" +#~ "Default protect_content mode. If specified " +#~ "it will be propagated into the API" +#~ " methods at runtime." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/defaults.po b/docs/locale/uk_UA/LC_MESSAGES/api/defaults.po new file mode 100644 index 00000000..7be0af14 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/defaults.po @@ -0,0 +1,183 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/defaults.rst:3 +msgid "Global defaults" +msgstr "Глобальні налаштування" + +#: ../../api/defaults.rst:5 +msgid "" +"aiogram provides mechanism to set some global defaults for all requests " +"to Telegram Bot API in your application using " +":class:`aiogram.client.default.DefaultBotProperties` class." +msgstr "" +"aiogram надає механізм для встановлення деяких глобальних налаштувань для " +"всіх запитів до Telegram Bot API у вашому додатку, використовуючи клас " +":class:`aiogram.client.default.DefaultBotProperties`." + +#: ../../api/defaults.rst:8 +msgid "There are some properties that can be set:" +msgstr "Можна встановити деякі властивості:" + +#: aiogram.client.default.DefaultBotProperties:1 of +msgid "Default bot properties." +msgstr "Стандартні властивості бота." + +#: ../../docstring aiogram.client.default.DefaultBotProperties.parse_mode:1 of +msgid "Default parse mode for messages." +msgstr "Стандартний режим розбору для повідомлень." + +#: ../../docstring +#: aiogram.client.default.DefaultBotProperties.disable_notification:1 of +msgid "" +"Sends the message silently. Users will receive a notification with no " +"sound." +msgstr "" +"Відправляє повідомлення без звуку. Користувачі отримають сповіщення без " +"звукового сигналу." + +#: ../../docstring +#: aiogram.client.default.DefaultBotProperties.protect_content:1 of +msgid "Protects content from copying." +msgstr "Захищає вміст від копіювання." + +#: ../../docstring +#: aiogram.client.default.DefaultBotProperties.allow_sending_without_reply:1 of +msgid "Allows to send messages without reply." +msgstr "Дозволяє надсилати повідомлення без відповіді." + +#: ../../docstring aiogram.client.default.DefaultBotProperties.link_preview:1 +#: of +msgid "Link preview settings." +msgstr "Налаштування попереднього перегляду посилань." + +#: ../../docstring +#: aiogram.client.default.DefaultBotProperties.link_preview_is_disabled:1 of +msgid "Disables link preview." +msgstr "Вимикає попередній перегляд посилань." + +#: ../../docstring +#: aiogram.client.default.DefaultBotProperties.link_preview_prefer_small_media:1 +#: of +msgid "Prefer small media in link preview." +msgstr "Віддавати перевагу малим медіафайлам у попередньому перегляді посилань." + +#: ../../docstring +#: aiogram.client.default.DefaultBotProperties.link_preview_prefer_large_media:1 +#: of +msgid "Prefer large media in link preview." +msgstr "Віддавати перевагу великим медіафайлам у попередньому перегляді посилань." + +#: ../../docstring +#: aiogram.client.default.DefaultBotProperties.link_preview_show_above_text:1 +#: of +msgid "Show link preview above text." +msgstr "Показувати попередній перегляд посилання над текстом." + +#: ../../docstring +#: aiogram.client.default.DefaultBotProperties.show_caption_above_media:1 of +msgid "Show caption above media." +msgstr "Показувати підпис над медіафайлом." + +#: ../../api/defaults.rst:17 +msgid "" +"If you need to override default properties for some requests, you should " +"use `aiogram.client.default.DefaultBotProperties` only for properties " +"that you want to set as defaults and pass explicit values for other " +"properties." +msgstr "" +"Якщо вам потрібно змінити стандартні властивості для деяких запитів, слід " +"використовувати `aiogram.client.default.DefaultBotProperties` лише для " +"властивостей, які ви хочете встановити за замовчуванням, і передавати " +"явні значення для інших властивостей." + +#: ../../api/defaults.rst:22 +msgid "" +"If you upgrading from aiogram 3.0-3.6 to 3.7, you should update your code" +" to use `aiogram.client.default.DefaultBotProperties`." +msgstr "" +"Якщо ви оновлюєтеся з версії aiogram 3.0-3.6 до 3.7, вам потрібно " +"оновити свій код для використання `aiogram.client.default.DefaultBotProperties`." + +#: ../../api/defaults.rst:26 +msgid "Example" +msgstr "Приклад" + +#: ../../api/defaults.rst:28 +msgid "" +"Here is an example of setting default parse mode for all requests to " +"Telegram Bot API:" +msgstr "" +"Ось приклад встановлення стандартного режиму розбору для всіх запитів до " +"Telegram Bot API:" + +#: ../../api/defaults.rst:39 +msgid "" +"In this case all messages sent by this bot will be parsed as HTML, so you" +" don't need to specify `parse_mode` in every message you send." +msgstr "" +"У цьому випадку всі повідомлення, надіслані цим ботом, будуть " +"розбиратися як HTML, тому вам не потрібно вказувати `parse_mode` у кожному " +"повідомленні, що ви надсилаєте." + +#: ../../api/defaults.rst:42 +msgid "Instead of" +msgstr "Замість" + +#: ../../api/defaults.rst:48 +msgid "you can use" +msgstr "ви можете використовувати" + +#: ../../api/defaults.rst:54 +msgid "and the message will be sent with HTML parse mode." +msgstr "і повідомлення буде надіслано в режимі розбору HTML." + +#: ../../api/defaults.rst:56 +msgid "" +"In some cases you may want to override default properties for some " +"requests. You can do it by passing explicit values to the method:" +msgstr "" +"У деяких випадках ви можете захотіти змінити стандартні властивості для " +"деяких запитів. Ви можете зробити це, передаючи явні значення в метод:" + +#: ../../api/defaults.rst:63 +msgid "" +"In this case the message will be sent with Markdown parse mode instead of" +" default HTML." +msgstr "" +"У цьому випадку повідомлення буде надіслано в режимі Markdown замість " +"стандартного HTML." + +#: ../../api/defaults.rst:65 +msgid "Another example of overriding default properties:" +msgstr "Ще один приклад перевизначення стандартних властивостей:" + +#: ../../api/defaults.rst:71 +msgid "" +"In this case the message will be send withoout parse mode, even if " +"default parse mode is set it may be useful if you want to send message " +"with plain text or :ref:`aiogram.types.message_entity.MessageEntity`." +msgstr "" +"У цьому випадку повідомлення буде надіслано без режиму розбору, навіть якщо " +"встановлено стандартний режим розбору. Це може бути корисним, якщо ви хочете " +"надіслати повідомлення у вигляді звичайного тексту або " +":ref:`aiogram.types.message_entity.MessageEntity`." diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/enums/input_paid_media_type.po b/docs/locale/uk_UA/LC_MESSAGES/api/enums/input_paid_media_type.po new file mode 100644 index 00000000..2d957b09 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/enums/input_paid_media_type.po @@ -0,0 +1,33 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/enums/input_paid_media_type.rst:3 +msgid "InputPaidMediaType" +msgstr "" + +#: aiogram.enums.input_paid_media_type.InputPaidMediaType:1 of +msgid "This object represents the type of a media in a paid message." +msgstr "" + +#: aiogram.enums.input_paid_media_type.InputPaidMediaType:3 of +msgid "Source: https://core.telegram.org/bots/api#inputpaidmedia" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/enums/paid_media_type.po b/docs/locale/uk_UA/LC_MESSAGES/api/enums/paid_media_type.po new file mode 100644 index 00000000..6f8a9dac --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/enums/paid_media_type.po @@ -0,0 +1,33 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/enums/paid_media_type.rst:3 +msgid "PaidMediaType" +msgstr "" + +#: aiogram.enums.paid_media_type.PaidMediaType:1 of +msgid "This object represents the type of a media in a paid message." +msgstr "" + +#: aiogram.enums.paid_media_type.PaidMediaType:3 of +msgid "Source: https://core.telegram.org/bots/api#paidmedia" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/enums/revenue_withdrawal_state_type.po b/docs/locale/uk_UA/LC_MESSAGES/api/enums/revenue_withdrawal_state_type.po new file mode 100644 index 00000000..d6e2c13f --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/enums/revenue_withdrawal_state_type.po @@ -0,0 +1,33 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/enums/revenue_withdrawal_state_type.rst:3 +msgid "RevenueWithdrawalStateType" +msgstr "" + +#: aiogram.enums.revenue_withdrawal_state_type.RevenueWithdrawalStateType:1 of +msgid "This object represents a revenue withdrawal state type" +msgstr "" + +#: aiogram.enums.revenue_withdrawal_state_type.RevenueWithdrawalStateType:3 of +msgid "Source: https://core.telegram.org/bots/api#revenuewithdrawalstate" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/enums/transaction_partner_type.po b/docs/locale/uk_UA/LC_MESSAGES/api/enums/transaction_partner_type.po new file mode 100644 index 00000000..30c0f3d1 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/enums/transaction_partner_type.po @@ -0,0 +1,33 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/enums/transaction_partner_type.rst:3 +msgid "TransactionPartnerType" +msgstr "" + +#: aiogram.enums.transaction_partner_type.TransactionPartnerType:1 of +msgid "This object represents a type of transaction partner." +msgstr "" + +#: aiogram.enums.transaction_partner_type.TransactionPartnerType:3 of +msgid "Source: https://core.telegram.org/bots/api#transactionpartner" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/add_sticker_to_set.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/add_sticker_to_set.po index 483b44cd..bd805c10 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/add_sticker_to_set.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/add_sticker_to_set.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-11 01:52+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.11.0\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/add_sticker_to_set.rst:3 msgid "addStickerToSet" @@ -27,11 +27,9 @@ msgstr "" #: aiogram.methods.add_sticker_to_set.AddStickerToSet:1 of msgid "" -"Use this method to add a new sticker to a set created by the bot. The " -"format of the added sticker must match the format of the other stickers " -"in the set. Emoji sticker sets can have up to 200 stickers. Animated and " -"video sticker sets can have up to 50 stickers. Static sticker sets can " -"have up to 120 stickers. Returns :code:`True` on success." +"Use this method to add a new sticker to a set created by the bot. Emoji " +"sticker sets can have up to 200 stickers. Other sticker sets can have up " +"to 120 stickers. Returns :code:`True` on success." msgstr "" #: aiogram.methods.add_sticker_to_set.AddStickerToSet:3 of @@ -55,35 +53,35 @@ msgid "" "isn't changed." msgstr "" -#: ../../api/methods/add_sticker_to_set.rst:14 +#: ../../api/methods/add_sticker_to_set.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/add_sticker_to_set.rst:17 +#: ../../api/methods/add_sticker_to_set.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/add_sticker_to_set.rst:25 +#: ../../api/methods/add_sticker_to_set.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/add_sticker_to_set.rst:27 +#: ../../api/methods/add_sticker_to_set.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/add_sticker_to_set.rst:29 +#: ../../api/methods/add_sticker_to_set.rst:30 msgid ":code:`from aiogram.methods.add_sticker_to_set import AddStickerToSet`" msgstr "" -#: ../../api/methods/add_sticker_to_set.rst:30 +#: ../../api/methods/add_sticker_to_set.rst:31 msgid "alias: :code:`from aiogram.methods import AddStickerToSet`" msgstr "" -#: ../../api/methods/add_sticker_to_set.rst:33 +#: ../../api/methods/add_sticker_to_set.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/add_sticker_to_set.rst:40 +#: ../../api/methods/add_sticker_to_set.rst:41 msgid "As reply into Webhook in handler" msgstr "" @@ -147,3 +145,17 @@ msgstr "" #~ " where the mask should be placed " #~ "on faces" #~ msgstr "" + +#~ msgid "" +#~ "Use this method to add a new " +#~ "sticker to a set created by the" +#~ " bot. The format of the added " +#~ "sticker must match the format of " +#~ "the other stickers in the set. " +#~ "Emoji sticker sets can have up to" +#~ " 200 stickers. Animated and video " +#~ "sticker sets can have up to 50 " +#~ "stickers. Static sticker sets can have" +#~ " up to 120 stickers. Returns " +#~ ":code:`True` on success." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_shipping_query.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_shipping_query.po index 418b9c67..2994cd5c 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_shipping_query.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_shipping_query.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-06 16:52+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/answer_shipping_query.rst:3 msgid "answerShippingQuery" @@ -64,7 +64,7 @@ msgstr "" #: aiogram.methods.answer_shipping_query.AnswerShippingQuery.error_message:1 of msgid "" "Required if *ok* is :code:`False`. Error message in human readable form " -"that explains why it is impossible to complete the order (e.g. \"Sorry, " +"that explains why it is impossible to complete the order (e.g. 'Sorry, " "delivery to your desired address is unavailable'). Telegram will display " "this message to the user." msgstr "" @@ -110,3 +110,13 @@ msgstr "" #: ../../api/methods/answer_shipping_query.rst:51 msgid ":meth:`aiogram.types.shipping_query.ShippingQuery.answer`" msgstr "" + +#~ msgid "" +#~ "Required if *ok* is :code:`False`. Error" +#~ " message in human readable form that" +#~ " explains why it is impossible to " +#~ "complete the order (e.g. \"Sorry, " +#~ "delivery to your desired address is " +#~ "unavailable'). Telegram will display this " +#~ "message to the user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/copy_message.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/copy_message.po index 7db672a4..8239d253 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/copy_message.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/copy_message.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -27,11 +27,11 @@ msgstr "" #: aiogram.methods.copy_message.CopyMessage:1 of msgid "" -"Use this method to copy messages of any kind. Service messages, giveaway " -"messages, giveaway winners messages, and invoice messages can't be " -"copied. A quiz :class:`aiogram.methods.poll.Poll` can be copied only if " -"the value of the field *correct_option_id* is known to the bot. The " -"method is analogous to the method " +"Use this method to copy messages of any kind. Service messages, paid " +"media messages, giveaway messages, giveaway winners messages, and invoice" +" messages can't be copied. A quiz :class:`aiogram.methods.poll.Poll` can " +"be copied only if the value of the field *correct_option_id* is known to " +"the bot. The method is analogous to the method " ":class:`aiogram.methods.forward_message.ForwardMessage`, but the copied " "message doesn't have a link to the original message. Returns the " ":class:`aiogram.types.message_id.MessageId` of the sent message on " @@ -65,6 +65,11 @@ msgid "" " forum supergroups only" msgstr "" +#: ../../docstring +#: aiogram.methods.copy_message.CopyMessage.video_start_timestamp:1 of +msgid "New start timestamp for the copied video in the message" +msgstr "" + #: ../../docstring aiogram.methods.copy_message.CopyMessage.caption:1 of msgid "" "New caption for media, 0-1024 characters after entities parsing. If not " @@ -85,6 +90,13 @@ msgid "" "caption, which can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.methods.copy_message.CopyMessage.show_caption_above_media:1 of +msgid "" +"Pass :code:`True`, if the caption must be shown above the message media. " +"Ignored if a new caption isn't specified." +msgstr "" + #: ../../docstring #: aiogram.methods.copy_message.CopyMessage.disable_notification:1 of msgid "" @@ -97,6 +109,16 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring +#: aiogram.methods.copy_message.CopyMessage.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + #: ../../docstring aiogram.methods.copy_message.CopyMessage.reply_parameters:1 #: of msgid "Description of the message to reply to" @@ -108,7 +130,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -195,3 +217,31 @@ msgstr "" #~ " the :class:`aiogram.types.message_id.MessageId` of " #~ "the sent message on success." #~ msgstr "" + +#~ msgid "" +#~ "Use this method to copy messages " +#~ "of any kind. Service messages, giveaway" +#~ " messages, giveaway winners messages, and" +#~ " invoice messages can't be copied. A" +#~ " quiz :class:`aiogram.methods.poll.Poll` can be" +#~ " copied only if the value of " +#~ "the field *correct_option_id* is known " +#~ "to the bot. The method is " +#~ "analogous to the method " +#~ ":class:`aiogram.methods.forward_message.ForwardMessage`, but " +#~ "the copied message doesn't have a " +#~ "link to the original message. Returns" +#~ " the :class:`aiogram.types.message_id.MessageId` of " +#~ "the sent message on success." +#~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/copy_messages.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/copy_messages.po index 540c2bbb..1958cf78 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/copy_messages.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/copy_messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -25,20 +25,20 @@ msgid "copyMessages" msgstr "" #: ../../api/methods/copy_messages.rst:5 -msgid "Returns: :obj:`List[MessageId]`" +msgid "Returns: :obj:`list[MessageId]`" msgstr "" #: aiogram.methods.copy_messages.CopyMessages:1 of msgid "" "Use this method to copy messages of any kind. If some of the specified " "messages can't be found or copied, they are skipped. Service messages, " -"giveaway messages, giveaway winners messages, and invoice messages can't " -"be copied. A quiz :class:`aiogram.methods.poll.Poll` can be copied only " -"if the value of the field *correct_option_id* is known to the bot. The " -"method is analogous to the method " -":class:`aiogram.methods.forward_messages.ForwardMessages`, but the copied" -" messages don't have a link to the original message. Album grouping is " -"kept for copied messages. On success, an array of " +"paid media messages, giveaway messages, giveaway winners messages, and " +"invoice messages can't be copied. A quiz " +":class:`aiogram.methods.poll.Poll` can be copied only if the value of the" +" field *correct_option_id* is known to the bot. The method is analogous " +"to the method :class:`aiogram.methods.forward_messages.ForwardMessages`, " +"but the copied messages don't have a link to the original message. Album " +"grouping is kept for copied messages. On success, an array of " ":class:`aiogram.types.message_id.MessageId` of the sent messages is " "returned." msgstr "" @@ -61,8 +61,9 @@ msgstr "" #: ../../docstring aiogram.methods.copy_messages.CopyMessages.message_ids:1 of msgid "" -"Identifiers of 1-100 messages in the chat *from_chat_id* to copy. The " -"identifiers must be specified in a strictly increasing order." +"A JSON-serialized list of 1-100 identifiers of messages in the chat " +"*from_chat_id* to copy. The identifiers must be specified in a strictly " +"increasing order." msgstr "" #: ../../docstring @@ -120,3 +121,35 @@ msgstr "" #: ../../api/methods/copy_messages.rst:41 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "Returns: :obj:`List[MessageId]`" +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to copy messages " +#~ "of any kind. If some of the " +#~ "specified messages can't be found or " +#~ "copied, they are skipped. Service " +#~ "messages, giveaway messages, giveaway winners" +#~ " messages, and invoice messages can't " +#~ "be copied. A quiz " +#~ ":class:`aiogram.methods.poll.Poll` can be copied " +#~ "only if the value of the field " +#~ "*correct_option_id* is known to the bot." +#~ " The method is analogous to the " +#~ "method " +#~ ":class:`aiogram.methods.forward_messages.ForwardMessages`, but" +#~ " the copied messages don't have a " +#~ "link to the original message. Album " +#~ "grouping is kept for copied messages." +#~ " On success, an array of " +#~ ":class:`aiogram.types.message_id.MessageId` of the " +#~ "sent messages is returned." +#~ msgstr "" + +#~ msgid "" +#~ "Identifiers of 1-100 messages in the " +#~ "chat *from_chat_id* to copy. The " +#~ "identifiers must be specified in a " +#~ "strictly increasing order." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_chat_subscription_invite_link.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_chat_subscription_invite_link.po new file mode 100644 index 00000000..21e737f1 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_chat_subscription_invite_link.po @@ -0,0 +1,117 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/create_chat_subscription_invite_link.rst:3 +msgid "createChatSubscriptionInviteLink" +msgstr "" + +#: ../../api/methods/create_chat_subscription_invite_link.rst:5 +msgid "Returns: :obj:`ChatInviteLink`" +msgstr "" + +#: aiogram.methods.create_chat_subscription_invite_link.CreateChatSubscriptionInviteLink:1 +#: of +msgid "" +"Use this method to create a `subscription invite link " +"`_ for a channel chat. The bot must have the " +"*can_invite_users* administrator rights. The link can be edited using the" +" method " +":class:`aiogram.methods.edit_chat_subscription_invite_link.EditChatSubscriptionInviteLink`" +" or revoked using the method " +":class:`aiogram.methods.revoke_chat_invite_link.RevokeChatInviteLink`. " +"Returns the new invite link as a " +":class:`aiogram.types.chat_invite_link.ChatInviteLink` object." +msgstr "" + +#: aiogram.methods.create_chat_subscription_invite_link.CreateChatSubscriptionInviteLink:3 +#: of +msgid "" +"Source: " +"https://core.telegram.org/bots/api#createchatsubscriptioninvitelink" +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_chat_subscription_invite_link.CreateChatSubscriptionInviteLink.chat_id:1 +#: of +msgid "" +"Unique identifier for the target channel chat or username of the target " +"channel (in the format :code:`@channelusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_chat_subscription_invite_link.CreateChatSubscriptionInviteLink.subscription_period:1 +#: of +msgid "" +"The number of seconds the subscription will be active for before the next" +" payment. Currently, it must always be 2592000 (30 days)." +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_chat_subscription_invite_link.CreateChatSubscriptionInviteLink.subscription_price:1 +#: of +msgid "" +"The amount of Telegram Stars a user must pay initially and after each " +"subsequent subscription period to be a member of the chat; 1-2500" +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_chat_subscription_invite_link.CreateChatSubscriptionInviteLink.name:1 +#: of +msgid "Invite link name; 0-32 characters" +msgstr "" + +#: ../../api/methods/create_chat_subscription_invite_link.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/create_chat_subscription_invite_link.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/create_chat_subscription_invite_link.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/create_chat_subscription_invite_link.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/create_chat_subscription_invite_link.rst:30 +msgid "" +":code:`from aiogram.methods.create_chat_subscription_invite_link import " +"CreateChatSubscriptionInviteLink`" +msgstr "" + +#: ../../api/methods/create_chat_subscription_invite_link.rst:31 +msgid "" +"alias: :code:`from aiogram.methods import " +"CreateChatSubscriptionInviteLink`" +msgstr "" + +#: ../../api/methods/create_chat_subscription_invite_link.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/create_chat_subscription_invite_link.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_invoice_link.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_invoice_link.po index ca18a308..07acfa33 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_invoice_link.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_invoice_link.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/create_invoice_link.rst:3 msgid "createInvoiceLink" @@ -49,26 +49,53 @@ msgstr "" #: aiogram.methods.create_invoice_link.CreateInvoiceLink.payload:1 of msgid "" "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to " -"the user, use for your internal processes." -msgstr "" - -#: ../../docstring -#: aiogram.methods.create_invoice_link.CreateInvoiceLink.provider_token:1 of -msgid "Payment provider token, obtained via `BotFather `_" +"the user, use it for your internal processes." msgstr "" #: ../../docstring #: aiogram.methods.create_invoice_link.CreateInvoiceLink.currency:1 of msgid "" "Three-letter ISO 4217 currency code, see `more on currencies " -"`_" +"`_. Pass " +"'XTR' for payments in `Telegram Stars `_." msgstr "" #: ../../docstring #: aiogram.methods.create_invoice_link.CreateInvoiceLink.prices:1 of msgid "" "Price breakdown, a JSON-serialized list of components (e.g. product " -"price, tax, discount, delivery cost, delivery tax, bonus, etc.)" +"price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must " +"contain exactly one item for payments in `Telegram Stars " +"`_." +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_invoice_link.CreateInvoiceLink.business_connection_id:1 +#: of +msgid "" +"Unique identifier of the business connection on behalf of which the link " +"will be created. For payments in `Telegram Stars " +"`_ only." +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_invoice_link.CreateInvoiceLink.provider_token:1 of +msgid "" +"Payment provider token, obtained via `@BotFather " +"`_. Pass an empty string for payments in " +"`Telegram Stars `_." +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_invoice_link.CreateInvoiceLink.subscription_period:1 +#: of +msgid "" +"The number of seconds the subscription will be active for before the next" +" payment. The currency must be set to 'XTR' (Telegram Stars) if the " +"parameter is used. Currently, it must always be 2592000 (30 days) if " +"specified. Any number of subscriptions can be active for a given bot at " +"the same time, including multiple concurrent subscriptions from the same " +"user. Subscription price must no exceed 2500 Telegram Stars." msgstr "" #: ../../docstring @@ -80,7 +107,8 @@ msgid "" "parameter in `currencies.json " "`_, it shows the" " number of digits past the decimal point for each currency (2 for the " -"majority of currencies). Defaults to 0" +"majority of currencies). Defaults to 0. Not supported for payments in " +"`Telegram Stars `_." msgstr "" #: ../../docstring @@ -128,21 +156,24 @@ msgstr "" #: aiogram.methods.create_invoice_link.CreateInvoiceLink.need_name:1 of msgid "" "Pass :code:`True` if you require the user's full name to complete the " -"order" +"order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring #: aiogram.methods.create_invoice_link.CreateInvoiceLink.need_phone_number:1 of msgid "" "Pass :code:`True` if you require the user's phone number to complete the " -"order" +"order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring #: aiogram.methods.create_invoice_link.CreateInvoiceLink.need_email:1 of msgid "" "Pass :code:`True` if you require the user's email address to complete the" -" order" +" order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring @@ -150,7 +181,8 @@ msgstr "" #: of msgid "" "Pass :code:`True` if you require the user's shipping address to complete " -"the order" +"the order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring @@ -158,7 +190,8 @@ msgstr "" #: of msgid "" "Pass :code:`True` if the user's phone number should be sent to the " -"provider" +"provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring @@ -166,42 +199,124 @@ msgstr "" #: of msgid "" "Pass :code:`True` if the user's email address should be sent to the " -"provider" +"provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring #: aiogram.methods.create_invoice_link.CreateInvoiceLink.is_flexible:1 of -msgid "Pass :code:`True` if the final price depends on the shipping method" +msgid "" +"Pass :code:`True` if the final price depends on the shipping method. " +"Ignored for payments in `Telegram Stars `_." msgstr "" -#: ../../api/methods/create_invoice_link.rst:14 +#: ../../api/methods/create_invoice_link.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/create_invoice_link.rst:17 +#: ../../api/methods/create_invoice_link.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/create_invoice_link.rst:25 +#: ../../api/methods/create_invoice_link.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/create_invoice_link.rst:27 +#: ../../api/methods/create_invoice_link.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/create_invoice_link.rst:29 +#: ../../api/methods/create_invoice_link.rst:30 msgid ":code:`from aiogram.methods.create_invoice_link import CreateInvoiceLink`" msgstr "" -#: ../../api/methods/create_invoice_link.rst:30 +#: ../../api/methods/create_invoice_link.rst:31 msgid "alias: :code:`from aiogram.methods import CreateInvoiceLink`" msgstr "" -#: ../../api/methods/create_invoice_link.rst:33 +#: ../../api/methods/create_invoice_link.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/create_invoice_link.rst:40 +#: ../../api/methods/create_invoice_link.rst:41 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "Bot-defined invoice payload, 1-128 " +#~ "bytes. This will not be displayed " +#~ "to the user, use for your internal" +#~ " processes." +#~ msgstr "" + +#~ msgid "" +#~ "Payment provider token, obtained via " +#~ "`BotFather `_" +#~ msgstr "" + +#~ msgid "" +#~ "Three-letter ISO 4217 currency code, " +#~ "see `more on currencies " +#~ "`_" +#~ msgstr "" + +#~ msgid "" +#~ "Price breakdown, a JSON-serialized list" +#~ " of components (e.g. product price, " +#~ "tax, discount, delivery cost, delivery " +#~ "tax, bonus, etc.)" +#~ msgstr "" + +#~ msgid "" +#~ "The maximum accepted amount for tips " +#~ "in the *smallest units* of the " +#~ "currency (integer, **not** float/double). For" +#~ " example, for a maximum tip of " +#~ ":code:`US$ 1.45` pass :code:`max_tip_amount =" +#~ " 145`. See the *exp* parameter in " +#~ "`currencies.json " +#~ "`_, it" +#~ " shows the number of digits past " +#~ "the decimal point for each currency " +#~ "(2 for the majority of currencies). " +#~ "Defaults to 0" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's full name to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's phone number to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's email address to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's shipping address to complete the" +#~ " order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the user's phone" +#~ " number should be sent to the " +#~ "provider" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the user's email" +#~ " address should be sent to the " +#~ "provider" +#~ msgstr "" + +#~ msgid "Pass :code:`True` if the final price depends on the shipping method" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_new_sticker_set.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_new_sticker_set.po index 045ca8f0..b1e1e2b6 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_new_sticker_set.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_new_sticker_set.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-11 01:52+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.11.0\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/create_new_sticker_set.rst:3 msgid "createNewStickerSet" @@ -63,14 +63,6 @@ msgid "" "sticker set" msgstr "" -#: ../../docstring -#: aiogram.methods.create_new_sticker_set.CreateNewStickerSet.sticker_format:1 -#: of -msgid "" -"Format of stickers in the set, must be one of 'static', 'animated', " -"'video'" -msgstr "" - #: ../../docstring #: aiogram.methods.create_new_sticker_set.CreateNewStickerSet.sticker_type:1 of msgid "" @@ -88,37 +80,51 @@ msgid "" "context; for custom emoji sticker sets only" msgstr "" -#: ../../api/methods/create_new_sticker_set.rst:14 +#: ../../docstring +#: aiogram.methods.create_new_sticker_set.CreateNewStickerSet.sticker_format:1 +#: of +msgid "" +"Format of stickers in the set, must be one of 'static', 'animated', " +"'video'" +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_new_sticker_set.CreateNewStickerSet.sticker_format:3 +#: of +msgid "https://core.telegram.org/bots/api-changelog#march-31-2024" +msgstr "" + +#: ../../api/methods/create_new_sticker_set.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/create_new_sticker_set.rst:17 +#: ../../api/methods/create_new_sticker_set.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/create_new_sticker_set.rst:25 +#: ../../api/methods/create_new_sticker_set.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/create_new_sticker_set.rst:27 +#: ../../api/methods/create_new_sticker_set.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/create_new_sticker_set.rst:29 +#: ../../api/methods/create_new_sticker_set.rst:30 msgid "" ":code:`from aiogram.methods.create_new_sticker_set import " "CreateNewStickerSet`" msgstr "" -#: ../../api/methods/create_new_sticker_set.rst:30 +#: ../../api/methods/create_new_sticker_set.rst:31 msgid "alias: :code:`from aiogram.methods import CreateNewStickerSet`" msgstr "" -#: ../../api/methods/create_new_sticker_set.rst:33 +#: ../../api/methods/create_new_sticker_set.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/create_new_sticker_set.rst:40 +#: ../../api/methods/create_new_sticker_set.rst:41 msgid "As reply into Webhook in handler" msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_messages.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_messages.po index f752f998..bc9ece9f 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_messages.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -48,7 +48,7 @@ msgstr "" #: ../../docstring aiogram.methods.delete_messages.DeleteMessages.message_ids:1 #: of msgid "" -"Identifiers of 1-100 messages to delete. See " +"A JSON-serialized list of 1-100 identifiers of messages to delete. See " ":class:`aiogram.methods.delete_message.DeleteMessage` for limitations on " "which messages can be deleted" msgstr "" @@ -84,3 +84,10 @@ msgstr "" #: ../../api/methods/delete_messages.rst:41 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "Identifiers of 1-100 messages to delete." +#~ " See :class:`aiogram.methods.delete_message.DeleteMessage`" +#~ " for limitations on which messages " +#~ "can be deleted" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_chat_subscription_invite_link.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_chat_subscription_invite_link.po new file mode 100644 index 00000000..4398522a --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_chat_subscription_invite_link.po @@ -0,0 +1,97 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/edit_chat_subscription_invite_link.rst:3 +msgid "editChatSubscriptionInviteLink" +msgstr "" + +#: ../../api/methods/edit_chat_subscription_invite_link.rst:5 +msgid "Returns: :obj:`ChatInviteLink`" +msgstr "" + +#: aiogram.methods.edit_chat_subscription_invite_link.EditChatSubscriptionInviteLink:1 +#: of +msgid "" +"Use this method to edit a subscription invite link created by the bot. " +"The bot must have the *can_invite_users* administrator rights. Returns " +"the edited invite link as a " +":class:`aiogram.types.chat_invite_link.ChatInviteLink` object." +msgstr "" + +#: aiogram.methods.edit_chat_subscription_invite_link.EditChatSubscriptionInviteLink:3 +#: of +msgid "Source: https://core.telegram.org/bots/api#editchatsubscriptioninvitelink" +msgstr "" + +#: ../../docstring +#: aiogram.methods.edit_chat_subscription_invite_link.EditChatSubscriptionInviteLink.chat_id:1 +#: of +msgid "" +"Unique identifier for the target chat or username of the target channel " +"(in the format :code:`@channelusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.edit_chat_subscription_invite_link.EditChatSubscriptionInviteLink.invite_link:1 +#: of +msgid "The invite link to edit" +msgstr "" + +#: ../../docstring +#: aiogram.methods.edit_chat_subscription_invite_link.EditChatSubscriptionInviteLink.name:1 +#: of +msgid "Invite link name; 0-32 characters" +msgstr "" + +#: ../../api/methods/edit_chat_subscription_invite_link.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/edit_chat_subscription_invite_link.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/edit_chat_subscription_invite_link.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/edit_chat_subscription_invite_link.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/edit_chat_subscription_invite_link.rst:30 +msgid "" +":code:`from aiogram.methods.edit_chat_subscription_invite_link import " +"EditChatSubscriptionInviteLink`" +msgstr "" + +#: ../../api/methods/edit_chat_subscription_invite_link.rst:31 +msgid "alias: :code:`from aiogram.methods import EditChatSubscriptionInviteLink`" +msgstr "" + +#: ../../api/methods/edit_chat_subscription_invite_link.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/edit_chat_subscription_invite_link.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_forum_topic.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_forum_topic.po index bf582c84..53da9563 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_forum_topic.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_forum_topic.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-01-07 23:01+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/edit_forum_topic.rst:3 msgid "editForumTopic" @@ -29,7 +29,7 @@ msgstr "" msgid "" "Use this method to edit name and icon of a topic in a forum supergroup " "chat. The bot must be an administrator in the chat for this to work and " -"must have *can_manage_topics* administrator rights, unless it is the " +"must have the *can_manage_topics* administrator rights, unless it is the " "creator of the topic. Returns :code:`True` on success." msgstr "" @@ -63,34 +63,45 @@ msgid "" "remove the icon. If not specified, the current icon will be kept" msgstr "" -#: ../../api/methods/edit_forum_topic.rst:14 +#: ../../api/methods/edit_forum_topic.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/edit_forum_topic.rst:17 +#: ../../api/methods/edit_forum_topic.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/edit_forum_topic.rst:25 +#: ../../api/methods/edit_forum_topic.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/edit_forum_topic.rst:27 +#: ../../api/methods/edit_forum_topic.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/edit_forum_topic.rst:29 +#: ../../api/methods/edit_forum_topic.rst:30 msgid ":code:`from aiogram.methods.edit_forum_topic import EditForumTopic`" msgstr "" -#: ../../api/methods/edit_forum_topic.rst:30 +#: ../../api/methods/edit_forum_topic.rst:31 msgid "alias: :code:`from aiogram.methods import EditForumTopic`" msgstr "" -#: ../../api/methods/edit_forum_topic.rst:33 +#: ../../api/methods/edit_forum_topic.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/edit_forum_topic.rst:40 +#: ../../api/methods/edit_forum_topic.rst:41 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "Use this method to edit name and" +#~ " icon of a topic in a forum " +#~ "supergroup chat. The bot must be " +#~ "an administrator in the chat for " +#~ "this to work and must have " +#~ "*can_manage_topics* administrator rights, unless " +#~ "it is the creator of the topic." +#~ " Returns :code:`True` on success." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_general_forum_topic.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_general_forum_topic.po index 75700ab7..28e36aed 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_general_forum_topic.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_general_forum_topic.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-30 22:28+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/edit_general_forum_topic.rst:3 msgid "editGeneralForumTopic" @@ -29,8 +29,8 @@ msgstr "" msgid "" "Use this method to edit the name of the 'General' topic in a forum " "supergroup chat. The bot must be an administrator in the chat for this to" -" work and must have *can_manage_topics* administrator rights. Returns " -":code:`True` on success." +" work and must have the *can_manage_topics* administrator rights. Returns" +" :code:`True` on success." msgstr "" #: aiogram.methods.edit_general_forum_topic.EditGeneralForumTopic:3 of @@ -49,36 +49,46 @@ msgstr "" msgid "New topic name, 1-128 characters" msgstr "" -#: ../../api/methods/edit_general_forum_topic.rst:14 +#: ../../api/methods/edit_general_forum_topic.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/edit_general_forum_topic.rst:17 +#: ../../api/methods/edit_general_forum_topic.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/edit_general_forum_topic.rst:25 +#: ../../api/methods/edit_general_forum_topic.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/edit_general_forum_topic.rst:27 +#: ../../api/methods/edit_general_forum_topic.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/edit_general_forum_topic.rst:29 +#: ../../api/methods/edit_general_forum_topic.rst:30 msgid "" ":code:`from aiogram.methods.edit_general_forum_topic import " "EditGeneralForumTopic`" msgstr "" -#: ../../api/methods/edit_general_forum_topic.rst:30 +#: ../../api/methods/edit_general_forum_topic.rst:31 msgid "alias: :code:`from aiogram.methods import EditGeneralForumTopic`" msgstr "" -#: ../../api/methods/edit_general_forum_topic.rst:33 +#: ../../api/methods/edit_general_forum_topic.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/edit_general_forum_topic.rst:40 +#: ../../api/methods/edit_general_forum_topic.rst:41 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "Use this method to edit the name" +#~ " of the 'General' topic in a " +#~ "forum supergroup chat. The bot must " +#~ "be an administrator in the chat " +#~ "for this to work and must have " +#~ "*can_manage_topics* administrator rights. Returns" +#~ " :code:`True` on success." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_caption.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_caption.po index a566ee5e..a509fa97 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_caption.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_caption.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-23 00:47+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/edit_message_caption.rst:3 msgid "editMessageCaption" @@ -30,13 +30,23 @@ msgid "" "Use this method to edit captions of messages. On success, if the edited " "message is not an inline message, the edited " ":class:`aiogram.types.message.Message` is returned, otherwise " -":code:`True` is returned." +":code:`True` is returned. Note that business messages that were not sent " +"by the bot and do not contain an inline keyboard can only be edited " +"within **48 hours** from the time they were sent." msgstr "" #: aiogram.methods.edit_message_caption.EditMessageCaption:3 of msgid "Source: https://core.telegram.org/bots/api#editmessagecaption" msgstr "" +#: ../../docstring +#: aiogram.methods.edit_message_caption.EditMessageCaption.business_connection_id:1 +#: of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message to be edited was sent" +msgstr "" + #: ../../docstring #: aiogram.methods.edit_message_caption.EditMessageCaption.chat_id:1 of msgid "" @@ -81,6 +91,14 @@ msgid "" "which can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.methods.edit_message_caption.EditMessageCaption.show_caption_above_media:1 +#: of +msgid "" +"Pass :code:`True`, if the caption must be shown above the message media. " +"Supported only for animation, photo and video messages." +msgstr "" + #: ../../docstring #: aiogram.methods.edit_message_caption.EditMessageCaption.reply_markup:1 of msgid "" @@ -88,45 +106,45 @@ msgid "" "`_." msgstr "" -#: ../../api/methods/edit_message_caption.rst:14 +#: ../../api/methods/edit_message_caption.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/edit_message_caption.rst:17 +#: ../../api/methods/edit_message_caption.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/edit_message_caption.rst:25 +#: ../../api/methods/edit_message_caption.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/edit_message_caption.rst:27 +#: ../../api/methods/edit_message_caption.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/edit_message_caption.rst:29 +#: ../../api/methods/edit_message_caption.rst:30 msgid "" ":code:`from aiogram.methods.edit_message_caption import " "EditMessageCaption`" msgstr "" -#: ../../api/methods/edit_message_caption.rst:30 +#: ../../api/methods/edit_message_caption.rst:31 msgid "alias: :code:`from aiogram.methods import EditMessageCaption`" msgstr "" -#: ../../api/methods/edit_message_caption.rst:33 +#: ../../api/methods/edit_message_caption.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/edit_message_caption.rst:40 +#: ../../api/methods/edit_message_caption.rst:41 msgid "As reply into Webhook in handler" msgstr "" -#: ../../api/methods/edit_message_caption.rst:48 +#: ../../api/methods/edit_message_caption.rst:49 msgid "As shortcut from received object" msgstr "" -#: ../../api/methods/edit_message_caption.rst:50 +#: ../../api/methods/edit_message_caption.rst:51 msgid ":meth:`aiogram.types.message.Message.edit_caption`" msgstr "" @@ -136,3 +154,12 @@ msgstr "" #~ "#inline-keyboards-and-on-the-fly-" #~ "updating>`_." #~ msgstr "" + +#~ msgid "" +#~ "Use this method to edit captions " +#~ "of messages. On success, if the " +#~ "edited message is not an inline " +#~ "message, the edited " +#~ ":class:`aiogram.types.message.Message` is returned, " +#~ "otherwise :code:`True` is returned." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_live_location.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_live_location.po index 2e129074..46f82076 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_live_location.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_live_location.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-23 00:47+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/edit_message_live_location.rst:3 msgid "editMessageLiveLocation" @@ -52,6 +52,14 @@ msgstr "" msgid "Longitude of new location" msgstr "" +#: ../../docstring +#: aiogram.methods.edit_message_live_location.EditMessageLiveLocation.business_connection_id:1 +#: of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message to be edited was sent" +msgstr "" + #: ../../docstring #: aiogram.methods.edit_message_live_location.EditMessageLiveLocation.chat_id:1 #: of @@ -77,6 +85,18 @@ msgid "" "the inline message" msgstr "" +#: ../../docstring +#: aiogram.methods.edit_message_live_location.EditMessageLiveLocation.live_period:1 +#: of +msgid "" +"New period in seconds during which the location can be updated, starting " +"from the message send date. If 0x7FFFFFFF is specified, then the location" +" can be updated forever. Otherwise, the new value must not exceed the " +"current *live_period* by more than a day, and the live location " +"expiration date must remain within the next 90 days. If not specified, " +"then *live_period* remains unchanged" +msgstr "" + #: ../../docstring #: aiogram.methods.edit_message_live_location.EditMessageLiveLocation.horizontal_accuracy:1 #: of @@ -107,45 +127,45 @@ msgid "" "`_." msgstr "" -#: ../../api/methods/edit_message_live_location.rst:14 +#: ../../api/methods/edit_message_live_location.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:17 +#: ../../api/methods/edit_message_live_location.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:25 +#: ../../api/methods/edit_message_live_location.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:27 +#: ../../api/methods/edit_message_live_location.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:29 +#: ../../api/methods/edit_message_live_location.rst:30 msgid "" ":code:`from aiogram.methods.edit_message_live_location import " "EditMessageLiveLocation`" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:30 +#: ../../api/methods/edit_message_live_location.rst:31 msgid "alias: :code:`from aiogram.methods import EditMessageLiveLocation`" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:33 +#: ../../api/methods/edit_message_live_location.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:40 +#: ../../api/methods/edit_message_live_location.rst:41 msgid "As reply into Webhook in handler" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:48 +#: ../../api/methods/edit_message_live_location.rst:49 msgid "As shortcut from received object" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:50 +#: ../../api/methods/edit_message_live_location.rst:51 msgid ":meth:`aiogram.types.message.Message.edit_live_location`" msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_media.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_media.po index afb32662..33f724d6 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_media.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_media.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-23 00:47+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/edit_message_media.rst:3 msgid "editMessageMedia" @@ -28,13 +28,16 @@ msgstr "" #: aiogram.methods.edit_message_media.EditMessageMedia:1 of msgid "" "Use this method to edit animation, audio, document, photo, or video " -"messages. If a message is part of a message album, then it can be edited " -"only to an audio for audio albums, only to a document for document albums" -" and to a photo or a video otherwise. When an inline message is edited, a" -" new file can't be uploaded; use a previously uploaded file via its " -"file_id or specify a URL. On success, if the edited message is not an " -"inline message, the edited :class:`aiogram.types.message.Message` is " -"returned, otherwise :code:`True` is returned." +"messages, or to add media to text messages. If a message is part of a " +"message album, then it can be edited only to an audio for audio albums, " +"only to a document for document albums and to a photo or a video " +"otherwise. When an inline message is edited, a new file can't be " +"uploaded; use a previously uploaded file via its file_id or specify a " +"URL. On success, if the edited message is not an inline message, the " +"edited :class:`aiogram.types.message.Message` is returned, otherwise " +":code:`True` is returned. Note that business messages that were not sent " +"by the bot and do not contain an inline keyboard can only be edited " +"within **48 hours** from the time they were sent." msgstr "" #: aiogram.methods.edit_message_media.EditMessageMedia:3 of @@ -46,6 +49,14 @@ msgstr "" msgid "A JSON-serialized object for a new media content of the message" msgstr "" +#: ../../docstring +#: aiogram.methods.edit_message_media.EditMessageMedia.business_connection_id:1 +#: of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message to be edited was sent" +msgstr "" + #: ../../docstring #: aiogram.methods.edit_message_media.EditMessageMedia.chat_id:1 of msgid "" @@ -75,43 +86,43 @@ msgid "" "`_." msgstr "" -#: ../../api/methods/edit_message_media.rst:14 +#: ../../api/methods/edit_message_media.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/edit_message_media.rst:17 +#: ../../api/methods/edit_message_media.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/edit_message_media.rst:25 +#: ../../api/methods/edit_message_media.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/edit_message_media.rst:27 +#: ../../api/methods/edit_message_media.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/edit_message_media.rst:29 +#: ../../api/methods/edit_message_media.rst:30 msgid ":code:`from aiogram.methods.edit_message_media import EditMessageMedia`" msgstr "" -#: ../../api/methods/edit_message_media.rst:30 +#: ../../api/methods/edit_message_media.rst:31 msgid "alias: :code:`from aiogram.methods import EditMessageMedia`" msgstr "" -#: ../../api/methods/edit_message_media.rst:33 +#: ../../api/methods/edit_message_media.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/edit_message_media.rst:40 +#: ../../api/methods/edit_message_media.rst:41 msgid "As reply into Webhook in handler" msgstr "" -#: ../../api/methods/edit_message_media.rst:48 +#: ../../api/methods/edit_message_media.rst:49 msgid "As shortcut from received object" msgstr "" -#: ../../api/methods/edit_message_media.rst:50 +#: ../../api/methods/edit_message_media.rst:51 msgid ":meth:`aiogram.types.message.Message.edit_media`" msgstr "" @@ -124,3 +135,22 @@ msgstr "" #~ msgid "As message method" #~ msgstr "" + +#~ msgid "" +#~ "Use this method to edit animation, " +#~ "audio, document, photo, or video " +#~ "messages. If a message is part of" +#~ " a message album, then it can " +#~ "be edited only to an audio for " +#~ "audio albums, only to a document " +#~ "for document albums and to a photo" +#~ " or a video otherwise. When an " +#~ "inline message is edited, a new " +#~ "file can't be uploaded; use a " +#~ "previously uploaded file via its file_id" +#~ " or specify a URL. On success, " +#~ "if the edited message is not an" +#~ " inline message, the edited " +#~ ":class:`aiogram.types.message.Message` is returned, " +#~ "otherwise :code:`True` is returned." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_reply_markup.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_reply_markup.po index b704dd6d..c6a1aafb 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_reply_markup.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_reply_markup.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-06 16:52+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/edit_message_reply_markup.rst:3 msgid "editMessageReplyMarkup" @@ -30,13 +30,23 @@ msgid "" "Use this method to edit only the reply markup of messages. On success, if" " the edited message is not an inline message, the edited " ":class:`aiogram.types.message.Message` is returned, otherwise " -":code:`True` is returned." +":code:`True` is returned. Note that business messages that were not sent " +"by the bot and do not contain an inline keyboard can only be edited " +"within **48 hours** from the time they were sent." msgstr "" #: aiogram.methods.edit_message_reply_markup.EditMessageReplyMarkup:3 of msgid "Source: https://core.telegram.org/bots/api#editmessagereplymarkup" msgstr "" +#: ../../docstring +#: aiogram.methods.edit_message_reply_markup.EditMessageReplyMarkup.business_connection_id:1 +#: of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message to be edited was sent" +msgstr "" + #: ../../docstring #: aiogram.methods.edit_message_reply_markup.EditMessageReplyMarkup.chat_id:1 #: of @@ -122,3 +132,12 @@ msgstr "" #~ "#inline-keyboards-and-on-the-fly-" #~ "updating>`_." #~ msgstr "" + +#~ msgid "" +#~ "Use this method to edit only the" +#~ " reply markup of messages. On " +#~ "success, if the edited message is " +#~ "not an inline message, the edited " +#~ ":class:`aiogram.types.message.Message` is returned, " +#~ "otherwise :code:`True` is returned." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_text.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_text.po index 369d81ce..7f70442b 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_text.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_message_text.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -31,7 +31,9 @@ msgid "" "`_ messages. On success, if the" " edited message is not an inline message, the edited " ":class:`aiogram.types.message.Message` is returned, otherwise " -":code:`True` is returned." +":code:`True` is returned. Note that business messages that were not sent " +"by the bot and do not contain an inline keyboard can only be edited " +"within **48 hours** from the time they were sent." msgstr "" #: aiogram.methods.edit_message_text.EditMessageText:3 of @@ -42,6 +44,14 @@ msgstr "" msgid "New text of the message, 1-4096 characters after entities parsing" msgstr "" +#: ../../docstring +#: aiogram.methods.edit_message_text.EditMessageText.business_connection_id:1 +#: of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message to be edited was sent" +msgstr "" + #: ../../docstring aiogram.methods.edit_message_text.EditMessageText.chat_id:1 #: of msgid "" @@ -149,3 +159,13 @@ msgstr "" #~ "#inline-keyboards-and-on-the-fly-" #~ "updating>`_." #~ msgstr "" + +#~ msgid "" +#~ "Use this method to edit text and" +#~ " `game `_ " +#~ "messages. On success, if the edited " +#~ "message is not an inline message, " +#~ "the edited :class:`aiogram.types.message.Message` is" +#~ " returned, otherwise :code:`True` is " +#~ "returned." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_user_star_subscription.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_user_star_subscription.po new file mode 100644 index 00000000..92d9591e --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_user_star_subscription.po @@ -0,0 +1,95 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/edit_user_star_subscription.rst:3 +msgid "editUserStarSubscription" +msgstr "" + +#: ../../api/methods/edit_user_star_subscription.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.edit_user_star_subscription.EditUserStarSubscription:1 of +msgid "" +"Allows the bot to cancel or re-enable extension of a subscription paid in" +" Telegram Stars. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.edit_user_star_subscription.EditUserStarSubscription:3 of +msgid "Source: https://core.telegram.org/bots/api#edituserstarsubscription" +msgstr "" + +#: ../../docstring +#: aiogram.methods.edit_user_star_subscription.EditUserStarSubscription.user_id:1 +#: of +msgid "Identifier of the user whose subscription will be edited" +msgstr "" + +#: ../../docstring +#: aiogram.methods.edit_user_star_subscription.EditUserStarSubscription.telegram_payment_charge_id:1 +#: of +msgid "Telegram payment identifier for the subscription" +msgstr "" + +#: ../../docstring +#: aiogram.methods.edit_user_star_subscription.EditUserStarSubscription.is_canceled:1 +#: of +msgid "" +"Pass :code:`True` to cancel extension of the user subscription; the " +"subscription must be active up to the end of the current subscription " +"period. Pass :code:`False` to allow the user to re-enable a subscription " +"that was previously canceled by the bot." +msgstr "" + +#: ../../api/methods/edit_user_star_subscription.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/edit_user_star_subscription.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/edit_user_star_subscription.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/edit_user_star_subscription.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/edit_user_star_subscription.rst:30 +msgid "" +":code:`from aiogram.methods.edit_user_star_subscription import " +"EditUserStarSubscription`" +msgstr "" + +#: ../../api/methods/edit_user_star_subscription.rst:31 +msgid "alias: :code:`from aiogram.methods import EditUserStarSubscription`" +msgstr "" + +#: ../../api/methods/edit_user_star_subscription.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/edit_user_star_subscription.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/forward_message.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/forward_message.po index d8188e72..66b3e9ac 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/forward_message.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/forward_message.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -61,6 +61,11 @@ msgid "" " forum supergroups only" msgstr "" +#: ../../docstring +#: aiogram.methods.forward_message.ForwardMessage.video_start_timestamp:1 of +msgid "New start timestamp for the forwarded video in the message" +msgstr "" + #: ../../docstring #: aiogram.methods.forward_message.ForwardMessage.disable_notification:1 of msgid "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/forward_messages.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/forward_messages.po index 3f6b79eb..f83918c4 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/forward_messages.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/forward_messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -25,7 +25,7 @@ msgid "forwardMessages" msgstr "" #: ../../api/methods/forward_messages.rst:5 -msgid "Returns: :obj:`List[MessageId]`" +msgid "Returns: :obj:`list[MessageId]`" msgstr "" #: aiogram.methods.forward_messages.ForwardMessages:1 of @@ -59,8 +59,9 @@ msgstr "" #: ../../docstring #: aiogram.methods.forward_messages.ForwardMessages.message_ids:1 of msgid "" -"Identifiers of 1-100 messages in the chat *from_chat_id* to forward. The " -"identifiers must be specified in a strictly increasing order." +"A JSON-serialized list of 1-100 identifiers of messages in the chat " +"*from_chat_id* to forward. The identifiers must be specified in a " +"strictly increasing order." msgstr "" #: ../../docstring @@ -113,3 +114,13 @@ msgstr "" #: ../../api/methods/forward_messages.rst:41 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "Returns: :obj:`List[MessageId]`" +#~ msgstr "" + +#~ msgid "" +#~ "Identifiers of 1-100 messages in the " +#~ "chat *from_chat_id* to forward. The " +#~ "identifiers must be specified in a " +#~ "strictly increasing order." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_available_gifts.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_available_gifts.po new file mode 100644 index 00000000..886d2762 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_available_gifts.po @@ -0,0 +1,68 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/get_available_gifts.rst:3 +msgid "getAvailableGifts" +msgstr "" + +#: ../../api/methods/get_available_gifts.rst:5 +msgid "Returns: :obj:`Gifts`" +msgstr "" + +#: aiogram.methods.get_available_gifts.GetAvailableGifts:1 of +msgid "" +"Returns the list of gifts that can be sent by the bot to users and " +"channel chats. Requires no parameters. Returns a " +":class:`aiogram.types.gifts.Gifts` object." +msgstr "" + +#: aiogram.methods.get_available_gifts.GetAvailableGifts:3 of +msgid "Source: https://core.telegram.org/bots/api#getavailablegifts" +msgstr "" + +#: ../../api/methods/get_available_gifts.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/get_available_gifts.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/get_available_gifts.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/get_available_gifts.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/get_available_gifts.rst:30 +msgid ":code:`from aiogram.methods.get_available_gifts import GetAvailableGifts`" +msgstr "" + +#: ../../api/methods/get_available_gifts.rst:31 +msgid "alias: :code:`from aiogram.methods import GetAvailableGifts`" +msgstr "" + +#: ../../api/methods/get_available_gifts.rst:34 +msgid "With specific bot" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_business_connection.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_business_connection.po new file mode 100644 index 00000000..c23aa841 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_business_connection.po @@ -0,0 +1,77 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/get_business_connection.rst:3 +msgid "getBusinessConnection" +msgstr "" + +#: ../../api/methods/get_business_connection.rst:5 +msgid "Returns: :obj:`BusinessConnection`" +msgstr "" + +#: aiogram.methods.get_business_connection.GetBusinessConnection:1 of +msgid "" +"Use this method to get information about the connection of the bot with a" +" business account. Returns a " +":class:`aiogram.types.business_connection.BusinessConnection` object on " +"success." +msgstr "" + +#: aiogram.methods.get_business_connection.GetBusinessConnection:3 of +msgid "Source: https://core.telegram.org/bots/api#getbusinessconnection" +msgstr "" + +#: ../../docstring +#: aiogram.methods.get_business_connection.GetBusinessConnection.business_connection_id:1 +#: of +msgid "Unique identifier of the business connection" +msgstr "" + +#: ../../api/methods/get_business_connection.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/get_business_connection.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/get_business_connection.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/get_business_connection.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/get_business_connection.rst:30 +msgid "" +":code:`from aiogram.methods.get_business_connection import " +"GetBusinessConnection`" +msgstr "" + +#: ../../api/methods/get_business_connection.rst:31 +msgid "alias: :code:`from aiogram.methods import GetBusinessConnection`" +msgstr "" + +#: ../../api/methods/get_business_connection.rst:34 +msgid "With specific bot" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat.po index 7b5cefe9..0e3004cd 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,13 +22,13 @@ msgid "getChat" msgstr "" #: ../../api/methods/get_chat.rst:5 -msgid "Returns: :obj:`Chat`" +msgid "Returns: :obj:`ChatFullInfo`" msgstr "" #: aiogram.methods.get_chat.GetChat:1 of msgid "" -"Use this method to get up to date information about the chat. Returns a " -":class:`aiogram.types.chat.Chat` object on success." +"Use this method to get up-to-date information about the chat. Returns a " +":class:`aiogram.types.chat_full_info.ChatFullInfo` object on success." msgstr "" #: aiogram.methods.get_chat.GetChat:3 of @@ -78,3 +78,13 @@ msgstr "" #~ "Returns a :class:`aiogram.types.chat.Chat` object" #~ " on success." #~ msgstr "" + +#~ msgid "Returns: :obj:`Chat`" +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to get up to " +#~ "date information about the chat. Returns" +#~ " a :class:`aiogram.types.chat.Chat` object on " +#~ "success." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_administrators.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_administrators.po index 7700abdc..fbff4913 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_administrators.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_administrators.po @@ -8,24 +8,21 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-23 00:47+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/get_chat_administrators.rst:3 msgid "getChatAdministrators" msgstr "" #: ../../api/methods/get_chat_administrators.rst:5 -msgid "" -"Returns: :obj:`List[Union[ChatMemberOwner, ChatMemberAdministrator, " -"ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, " -"ChatMemberBanned]]`" +msgid "Returns: :obj:`list[ResultChatMemberUnion]`" msgstr "" #: aiogram.methods.get_chat_administrators.GetChatAdministrators:1 of @@ -46,40 +43,46 @@ msgid "" "supergroup or channel (in the format :code:`@channelusername`)" msgstr "" -#: ../../api/methods/get_chat_administrators.rst:14 +#: ../../api/methods/get_chat_administrators.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/get_chat_administrators.rst:17 +#: ../../api/methods/get_chat_administrators.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/get_chat_administrators.rst:25 +#: ../../api/methods/get_chat_administrators.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/get_chat_administrators.rst:27 +#: ../../api/methods/get_chat_administrators.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/get_chat_administrators.rst:29 +#: ../../api/methods/get_chat_administrators.rst:30 msgid "" ":code:`from aiogram.methods.get_chat_administrators import " "GetChatAdministrators`" msgstr "" -#: ../../api/methods/get_chat_administrators.rst:30 +#: ../../api/methods/get_chat_administrators.rst:31 msgid "alias: :code:`from aiogram.methods import GetChatAdministrators`" msgstr "" -#: ../../api/methods/get_chat_administrators.rst:33 +#: ../../api/methods/get_chat_administrators.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/get_chat_administrators.rst:43 +#: ../../api/methods/get_chat_administrators.rst:44 msgid "As shortcut from received object" msgstr "" -#: ../../api/methods/get_chat_administrators.rst:45 +#: ../../api/methods/get_chat_administrators.rst:46 msgid ":meth:`aiogram.types.chat.Chat.get_administrators`" msgstr "" + +#~ msgid "" +#~ "Returns: :obj:`List[Union[ChatMemberOwner, " +#~ "ChatMemberAdministrator, ChatMemberMember, " +#~ "ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]]`" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_member.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_member.po index d3bff554..f30482e6 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_member.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_member.po @@ -8,24 +8,21 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-02-12 00:22+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.9.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/get_chat_member.rst:3 msgid "getChatMember" msgstr "" #: ../../api/methods/get_chat_member.rst:5 -msgid "" -"Returns: :obj:`Union[ChatMemberOwner, ChatMemberAdministrator, " -"ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, " -"ChatMemberBanned]`" +msgid "Returns: :obj:`ResultChatMemberUnion`" msgstr "" #: aiogram.methods.get_chat_member.GetChatMember:1 of @@ -50,39 +47,39 @@ msgstr "" msgid "Unique identifier of the target user" msgstr "" -#: ../../api/methods/get_chat_member.rst:14 +#: ../../api/methods/get_chat_member.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/get_chat_member.rst:17 +#: ../../api/methods/get_chat_member.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/get_chat_member.rst:25 +#: ../../api/methods/get_chat_member.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/get_chat_member.rst:27 +#: ../../api/methods/get_chat_member.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/get_chat_member.rst:29 +#: ../../api/methods/get_chat_member.rst:30 msgid ":code:`from aiogram.methods.get_chat_member import GetChatMember`" msgstr "" -#: ../../api/methods/get_chat_member.rst:30 +#: ../../api/methods/get_chat_member.rst:31 msgid "alias: :code:`from aiogram.methods import GetChatMember`" msgstr "" -#: ../../api/methods/get_chat_member.rst:33 +#: ../../api/methods/get_chat_member.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/get_chat_member.rst:43 +#: ../../api/methods/get_chat_member.rst:44 msgid "As shortcut from received object" msgstr "" -#: ../../api/methods/get_chat_member.rst:45 +#: ../../api/methods/get_chat_member.rst:46 msgid ":meth:`aiogram.types.chat.Chat.get_member`" msgstr "" @@ -96,3 +93,8 @@ msgstr "" #~ " object on success." #~ msgstr "" +#~ msgid "" +#~ "Returns: :obj:`Union[ChatMemberOwner, " +#~ "ChatMemberAdministrator, ChatMemberMember, " +#~ "ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]`" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_menu_button.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_menu_button.po index 0f5e608b..25d977f4 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_menu_button.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_chat_menu_button.po @@ -8,23 +8,21 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/get_chat_menu_button.rst:3 msgid "getChatMenuButton" msgstr "" #: ../../api/methods/get_chat_menu_button.rst:5 -msgid "" -"Returns: :obj:`Union[MenuButtonDefault, MenuButtonWebApp, " -"MenuButtonCommands]`" +msgid "Returns: :obj:`ResultMenuButtonUnion`" msgstr "" #: aiogram.methods.get_chat_menu_button.GetChatMenuButton:1 of @@ -45,33 +43,38 @@ msgid "" "bot's menu button will be returned" msgstr "" -#: ../../api/methods/get_chat_menu_button.rst:14 +#: ../../api/methods/get_chat_menu_button.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/get_chat_menu_button.rst:17 +#: ../../api/methods/get_chat_menu_button.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/get_chat_menu_button.rst:25 +#: ../../api/methods/get_chat_menu_button.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/get_chat_menu_button.rst:27 +#: ../../api/methods/get_chat_menu_button.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/get_chat_menu_button.rst:29 +#: ../../api/methods/get_chat_menu_button.rst:30 msgid ":code:`from aiogram.methods.get_chat_menu_button import GetChatMenuButton`" msgstr "" -#: ../../api/methods/get_chat_menu_button.rst:30 +#: ../../api/methods/get_chat_menu_button.rst:31 msgid "alias: :code:`from aiogram.methods import GetChatMenuButton`" msgstr "" -#: ../../api/methods/get_chat_menu_button.rst:33 +#: ../../api/methods/get_chat_menu_button.rst:34 msgid "With specific bot" msgstr "" #~ msgid "Returns: :obj:`MenuButton`" #~ msgstr "" + +#~ msgid "" +#~ "Returns: :obj:`Union[MenuButtonDefault, MenuButtonWebApp," +#~ " MenuButtonCommands]`" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_custom_emoji_stickers.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_custom_emoji_stickers.po index 421e077e..8dccedec 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_custom_emoji_stickers.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_custom_emoji_stickers.po @@ -8,21 +8,21 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/get_custom_emoji_stickers.rst:3 msgid "getCustomEmojiStickers" msgstr "" #: ../../api/methods/get_custom_emoji_stickers.rst:5 -msgid "Returns: :obj:`List[Sticker]`" +msgid "Returns: :obj:`list[Sticker]`" msgstr "" #: aiogram.methods.get_custom_emoji_stickers.GetCustomEmojiStickers:1 of @@ -40,36 +40,45 @@ msgstr "" #: aiogram.methods.get_custom_emoji_stickers.GetCustomEmojiStickers.custom_emoji_ids:1 #: of msgid "" -"List of custom emoji identifiers. At most 200 custom emoji identifiers " -"can be specified." +"A JSON-serialized list of custom emoji identifiers. At most 200 custom " +"emoji identifiers can be specified." msgstr "" -#: ../../api/methods/get_custom_emoji_stickers.rst:14 +#: ../../api/methods/get_custom_emoji_stickers.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/get_custom_emoji_stickers.rst:17 +#: ../../api/methods/get_custom_emoji_stickers.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/get_custom_emoji_stickers.rst:25 +#: ../../api/methods/get_custom_emoji_stickers.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/get_custom_emoji_stickers.rst:27 +#: ../../api/methods/get_custom_emoji_stickers.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/get_custom_emoji_stickers.rst:29 +#: ../../api/methods/get_custom_emoji_stickers.rst:30 msgid "" ":code:`from aiogram.methods.get_custom_emoji_stickers import " "GetCustomEmojiStickers`" msgstr "" -#: ../../api/methods/get_custom_emoji_stickers.rst:30 +#: ../../api/methods/get_custom_emoji_stickers.rst:31 msgid "alias: :code:`from aiogram.methods import GetCustomEmojiStickers`" msgstr "" -#: ../../api/methods/get_custom_emoji_stickers.rst:33 +#: ../../api/methods/get_custom_emoji_stickers.rst:34 msgid "With specific bot" msgstr "" + +#~ msgid "Returns: :obj:`List[Sticker]`" +#~ msgstr "" + +#~ msgid "" +#~ "List of custom emoji identifiers. At " +#~ "most 200 custom emoji identifiers can" +#~ " be specified." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_forum_topic_icon_stickers.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_forum_topic_icon_stickers.po index 7719981e..adc14b9d 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_forum_topic_icon_stickers.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_forum_topic_icon_stickers.po @@ -8,21 +8,21 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/get_forum_topic_icon_stickers.rst:3 msgid "getForumTopicIconStickers" msgstr "" #: ../../api/methods/get_forum_topic_icon_stickers.rst:5 -msgid "Returns: :obj:`List[Sticker]`" +msgid "Returns: :obj:`list[Sticker]`" msgstr "" #: aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers:1 of @@ -36,32 +36,35 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#getforumtopiciconstickers" msgstr "" -#: ../../api/methods/get_forum_topic_icon_stickers.rst:14 +#: ../../api/methods/get_forum_topic_icon_stickers.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/get_forum_topic_icon_stickers.rst:17 +#: ../../api/methods/get_forum_topic_icon_stickers.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/get_forum_topic_icon_stickers.rst:25 +#: ../../api/methods/get_forum_topic_icon_stickers.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/get_forum_topic_icon_stickers.rst:27 +#: ../../api/methods/get_forum_topic_icon_stickers.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/get_forum_topic_icon_stickers.rst:29 +#: ../../api/methods/get_forum_topic_icon_stickers.rst:30 msgid "" ":code:`from aiogram.methods.get_forum_topic_icon_stickers import " "GetForumTopicIconStickers`" msgstr "" -#: ../../api/methods/get_forum_topic_icon_stickers.rst:30 +#: ../../api/methods/get_forum_topic_icon_stickers.rst:31 msgid "alias: :code:`from aiogram.methods import GetForumTopicIconStickers`" msgstr "" -#: ../../api/methods/get_forum_topic_icon_stickers.rst:33 +#: ../../api/methods/get_forum_topic_icon_stickers.rst:34 msgid "With specific bot" msgstr "" + +#~ msgid "Returns: :obj:`List[Sticker]`" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_game_high_scores.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_game_high_scores.po index 192b0486..b879e1ca 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_game_high_scores.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_game_high_scores.po @@ -8,21 +8,21 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/get_game_high_scores.rst:3 msgid "getGameHighScores" msgstr "" #: ../../api/methods/get_game_high_scores.rst:5 -msgid "Returns: :obj:`List[GameHighScore]`" +msgid "Returns: :obj:`list[GameHighScore]`" msgstr "" #: aiogram.methods.get_game_high_scores.GetGameHighScores:1 of @@ -71,30 +71,33 @@ msgid "" "the inline message" msgstr "" -#: ../../api/methods/get_game_high_scores.rst:14 +#: ../../api/methods/get_game_high_scores.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/get_game_high_scores.rst:17 +#: ../../api/methods/get_game_high_scores.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/get_game_high_scores.rst:25 +#: ../../api/methods/get_game_high_scores.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/get_game_high_scores.rst:27 +#: ../../api/methods/get_game_high_scores.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/get_game_high_scores.rst:29 +#: ../../api/methods/get_game_high_scores.rst:30 msgid ":code:`from aiogram.methods.get_game_high_scores import GetGameHighScores`" msgstr "" -#: ../../api/methods/get_game_high_scores.rst:30 +#: ../../api/methods/get_game_high_scores.rst:31 msgid "alias: :code:`from aiogram.methods import GetGameHighScores`" msgstr "" -#: ../../api/methods/get_game_high_scores.rst:33 +#: ../../api/methods/get_game_high_scores.rst:34 msgid "With specific bot" msgstr "" + +#~ msgid "Returns: :obj:`List[GameHighScore]`" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_my_commands.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_my_commands.po index 1f59318d..f1d5cc1b 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_my_commands.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_my_commands.po @@ -8,21 +8,21 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/get_my_commands.rst:3 msgid "getMyCommands" msgstr "" #: ../../api/methods/get_my_commands.rst:5 -msgid "Returns: :obj:`List[BotCommand]`" +msgid "Returns: :obj:`list[BotCommand]`" msgstr "" #: aiogram.methods.get_my_commands.GetMyCommands:1 of @@ -48,30 +48,33 @@ msgstr "" msgid "A two-letter ISO 639-1 language code or an empty string" msgstr "" -#: ../../api/methods/get_my_commands.rst:14 +#: ../../api/methods/get_my_commands.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/get_my_commands.rst:17 +#: ../../api/methods/get_my_commands.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/get_my_commands.rst:25 +#: ../../api/methods/get_my_commands.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/get_my_commands.rst:27 +#: ../../api/methods/get_my_commands.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/get_my_commands.rst:29 +#: ../../api/methods/get_my_commands.rst:30 msgid ":code:`from aiogram.methods.get_my_commands import GetMyCommands`" msgstr "" -#: ../../api/methods/get_my_commands.rst:30 +#: ../../api/methods/get_my_commands.rst:31 msgid "alias: :code:`from aiogram.methods import GetMyCommands`" msgstr "" -#: ../../api/methods/get_my_commands.rst:33 +#: ../../api/methods/get_my_commands.rst:34 msgid "With specific bot" msgstr "" + +#~ msgid "Returns: :obj:`List[BotCommand]`" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_star_transactions.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_star_transactions.po new file mode 100644 index 00000000..61005386 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_star_transactions.po @@ -0,0 +1,82 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/get_star_transactions.rst:3 +msgid "getStarTransactions" +msgstr "" + +#: ../../api/methods/get_star_transactions.rst:5 +msgid "Returns: :obj:`StarTransactions`" +msgstr "" + +#: aiogram.methods.get_star_transactions.GetStarTransactions:1 of +msgid "" +"Returns the bot's Telegram Star transactions in chronological order. On " +"success, returns a " +":class:`aiogram.types.star_transactions.StarTransactions` object." +msgstr "" + +#: aiogram.methods.get_star_transactions.GetStarTransactions:3 of +msgid "Source: https://core.telegram.org/bots/api#getstartransactions" +msgstr "" + +#: ../../docstring +#: aiogram.methods.get_star_transactions.GetStarTransactions.offset:1 of +msgid "Number of transactions to skip in the response" +msgstr "" + +#: ../../docstring +#: aiogram.methods.get_star_transactions.GetStarTransactions.limit:1 of +msgid "" +"The maximum number of transactions to be retrieved. Values between 1-100 " +"are accepted. Defaults to 100." +msgstr "" + +#: ../../api/methods/get_star_transactions.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/get_star_transactions.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/get_star_transactions.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/get_star_transactions.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/get_star_transactions.rst:30 +msgid "" +":code:`from aiogram.methods.get_star_transactions import " +"GetStarTransactions`" +msgstr "" + +#: ../../api/methods/get_star_transactions.rst:31 +msgid "alias: :code:`from aiogram.methods import GetStarTransactions`" +msgstr "" + +#: ../../api/methods/get_star_transactions.rst:34 +msgid "With specific bot" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_updates.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_updates.po index 31206de3..d662c7a0 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_updates.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_updates.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,7 +22,7 @@ msgid "getUpdates" msgstr "" #: ../../api/methods/get_updates.rst:5 -msgid "Returns: :obj:`List[Update]`" +msgid "Returns: :obj:`list[Update]`" msgstr "" #: aiogram.methods.get_updates.GetUpdates:1 of @@ -160,3 +160,6 @@ msgstr "" #~ "(default). If not specified, the " #~ "previous setting will be used." #~ msgstr "" + +#~ msgid "Returns: :obj:`List[Update]`" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/pin_chat_message.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/pin_chat_message.po index 9a1e84e4..99a25088 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/pin_chat_message.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/pin_chat_message.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-23 00:47+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/pin_chat_message.rst:3 msgid "pinChatMessage" @@ -49,6 +49,13 @@ msgstr "" msgid "Identifier of a message to pin" msgstr "" +#: ../../docstring +#: aiogram.methods.pin_chat_message.PinChatMessage.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be pinned" +msgstr "" + #: ../../docstring #: aiogram.methods.pin_chat_message.PinChatMessage.disable_notification:1 of msgid "" @@ -57,49 +64,49 @@ msgid "" "disabled in channels and private chats." msgstr "" -#: ../../api/methods/pin_chat_message.rst:14 +#: ../../api/methods/pin_chat_message.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/pin_chat_message.rst:17 +#: ../../api/methods/pin_chat_message.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/pin_chat_message.rst:25 +#: ../../api/methods/pin_chat_message.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/pin_chat_message.rst:27 +#: ../../api/methods/pin_chat_message.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/pin_chat_message.rst:29 +#: ../../api/methods/pin_chat_message.rst:30 msgid ":code:`from aiogram.methods.pin_chat_message import PinChatMessage`" msgstr "" -#: ../../api/methods/pin_chat_message.rst:30 +#: ../../api/methods/pin_chat_message.rst:31 msgid "alias: :code:`from aiogram.methods import PinChatMessage`" msgstr "" -#: ../../api/methods/pin_chat_message.rst:33 +#: ../../api/methods/pin_chat_message.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/pin_chat_message.rst:40 +#: ../../api/methods/pin_chat_message.rst:41 msgid "As reply into Webhook in handler" msgstr "" -#: ../../api/methods/pin_chat_message.rst:48 +#: ../../api/methods/pin_chat_message.rst:49 msgid "As shortcut from received object" msgstr "" -#: ../../api/methods/pin_chat_message.rst:50 -msgid ":meth:`aiogram.types.message.Message.pin`" -msgstr "" - #: ../../api/methods/pin_chat_message.rst:51 msgid ":meth:`aiogram.types.chat.Chat.pin_message`" msgstr "" +#: ../../api/methods/pin_chat_message.rst:52 +msgid ":meth:`aiogram.types.message.Message.pin`" +msgstr "" + #~ msgid "As message method" #~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/promote_chat_member.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/promote_chat_member.po index def69532..e7afbfd6 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/promote_chat_member.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/promote_chat_member.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-29 02:16+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -57,10 +57,10 @@ msgstr "" #: ../../docstring #: aiogram.methods.promote_chat_member.PromoteChatMember.can_manage_chat:1 of msgid "" -"Pass :code:`True` if the administrator can access the chat event log, " -"boost list in channels, see channel members, report spam messages, see " -"anonymous administrators in supergroups and ignore slow mode. Implied by " -"any other administrator privilege" +"Pass :code:`True` if the administrator can access the chat event log, get" +" boost list, see hidden supergroup and channel members, report spam " +"messages and ignore slow mode. Implied by any other administrator " +"privilege." msgstr "" #: ../../docstring @@ -105,37 +105,17 @@ msgstr "" msgid "Pass :code:`True` if the administrator can invite new users to the chat" msgstr "" -#: ../../docstring -#: aiogram.methods.promote_chat_member.PromoteChatMember.can_post_messages:1 of -msgid "" -"Pass :code:`True` if the administrator can post messages in the channel, " -"or access channel statistics; channels only" -msgstr "" - -#: ../../docstring -#: aiogram.methods.promote_chat_member.PromoteChatMember.can_edit_messages:1 of -msgid "" -"Pass :code:`True` if the administrator can edit messages of other users " -"and can pin messages; channels only" -msgstr "" - -#: ../../docstring -#: aiogram.methods.promote_chat_member.PromoteChatMember.can_pin_messages:1 of -msgid "Pass :code:`True` if the administrator can pin messages, supergroups only" -msgstr "" - #: ../../docstring #: aiogram.methods.promote_chat_member.PromoteChatMember.can_post_stories:1 of -msgid "" -"Pass :code:`True` if the administrator can post stories in the channel; " -"channels only" +msgid "Pass :code:`True` if the administrator can post stories to the chat" msgstr "" #: ../../docstring #: aiogram.methods.promote_chat_member.PromoteChatMember.can_edit_stories:1 of msgid "" "Pass :code:`True` if the administrator can edit stories posted by other " -"users; channels only" +"users, post stories to the chat page, pin chat stories, and access the " +"chat's story archive" msgstr "" #: ../../docstring @@ -143,14 +123,35 @@ msgstr "" #: of msgid "" "Pass :code:`True` if the administrator can delete stories posted by other" -" users; channels only" +" users" +msgstr "" + +#: ../../docstring +#: aiogram.methods.promote_chat_member.PromoteChatMember.can_post_messages:1 of +msgid "" +"Pass :code:`True` if the administrator can post messages in the channel, " +"or access channel statistics; for channels only" +msgstr "" + +#: ../../docstring +#: aiogram.methods.promote_chat_member.PromoteChatMember.can_edit_messages:1 of +msgid "" +"Pass :code:`True` if the administrator can edit messages of other users " +"and can pin messages; for channels only" +msgstr "" + +#: ../../docstring +#: aiogram.methods.promote_chat_member.PromoteChatMember.can_pin_messages:1 of +msgid "" +"Pass :code:`True` if the administrator can pin messages; for supergroups " +"only" msgstr "" #: ../../docstring #: aiogram.methods.promote_chat_member.PromoteChatMember.can_manage_topics:1 of msgid "" "Pass :code:`True` if the user is allowed to create, rename, close, and " -"reopen forum topics, supergroups only" +"reopen forum topics; for supergroups only" msgstr "" #: ../../api/methods/promote_chat_member.rst:15 @@ -229,3 +230,55 @@ msgstr "" #~ "can restrict, ban or unban chat " #~ "members" #~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can access the chat event log, " +#~ "boost list in channels, see channel " +#~ "members, report spam messages, see " +#~ "anonymous administrators in supergroups and" +#~ " ignore slow mode. Implied by any " +#~ "other administrator privilege" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can post messages in the channel, " +#~ "or access channel statistics; channels " +#~ "only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can edit messages of other users " +#~ "and can pin messages; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can pin messages, supergroups only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can post stories in the channel; " +#~ "channels only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can edit stories posted by other " +#~ "users; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can delete stories posted by other " +#~ "users; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the user is " +#~ "allowed to create, rename, close, and" +#~ " reopen forum topics, supergroups only" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/refund_star_payment.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/refund_star_payment.po new file mode 100644 index 00000000..f804cf14 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/refund_star_payment.po @@ -0,0 +1,82 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/refund_star_payment.rst:3 +msgid "refundStarPayment" +msgstr "" + +#: ../../api/methods/refund_star_payment.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.refund_star_payment.RefundStarPayment:1 of +msgid "" +"Refunds a successful payment in `Telegram Stars " +"`_. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.refund_star_payment.RefundStarPayment:3 of +msgid "Source: https://core.telegram.org/bots/api#refundstarpayment" +msgstr "" + +#: ../../docstring +#: aiogram.methods.refund_star_payment.RefundStarPayment.user_id:1 of +msgid "Identifier of the user whose payment will be refunded" +msgstr "" + +#: ../../docstring +#: aiogram.methods.refund_star_payment.RefundStarPayment.telegram_payment_charge_id:1 +#: of +msgid "Telegram payment identifier" +msgstr "" + +#: ../../api/methods/refund_star_payment.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/refund_star_payment.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/refund_star_payment.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/refund_star_payment.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/refund_star_payment.rst:30 +msgid ":code:`from aiogram.methods.refund_star_payment import RefundStarPayment`" +msgstr "" + +#: ../../api/methods/refund_star_payment.rst:31 +msgid "alias: :code:`from aiogram.methods import RefundStarPayment`" +msgstr "" + +#: ../../api/methods/refund_star_payment.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/refund_star_payment.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/remove_chat_verification.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/remove_chat_verification.po new file mode 100644 index 00000000..faa65d98 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/remove_chat_verification.po @@ -0,0 +1,81 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/remove_chat_verification.rst:3 +msgid "removeChatVerification" +msgstr "" + +#: ../../api/methods/remove_chat_verification.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.remove_chat_verification.RemoveChatVerification:1 of +msgid "" +"Removes verification from a chat that is currently verified `on behalf of" +" the organization `_ represented by the bot. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.remove_chat_verification.RemoveChatVerification:3 of +msgid "Source: https://core.telegram.org/bots/api#removechatverification" +msgstr "" + +#: ../../docstring +#: aiogram.methods.remove_chat_verification.RemoveChatVerification.chat_id:1 of +msgid "" +"Unique identifier for the target chat or username of the target channel " +"(in the format :code:`@channelusername`)" +msgstr "" + +#: ../../api/methods/remove_chat_verification.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/remove_chat_verification.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/remove_chat_verification.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/remove_chat_verification.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/remove_chat_verification.rst:30 +msgid "" +":code:`from aiogram.methods.remove_chat_verification import " +"RemoveChatVerification`" +msgstr "" + +#: ../../api/methods/remove_chat_verification.rst:31 +msgid "alias: :code:`from aiogram.methods import RemoveChatVerification`" +msgstr "" + +#: ../../api/methods/remove_chat_verification.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/remove_chat_verification.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/remove_user_verification.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/remove_user_verification.po new file mode 100644 index 00000000..bf17b590 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/remove_user_verification.po @@ -0,0 +1,79 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/remove_user_verification.rst:3 +msgid "removeUserVerification" +msgstr "" + +#: ../../api/methods/remove_user_verification.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.remove_user_verification.RemoveUserVerification:1 of +msgid "" +"Removes verification from a user who is currently verified `on behalf of " +"the organization `_" +" represented by the bot. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.remove_user_verification.RemoveUserVerification:3 of +msgid "Source: https://core.telegram.org/bots/api#removeuserverification" +msgstr "" + +#: ../../docstring +#: aiogram.methods.remove_user_verification.RemoveUserVerification.user_id:1 of +msgid "Unique identifier of the target user" +msgstr "" + +#: ../../api/methods/remove_user_verification.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/remove_user_verification.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/remove_user_verification.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/remove_user_verification.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/remove_user_verification.rst:30 +msgid "" +":code:`from aiogram.methods.remove_user_verification import " +"RemoveUserVerification`" +msgstr "" + +#: ../../api/methods/remove_user_verification.rst:31 +msgid "alias: :code:`from aiogram.methods import RemoveUserVerification`" +msgstr "" + +#: ../../api/methods/remove_user_verification.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/remove_user_verification.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/replace_sticker_in_set.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/replace_sticker_in_set.po new file mode 100644 index 00000000..2482079e --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/replace_sticker_in_set.po @@ -0,0 +1,100 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/replace_sticker_in_set.rst:3 +msgid "replaceStickerInSet" +msgstr "" + +#: ../../api/methods/replace_sticker_in_set.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.replace_sticker_in_set.ReplaceStickerInSet:1 of +msgid "" +"Use this method to replace an existing sticker in a sticker set with a " +"new one. The method is equivalent to calling " +":class:`aiogram.methods.delete_sticker_from_set.DeleteStickerFromSet`, " +"then :class:`aiogram.methods.add_sticker_to_set.AddStickerToSet`, then " +":class:`aiogram.methods.set_sticker_position_in_set.SetStickerPositionInSet`." +" Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.replace_sticker_in_set.ReplaceStickerInSet:3 of +msgid "Source: https://core.telegram.org/bots/api#replacestickerinset" +msgstr "" + +#: ../../docstring +#: aiogram.methods.replace_sticker_in_set.ReplaceStickerInSet.user_id:1 of +msgid "User identifier of the sticker set owner" +msgstr "" + +#: ../../docstring +#: aiogram.methods.replace_sticker_in_set.ReplaceStickerInSet.name:1 of +msgid "Sticker set name" +msgstr "" + +#: ../../docstring +#: aiogram.methods.replace_sticker_in_set.ReplaceStickerInSet.old_sticker:1 of +msgid "File identifier of the replaced sticker" +msgstr "" + +#: ../../docstring +#: aiogram.methods.replace_sticker_in_set.ReplaceStickerInSet.sticker:1 of +msgid "" +"A JSON-serialized object with information about the added sticker. If " +"exactly the same sticker had already been added to the set, then the set " +"remains unchanged." +msgstr "" + +#: ../../api/methods/replace_sticker_in_set.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/replace_sticker_in_set.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/replace_sticker_in_set.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/replace_sticker_in_set.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/replace_sticker_in_set.rst:30 +msgid "" +":code:`from aiogram.methods.replace_sticker_in_set import " +"ReplaceStickerInSet`" +msgstr "" + +#: ../../api/methods/replace_sticker_in_set.rst:31 +msgid "alias: :code:`from aiogram.methods import ReplaceStickerInSet`" +msgstr "" + +#: ../../api/methods/replace_sticker_in_set.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/replace_sticker_in_set.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/save_prepared_inline_message.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/save_prepared_inline_message.po new file mode 100644 index 00000000..587b8605 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/save_prepared_inline_message.po @@ -0,0 +1,110 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/save_prepared_inline_message.rst:3 +msgid "savePreparedInlineMessage" +msgstr "" + +#: ../../api/methods/save_prepared_inline_message.rst:5 +msgid "Returns: :obj:`PreparedInlineMessage`" +msgstr "" + +#: aiogram.methods.save_prepared_inline_message.SavePreparedInlineMessage:1 of +msgid "" +"Stores a message that can be sent by a user of a Mini App. Returns a " +":class:`aiogram.types.prepared_inline_message.PreparedInlineMessage` " +"object." +msgstr "" + +#: aiogram.methods.save_prepared_inline_message.SavePreparedInlineMessage:3 of +msgid "Source: https://core.telegram.org/bots/api#savepreparedinlinemessage" +msgstr "" + +#: ../../docstring +#: aiogram.methods.save_prepared_inline_message.SavePreparedInlineMessage.user_id:1 +#: of +msgid "Unique identifier of the target user that can use the prepared message" +msgstr "" + +#: ../../docstring +#: aiogram.methods.save_prepared_inline_message.SavePreparedInlineMessage.result:1 +#: of +msgid "A JSON-serialized object describing the message to be sent" +msgstr "" + +#: ../../docstring +#: aiogram.methods.save_prepared_inline_message.SavePreparedInlineMessage.allow_user_chats:1 +#: of +msgid "Pass :code:`True` if the message can be sent to private chats with users" +msgstr "" + +#: ../../docstring +#: aiogram.methods.save_prepared_inline_message.SavePreparedInlineMessage.allow_bot_chats:1 +#: of +msgid "Pass :code:`True` if the message can be sent to private chats with bots" +msgstr "" + +#: ../../docstring +#: aiogram.methods.save_prepared_inline_message.SavePreparedInlineMessage.allow_group_chats:1 +#: of +msgid "Pass :code:`True` if the message can be sent to group and supergroup chats" +msgstr "" + +#: ../../docstring +#: aiogram.methods.save_prepared_inline_message.SavePreparedInlineMessage.allow_channel_chats:1 +#: of +msgid "Pass :code:`True` if the message can be sent to channel chats" +msgstr "" + +#: ../../api/methods/save_prepared_inline_message.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/save_prepared_inline_message.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/save_prepared_inline_message.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/save_prepared_inline_message.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/save_prepared_inline_message.rst:30 +msgid "" +":code:`from aiogram.methods.save_prepared_inline_message import " +"SavePreparedInlineMessage`" +msgstr "" + +#: ../../api/methods/save_prepared_inline_message.rst:31 +msgid "alias: :code:`from aiogram.methods import SavePreparedInlineMessage`" +msgstr "" + +#: ../../api/methods/save_prepared_inline_message.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/save_prepared_inline_message.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_animation.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_animation.po index 58e3e4f9..1a021d25 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_animation.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_animation.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -53,6 +53,13 @@ msgid "" "Sending Files » `" msgstr "" +#: ../../docstring +#: aiogram.methods.send_animation.SendAnimation.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring #: aiogram.methods.send_animation.SendAnimation.message_thread_id:1 of msgid "" @@ -104,6 +111,11 @@ msgid "" "which can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.methods.send_animation.SendAnimation.show_caption_above_media:1 of +msgid "Pass :code:`True`, if the caption must be shown above the message media" +msgstr "" + #: ../../docstring aiogram.methods.send_animation.SendAnimation.has_spoiler:1 #: of msgid "" @@ -123,6 +135,23 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring +#: aiogram.methods.send_animation.SendAnimation.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_animation.SendAnimation.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring #: aiogram.methods.send_animation.SendAnimation.reply_parameters:1 of msgid "Description of the message to reply to" @@ -135,7 +164,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -213,6 +242,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation`" msgstr "" +#: ../../api/methods/send_animation.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation`" +msgstr "" + +#: ../../api/methods/send_animation.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -223,3 +260,14 @@ msgstr "" #~ "to remove reply keyboard or to " #~ "force a reply from the user." #~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_audio.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_audio.po index a0415dbd..06a45597 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_audio.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_audio.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -54,6 +54,13 @@ msgid "" "Files » `" msgstr "" +#: ../../docstring +#: aiogram.methods.send_audio.SendAudio.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring aiogram.methods.send_audio.SendAudio.message_thread_id:1 of msgid "" "Unique identifier for the target message thread (topic) of the forum; for" @@ -112,6 +119,22 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring aiogram.methods.send_audio.SendAudio.allow_paid_broadcast:1 +#: of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_audio.SendAudio.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_audio.SendAudio.reply_parameters:1 of msgid "Description of the message to reply to" msgstr "" @@ -122,7 +145,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -199,6 +222,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio`" msgstr "" +#: ../../api/methods/send_audio.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio`" +msgstr "" + +#: ../../api/methods/send_audio.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -209,3 +240,14 @@ msgstr "" #~ "to remove reply keyboard or to " #~ "force a reply from the user." #~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_chat_action.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_chat_action.po index b379f03c..2577ab74 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_chat_action.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_chat_action.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-30 22:28+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/send_chat_action.rst:3 msgid "sendChatAction" @@ -77,46 +77,56 @@ msgid "" msgstr "" #: ../../docstring -#: aiogram.methods.send_chat_action.SendChatAction.message_thread_id:1 of -msgid "Unique identifier for the target message thread; supergroups only" +#: aiogram.methods.send_chat_action.SendChatAction.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"action will be sent" msgstr "" -#: ../../api/methods/send_chat_action.rst:14 +#: ../../docstring +#: aiogram.methods.send_chat_action.SendChatAction.message_thread_id:1 of +msgid "Unique identifier for the target message thread; for supergroups only" +msgstr "" + +#: ../../api/methods/send_chat_action.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/send_chat_action.rst:17 +#: ../../api/methods/send_chat_action.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/send_chat_action.rst:25 +#: ../../api/methods/send_chat_action.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/send_chat_action.rst:27 +#: ../../api/methods/send_chat_action.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/send_chat_action.rst:29 +#: ../../api/methods/send_chat_action.rst:30 msgid ":code:`from aiogram.methods.send_chat_action import SendChatAction`" msgstr "" -#: ../../api/methods/send_chat_action.rst:30 +#: ../../api/methods/send_chat_action.rst:31 msgid "alias: :code:`from aiogram.methods import SendChatAction`" msgstr "" -#: ../../api/methods/send_chat_action.rst:33 +#: ../../api/methods/send_chat_action.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/send_chat_action.rst:40 +#: ../../api/methods/send_chat_action.rst:41 msgid "As reply into Webhook in handler" msgstr "" -#: ../../api/methods/send_chat_action.rst:48 +#: ../../api/methods/send_chat_action.rst:49 msgid "As shortcut from received object" msgstr "" -#: ../../api/methods/send_chat_action.rst:50 +#: ../../api/methods/send_chat_action.rst:51 msgid ":meth:`aiogram.types.chat.Chat.do`" msgstr "" + +#~ msgid "Unique identifier for the target message thread; supergroups only" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_contact.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_contact.po index 126afc23..2a81ebd9 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_contact.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_contact.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -49,6 +49,13 @@ msgstr "" msgid "Contact's first name" msgstr "" +#: ../../docstring +#: aiogram.methods.send_contact.SendContact.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring aiogram.methods.send_contact.SendContact.message_thread_id:1 #: of msgid "" @@ -78,6 +85,23 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring +#: aiogram.methods.send_contact.SendContact.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_contact.SendContact.message_effect_id:1 +#: of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_contact.SendContact.reply_parameters:1 #: of msgid "Description of the message to reply to" @@ -89,7 +113,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -166,6 +190,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact`" msgstr "" +#: ../../api/methods/send_contact.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact`" +msgstr "" + +#: ../../api/methods/send_contact.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -176,3 +208,14 @@ msgstr "" #~ "to remove keyboard or to force a" #~ " reply from the user." #~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_dice.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_dice.po index c3f46936..aa7b7808 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_dice.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_dice.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -42,6 +42,13 @@ msgid "" "(in the format :code:`@channelusername`)" msgstr "" +#: ../../docstring aiogram.methods.send_dice.SendDice.business_connection_id:1 +#: of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring aiogram.methods.send_dice.SendDice.message_thread_id:1 of msgid "" "Unique identifier for the target message thread (topic) of the forum; for" @@ -66,6 +73,21 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding" msgstr "" +#: ../../docstring aiogram.methods.send_dice.SendDice.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_dice.SendDice.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_dice.SendDice.reply_parameters:1 of msgid "Description of the message to reply to" msgstr "" @@ -76,7 +98,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -151,3 +173,22 @@ msgstr "" #: ../../api/methods/send_dice.rst:55 msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice`" msgstr "" + +#: ../../api/methods/send_dice.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice`" +msgstr "" + +#: ../../api/methods/send_dice.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice`" +msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_document.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_document.po index 09b6ca22..267cb594 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_document.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_document.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -51,6 +51,13 @@ msgid "" "/form-data. :ref:`More information on Sending Files » `" msgstr "" +#: ../../docstring +#: aiogram.methods.send_document.SendDocument.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring #: aiogram.methods.send_document.SendDocument.message_thread_id:1 of msgid "" @@ -110,6 +117,23 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring +#: aiogram.methods.send_document.SendDocument.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_document.SendDocument.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring #: aiogram.methods.send_document.SendDocument.reply_parameters:1 of msgid "Description of the message to reply to" @@ -121,7 +145,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -198,6 +222,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document`" msgstr "" +#: ../../api/methods/send_document.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_document`" +msgstr "" + +#: ../../api/methods/send_document.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_document`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -208,3 +240,14 @@ msgstr "" #~ "to remove reply keyboard or to " #~ "force a reply from the user." #~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_game.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_game.po index b4fa3a5a..0d2188a6 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_game.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_game.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -45,6 +45,13 @@ msgid "" " up your games via `@BotFather `_." msgstr "" +#: ../../docstring aiogram.methods.send_game.SendGame.business_connection_id:1 +#: of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring aiogram.methods.send_game.SendGame.message_thread_id:1 of msgid "" "Unique identifier for the target message thread (topic) of the forum; for" @@ -61,6 +68,21 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring aiogram.methods.send_game.SendGame.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_game.SendGame.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_game.SendGame.reply_parameters:1 of msgid "Description of the message to reply to" msgstr "" @@ -146,6 +168,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game`" msgstr "" +#: ../../api/methods/send_game.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_game`" +msgstr "" + +#: ../../api/methods/send_game.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_game`" +msgstr "" + #~ msgid "" #~ "A JSON-serialized object for an " #~ "`inline keyboard , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/send_gift.rst:3 +msgid "sendGift" +msgstr "" + +#: ../../api/methods/send_gift.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.send_gift.SendGift:1 of +msgid "" +"Sends a gift to the given user or channel chat. The gift can't be " +"converted to Telegram Stars by the receiver. Returns :code:`True` on " +"success." +msgstr "" + +#: aiogram.methods.send_gift.SendGift:3 of +msgid "Source: https://core.telegram.org/bots/api#sendgift" +msgstr "" + +#: ../../docstring aiogram.methods.send_gift.SendGift.gift_id:1 of +msgid "Identifier of the gift" +msgstr "" + +#: ../../docstring aiogram.methods.send_gift.SendGift.user_id:1 of +msgid "" +"Required if *chat_id* is not specified. Unique identifier of the target " +"user who will receive the gift." +msgstr "" + +#: ../../docstring aiogram.methods.send_gift.SendGift.chat_id:1 of +msgid "" +"Required if *user_id* is not specified. Unique identifier for the chat or" +" username of the channel (in the format :code:`@channelusername`) that " +"will receive the gift." +msgstr "" + +#: ../../docstring aiogram.methods.send_gift.SendGift.pay_for_upgrade:1 of +msgid "" +"Pass :code:`True` to pay for the gift upgrade from the bot's balance, " +"thereby making the upgrade free for the receiver" +msgstr "" + +#: ../../docstring aiogram.methods.send_gift.SendGift.text:1 of +msgid "Text that will be shown along with the gift; 0-255 characters" +msgstr "" + +#: ../../docstring aiogram.methods.send_gift.SendGift.text_parse_mode:1 of +msgid "" +"Mode for parsing entities in the text. See `formatting options " +"`_ for more " +"details. Entities other than 'bold', 'italic', 'underline', " +"'strikethrough', 'spoiler', and 'custom_emoji' are ignored." +msgstr "" + +#: ../../docstring aiogram.methods.send_gift.SendGift.text_entities:1 of +msgid "" +"A JSON-serialized list of special entities that appear in the gift text. " +"It can be specified instead of *text_parse_mode*. Entities other than " +"'bold', 'italic', 'underline', 'strikethrough', 'spoiler', and " +"'custom_emoji' are ignored." +msgstr "" + +#: ../../api/methods/send_gift.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/send_gift.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/send_gift.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/send_gift.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/send_gift.rst:30 +msgid ":code:`from aiogram.methods.send_gift import SendGift`" +msgstr "" + +#: ../../api/methods/send_gift.rst:31 +msgid "alias: :code:`from aiogram.methods import SendGift`" +msgstr "" + +#: ../../api/methods/send_gift.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/send_gift.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_invoice.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_invoice.po index 649c9bf4..5ec56610 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_invoice.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_invoice.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,25 +52,22 @@ msgstr "" #: ../../docstring aiogram.methods.send_invoice.SendInvoice.payload:1 of msgid "" "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to " -"the user, use for your internal processes." -msgstr "" - -#: ../../docstring aiogram.methods.send_invoice.SendInvoice.provider_token:1 of -msgid "" -"Payment provider token, obtained via `@BotFather " -"`_" +"the user, use it for your internal processes." msgstr "" #: ../../docstring aiogram.methods.send_invoice.SendInvoice.currency:1 of msgid "" "Three-letter ISO 4217 currency code, see `more on currencies " -"`_" +"`_. Pass " +"'XTR' for payments in `Telegram Stars `_." msgstr "" #: ../../docstring aiogram.methods.send_invoice.SendInvoice.prices:1 of msgid "" "Price breakdown, a JSON-serialized list of components (e.g. product " -"price, tax, discount, delivery cost, delivery tax, bonus, etc.)" +"price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must " +"contain exactly one item for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring aiogram.methods.send_invoice.SendInvoice.message_thread_id:1 @@ -80,6 +77,13 @@ msgid "" " forum supergroups only" msgstr "" +#: ../../docstring aiogram.methods.send_invoice.SendInvoice.provider_token:1 of +msgid "" +"Payment provider token, obtained via `@BotFather " +"`_. Pass an empty string for payments in " +"`Telegram Stars `_." +msgstr "" + #: ../../docstring aiogram.methods.send_invoice.SendInvoice.max_tip_amount:1 of msgid "" "The maximum accepted amount for tips in the *smallest units* of the " @@ -88,7 +92,8 @@ msgid "" "parameter in `currencies.json " "`_, it shows the" " number of digits past the decimal point for each currency (2 for the " -"majority of currencies). Defaults to 0" +"majority of currencies). Defaults to 0. Not supported for payments in " +"`Telegram Stars `_." msgstr "" #: ../../docstring @@ -141,41 +146,53 @@ msgstr "" #: ../../docstring aiogram.methods.send_invoice.SendInvoice.need_name:1 of msgid "" "Pass :code:`True` if you require the user's full name to complete the " -"order" +"order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring aiogram.methods.send_invoice.SendInvoice.need_phone_number:1 #: of msgid "" "Pass :code:`True` if you require the user's phone number to complete the " -"order" +"order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring aiogram.methods.send_invoice.SendInvoice.need_email:1 of msgid "" "Pass :code:`True` if you require the user's email address to complete the" -" order" +" order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring #: aiogram.methods.send_invoice.SendInvoice.need_shipping_address:1 of msgid "" "Pass :code:`True` if you require the user's shipping address to complete " -"the order" +"the order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring #: aiogram.methods.send_invoice.SendInvoice.send_phone_number_to_provider:1 of -msgid "Pass :code:`True` if the user's phone number should be sent to provider" +msgid "" +"Pass :code:`True` if the user's phone number should be sent to the " +"provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring #: aiogram.methods.send_invoice.SendInvoice.send_email_to_provider:1 of -msgid "Pass :code:`True` if the user's email address should be sent to provider" +msgid "" +"Pass :code:`True` if the user's email address should be sent to the " +"provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring aiogram.methods.send_invoice.SendInvoice.is_flexible:1 of -msgid "Pass :code:`True` if the final price depends on the shipping method" +msgid "" +"Pass :code:`True` if the final price depends on the shipping method. " +"Ignored for payments in `Telegram Stars `_." msgstr "" #: ../../docstring @@ -190,6 +207,23 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring +#: aiogram.methods.send_invoice.SendInvoice.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_invoice.SendInvoice.message_effect_id:1 +#: of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_invoice.SendInvoice.reply_parameters:1 #: of msgid "Description of the message to reply to" @@ -277,6 +311,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice`" msgstr "" +#: ../../api/methods/send_invoice.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice`" +msgstr "" + +#: ../../api/methods/send_invoice.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice`" +msgstr "" + #~ msgid "" #~ "A JSON-serialized object for an " #~ "`inline keyboard `_" +#~ msgstr "" + +#~ msgid "" +#~ "Three-letter ISO 4217 currency code, " +#~ "see `more on currencies " +#~ "`_" +#~ msgstr "" + +#~ msgid "" +#~ "Price breakdown, a JSON-serialized list" +#~ " of components (e.g. product price, " +#~ "tax, discount, delivery cost, delivery " +#~ "tax, bonus, etc.)" +#~ msgstr "" + +#~ msgid "" +#~ "The maximum accepted amount for tips " +#~ "in the *smallest units* of the " +#~ "currency (integer, **not** float/double). For" +#~ " example, for a maximum tip of " +#~ ":code:`US$ 1.45` pass :code:`max_tip_amount =" +#~ " 145`. See the *exp* parameter in " +#~ "`currencies.json " +#~ "`_, it" +#~ " shows the number of digits past " +#~ "the decimal point for each currency " +#~ "(2 for the majority of currencies). " +#~ "Defaults to 0" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's full name to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's phone number to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's email address to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's shipping address to complete the" +#~ " order" +#~ msgstr "" + +#~ msgid "Pass :code:`True` if the user's phone number should be sent to provider" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the user's email" +#~ " address should be sent to provider" +#~ msgstr "" + +#~ msgid "Pass :code:`True` if the final price depends on the shipping method" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_location.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_location.po index 3a927369..ae398456 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_location.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_location.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -49,6 +49,13 @@ msgstr "" msgid "Longitude of the location" msgstr "" +#: ../../docstring +#: aiogram.methods.send_location.SendLocation.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring #: aiogram.methods.send_location.SendLocation.message_thread_id:1 of msgid "" @@ -63,9 +70,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_location.SendLocation.live_period:1 of msgid "" -"Period in seconds for which the location will be updated (see `Live " +"Period in seconds during which the location will be updated (see `Live " "Locations `_, should be between" -" 60 and 86400." +" 60 and 86400, or 0x7FFFFFFF for live locations that can be edited " +"indefinitely." msgstr "" #: ../../docstring aiogram.methods.send_location.SendLocation.heading:1 of @@ -94,6 +102,23 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring +#: aiogram.methods.send_location.SendLocation.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_location.SendLocation.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring #: aiogram.methods.send_location.SendLocation.reply_parameters:1 of msgid "Description of the message to reply to" @@ -105,7 +130,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -182,6 +207,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location`" msgstr "" +#: ../../api/methods/send_location.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_location`" +msgstr "" + +#: ../../api/methods/send_location.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_location`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -192,3 +225,21 @@ msgstr "" #~ "to remove reply keyboard or to " #~ "force a reply from the user." #~ msgstr "" + +#~ msgid "" +#~ "Period in seconds for which the " +#~ "location will be updated (see `Live " +#~ "Locations `_," +#~ " should be between 60 and 86400." +#~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_media_group.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_media_group.po index 236a48b3..f03a00a3 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_media_group.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_media_group.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,7 +22,7 @@ msgid "sendMediaGroup" msgstr "" #: ../../api/methods/send_media_group.rst:5 -msgid "Returns: :obj:`List[Message]`" +msgid "Returns: :obj:`list[Message]`" msgstr "" #: aiogram.methods.send_media_group.SendMediaGroup:1 of @@ -50,6 +50,13 @@ msgid "" " items" msgstr "" +#: ../../docstring +#: aiogram.methods.send_media_group.SendMediaGroup.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring #: aiogram.methods.send_media_group.SendMediaGroup.message_thread_id:1 of msgid "" @@ -69,6 +76,23 @@ msgstr "" msgid "Protects the contents of the sent messages from forwarding and saving" msgstr "" +#: ../../docstring +#: aiogram.methods.send_media_group.SendMediaGroup.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_media_group.SendMediaGroup.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring #: aiogram.methods.send_media_group.SendMediaGroup.reply_parameters:1 of msgid "Description of the message to reply to" @@ -148,3 +172,14 @@ msgstr "" #: ../../api/methods/send_media_group.rst:55 msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group`" msgstr "" + +#: ../../api/methods/send_media_group.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group`" +msgstr "" + +#: ../../api/methods/send_media_group.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group`" +msgstr "" + +#~ msgid "Returns: :obj:`List[Message]`" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_message.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_message.po index 043615d3..f4550d78 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_message.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_message.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -45,6 +45,13 @@ msgstr "" msgid "Text of the message to be sent, 1-4096 characters after entities parsing" msgstr "" +#: ../../docstring +#: aiogram.methods.send_message.SendMessage.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring aiogram.methods.send_message.SendMessage.message_thread_id:1 #: of msgid "" @@ -82,6 +89,23 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring +#: aiogram.methods.send_message.SendMessage.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_message.SendMessage.message_effect_id:1 +#: of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_message.SendMessage.reply_parameters:1 #: of msgid "Description of the message to reply to" @@ -93,7 +117,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -176,6 +200,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer`" msgstr "" +#: ../../api/methods/send_message.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer`" +msgstr "" + +#: ../../api/methods/send_message.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -186,3 +218,14 @@ msgstr "" #~ "to remove reply keyboard or to " #~ "force a reply from the user." #~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_paid_media.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_paid_media.po new file mode 100644 index 00000000..6dcc8925 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_paid_media.po @@ -0,0 +1,184 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/send_paid_media.rst:3 +msgid "sendPaidMedia" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:5 +msgid "Returns: :obj:`Message`" +msgstr "" + +#: aiogram.methods.send_paid_media.SendPaidMedia:1 of +msgid "" +"Use this method to send paid media. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.methods.send_paid_media.SendPaidMedia:3 of +msgid "Source: https://core.telegram.org/bots/api#sendpaidmedia" +msgstr "" + +#: ../../docstring aiogram.methods.send_paid_media.SendPaidMedia.chat_id:1 of +msgid "" +"Unique identifier for the target chat or username of the target channel " +"(in the format :code:`@channelusername`). If the chat is a channel, all " +"Telegram Star proceeds from this media will be credited to the chat's " +"balance. Otherwise, they will be credited to the bot's balance." +msgstr "" + +#: ../../docstring aiogram.methods.send_paid_media.SendPaidMedia.star_count:1 +#: of +msgid "" +"The number of Telegram Stars that must be paid to buy access to the " +"media; 1-2500" +msgstr "" + +#: ../../docstring aiogram.methods.send_paid_media.SendPaidMedia.media:1 of +msgid "A JSON-serialized array describing the media to be sent; up to 10 items" +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_paid_media.SendPaidMedia.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + +#: ../../docstring aiogram.methods.send_paid_media.SendPaidMedia.payload:1 of +msgid "" +"Bot-defined paid media payload, 0-128 bytes. This will not be displayed " +"to the user, use it for your internal processes." +msgstr "" + +#: ../../docstring aiogram.methods.send_paid_media.SendPaidMedia.caption:1 of +msgid "Media caption, 0-1024 characters after entities parsing" +msgstr "" + +#: ../../docstring aiogram.methods.send_paid_media.SendPaidMedia.parse_mode:1 +#: of +msgid "" +"Mode for parsing entities in the media caption. See `formatting options " +"`_ for more " +"details." +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_paid_media.SendPaidMedia.caption_entities:1 of +msgid "" +"A JSON-serialized list of special entities that appear in the caption, " +"which can be specified instead of *parse_mode*" +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_paid_media.SendPaidMedia.show_caption_above_media:1 of +msgid "Pass :code:`True`, if the caption must be shown above the message media" +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_paid_media.SendPaidMedia.disable_notification:1 of +msgid "" +"Sends the message `silently `_. Users will receive a notification with no sound." +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_paid_media.SendPaidMedia.protect_content:1 of +msgid "Protects the contents of the sent message from forwarding and saving" +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_paid_media.SendPaidMedia.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_paid_media.SendPaidMedia.reply_parameters:1 of +msgid "Description of the message to reply to" +msgstr "" + +#: ../../docstring aiogram.methods.send_paid_media.SendPaidMedia.reply_markup:1 +#: of +msgid "" +"Additional interface options. A JSON-serialized object for an `inline " +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove a reply keyboard or to force a reply from the user" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:30 +msgid ":code:`from aiogram.methods.send_paid_media import SendPaidMedia`" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:31 +msgid "alias: :code:`from aiogram.methods import SendPaidMedia`" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:49 +msgid "As shortcut from received object" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:51 +msgid ":meth:`aiogram.types.message.Message.answer_paid_media`" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:52 +msgid ":meth:`aiogram.types.message.Message.reply_paid_media`" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:53 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media`" +msgstr "" + +#: ../../api/methods/send_paid_media.rst:54 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media`" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_photo.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_photo.po index 1b3e7420..c24e0fea 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_photo.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_photo.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,6 +52,13 @@ msgid "" "files>`" msgstr "" +#: ../../docstring +#: aiogram.methods.send_photo.SendPhoto.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring aiogram.methods.send_photo.SendPhoto.message_thread_id:1 of msgid "" "Unique identifier for the target message thread (topic) of the forum; for" @@ -77,6 +84,11 @@ msgid "" "which can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.methods.send_photo.SendPhoto.show_caption_above_media:1 of +msgid "Pass :code:`True`, if the caption must be shown above the message media" +msgstr "" + #: ../../docstring aiogram.methods.send_photo.SendPhoto.has_spoiler:1 of msgid "" "Pass :code:`True` if the photo needs to be covered with a spoiler " @@ -94,6 +106,22 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring aiogram.methods.send_photo.SendPhoto.allow_paid_broadcast:1 +#: of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_photo.SendPhoto.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_photo.SendPhoto.reply_parameters:1 of msgid "Description of the message to reply to" msgstr "" @@ -104,7 +132,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -180,3 +208,22 @@ msgstr "" #: ../../api/methods/send_photo.rst:55 msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo`" msgstr "" + +#: ../../api/methods/send_photo.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo`" +msgstr "" + +#: ../../api/methods/send_photo.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo`" +msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_poll.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_poll.po index c78425d4..844a4b13 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_poll.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_poll.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -46,9 +46,14 @@ msgid "Poll question, 1-300 characters" msgstr "" #: ../../docstring aiogram.methods.send_poll.SendPoll.options:1 of +msgid "A JSON-serialized list of 2-10 answer options" +msgstr "" + +#: ../../docstring aiogram.methods.send_poll.SendPoll.business_connection_id:1 +#: of msgid "" -"A JSON-serialized list of answer options, 2-10 strings 1-100 characters " -"each" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" msgstr "" #: ../../docstring aiogram.methods.send_poll.SendPoll.message_thread_id:1 of @@ -57,6 +62,19 @@ msgid "" " forum supergroups only" msgstr "" +#: ../../docstring aiogram.methods.send_poll.SendPoll.question_parse_mode:1 of +msgid "" +"Mode for parsing entities in the question. See `formatting options " +"`_ for more " +"details. Currently, only custom emoji entities are allowed" +msgstr "" + +#: ../../docstring aiogram.methods.send_poll.SendPoll.question_entities:1 of +msgid "" +"A JSON-serialized list of special entities that appear in the poll " +"question. It can be specified instead of *question_parse_mode*" +msgstr "" + #: ../../docstring aiogram.methods.send_poll.SendPoll.is_anonymous:1 of msgid ":code:`True`, if the poll needs to be anonymous, defaults to :code:`True`" msgstr "" @@ -96,7 +114,7 @@ msgstr "" #: ../../docstring aiogram.methods.send_poll.SendPoll.explanation_entities:1 of msgid "" "A JSON-serialized list of special entities that appear in the poll " -"explanation, which can be specified instead of *parse_mode*" +"explanation. It can be specified instead of *explanation_parse_mode*" msgstr "" #: ../../docstring aiogram.methods.send_poll.SendPoll.open_period:1 of @@ -128,6 +146,21 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring aiogram.methods.send_poll.SendPoll.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_poll.SendPoll.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_poll.SendPoll.reply_parameters:1 of msgid "Description of the message to reply to" msgstr "" @@ -138,7 +171,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -214,6 +247,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll`" msgstr "" +#: ../../api/methods/send_poll.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll`" +msgstr "" + +#: ../../api/methods/send_poll.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -224,3 +265,27 @@ msgstr "" #~ "to remove reply keyboard or to " #~ "force a reply from the user." #~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized list of answer " +#~ "options, 2-10 strings 1-100 characters " +#~ "each" +#~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized list of special " +#~ "entities that appear in the poll " +#~ "explanation, which can be specified " +#~ "instead of *parse_mode*" +#~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_sticker.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_sticker.po index e821e146..c1326c45 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_sticker.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_sticker.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -48,10 +48,17 @@ msgstr "" msgid "" "Sticker to send. Pass a file_id as String to send a file that exists on " "the Telegram servers (recommended), pass an HTTP URL as a String for " -"Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP " -"or .TGS sticker using multipart/form-data. :ref:`More information on " -"Sending Files » `. Video stickers can only be sent by a " -"file_id. Animated stickers can't be sent via an HTTP URL." +"Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP," +" .TGS, or .WEBM sticker using multipart/form-data. :ref:`More information" +" on Sending Files » `. Video and animated stickers can't " +"be sent via an HTTP URL." +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_sticker.SendSticker.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" msgstr "" #: ../../docstring aiogram.methods.send_sticker.SendSticker.message_thread_id:1 @@ -77,6 +84,23 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring +#: aiogram.methods.send_sticker.SendSticker.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_sticker.SendSticker.message_effect_id:1 +#: of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_sticker.SendSticker.reply_parameters:1 #: of msgid "Description of the message to reply to" @@ -88,7 +112,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -165,6 +189,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker`" msgstr "" +#: ../../api/methods/send_sticker.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker`" +msgstr "" + +#: ../../api/methods/send_sticker.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -187,3 +219,30 @@ msgstr "" #~ "/form-data. :ref:`More information on " #~ "Sending Files » `" #~ msgstr "" + +#~ msgid "" +#~ "Sticker to send. Pass a file_id as" +#~ " String to send a file that " +#~ "exists on the Telegram servers " +#~ "(recommended), pass an HTTP URL as " +#~ "a String for Telegram to get a " +#~ ".WEBP sticker from the Internet, or " +#~ "upload a new .WEBP or .TGS sticker" +#~ " using multipart/form-data. :ref:`More " +#~ "information on Sending Files » " +#~ "`. Video stickers can only" +#~ " be sent by a file_id. Animated " +#~ "stickers can't be sent via an HTTP" +#~ " URL." +#~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_venue.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_venue.po index 52bbcb3f..458e9390 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_venue.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_venue.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -57,6 +57,13 @@ msgstr "" msgid "Address of the venue" msgstr "" +#: ../../docstring +#: aiogram.methods.send_venue.SendVenue.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring aiogram.methods.send_venue.SendVenue.message_thread_id:1 of msgid "" "Unique identifier for the target message thread (topic) of the forum; for" @@ -95,6 +102,22 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring aiogram.methods.send_venue.SendVenue.allow_paid_broadcast:1 +#: of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_venue.SendVenue.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_venue.SendVenue.reply_parameters:1 of msgid "Description of the message to reply to" msgstr "" @@ -105,7 +128,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -182,6 +205,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue`" msgstr "" +#: ../../api/methods/send_venue.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue`" +msgstr "" + +#: ../../api/methods/send_venue.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -192,3 +223,14 @@ msgstr "" #~ "to remove reply keyboard or to " #~ "force a reply from the user." #~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_video.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_video.po index 56983047..45d99121 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_video.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_video.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -54,6 +54,13 @@ msgid "" "files>`" msgstr "" +#: ../../docstring +#: aiogram.methods.send_video.SendVideo.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring aiogram.methods.send_video.SendVideo.message_thread_id:1 of msgid "" "Unique identifier for the target message thread (topic) of the forum; for" @@ -84,6 +91,20 @@ msgid "" "information on Sending Files » `" msgstr "" +#: ../../docstring aiogram.methods.send_video.SendVideo.cover:1 of +msgid "" +"Cover for the video in the message. Pass a file_id to send a file that " +"exists on the Telegram servers (recommended), pass an HTTP URL for " +"Telegram to get a file from the Internet, or pass " +"'attach://' to upload a new one using multipart/form-" +"data under name. :ref:`More information on Sending " +"Files » `" +msgstr "" + +#: ../../docstring aiogram.methods.send_video.SendVideo.start_timestamp:1 of +msgid "Start timestamp for the video in the message" +msgstr "" + #: ../../docstring aiogram.methods.send_video.SendVideo.caption:1 of msgid "" "Video caption (may also be used when resending videos by *file_id*), " @@ -103,6 +124,11 @@ msgid "" "which can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.methods.send_video.SendVideo.show_caption_above_media:1 of +msgid "Pass :code:`True`, if the caption must be shown above the message media" +msgstr "" + #: ../../docstring aiogram.methods.send_video.SendVideo.has_spoiler:1 of msgid "" "Pass :code:`True` if the video needs to be covered with a spoiler " @@ -124,6 +150,22 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring aiogram.methods.send_video.SendVideo.allow_paid_broadcast:1 +#: of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_video.SendVideo.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_video.SendVideo.reply_parameters:1 of msgid "Description of the message to reply to" msgstr "" @@ -134,7 +176,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -211,6 +253,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video`" msgstr "" +#: ../../api/methods/send_video.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_video`" +msgstr "" + +#: ../../api/methods/send_video.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_video`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -221,3 +271,14 @@ msgstr "" #~ "to remove reply keyboard or to " #~ "force a reply from the user." #~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_video_note.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_video_note.po index 241b6bf8..8495ce62 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_video_note.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_video_note.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,6 +52,13 @@ msgid "" "files>`. Sending video notes by a URL is currently unsupported" msgstr "" +#: ../../docstring +#: aiogram.methods.send_video_note.SendVideoNote.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring #: aiogram.methods.send_video_note.SendVideoNote.message_thread_id:1 of msgid "" @@ -91,6 +98,23 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring +#: aiogram.methods.send_video_note.SendVideoNote.allow_paid_broadcast:1 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring +#: aiogram.methods.send_video_note.SendVideoNote.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring #: aiogram.methods.send_video_note.SendVideoNote.reply_parameters:1 of msgid "Description of the message to reply to" @@ -103,7 +127,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -181,6 +205,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note`" msgstr "" +#: ../../api/methods/send_video_note.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note`" +msgstr "" + +#: ../../api/methods/send_video_note.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -191,3 +223,14 @@ msgstr "" #~ "to remove reply keyboard or to " #~ "force a reply from the user." #~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_voice.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_voice.po index 358a1615..a053c60e 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_voice.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_voice.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -29,8 +29,9 @@ msgstr "" msgid "" "Use this method to send audio files, if you want Telegram clients to " "display the file as a playable voice message. For this to work, your " -"audio must be in an .OGG file encoded with OPUS (other formats may be " -"sent as :class:`aiogram.types.audio.Audio` or " +"audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in" +" .M4A format (other formats may be sent as " +":class:`aiogram.types.audio.Audio` or " ":class:`aiogram.types.document.Document`). On success, the sent " ":class:`aiogram.types.message.Message` is returned. Bots can currently " "send voice messages of up to 50 MB in size, this limit may be changed in " @@ -56,6 +57,13 @@ msgid "" "files>`" msgstr "" +#: ../../docstring +#: aiogram.methods.send_voice.SendVoice.business_connection_id:1 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + #: ../../docstring aiogram.methods.send_voice.SendVoice.message_thread_id:1 of msgid "" "Unique identifier for the target message thread (topic) of the forum; for" @@ -94,6 +102,22 @@ msgstr "" msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" +#: ../../docstring aiogram.methods.send_voice.SendVoice.allow_paid_broadcast:1 +#: of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: ../../docstring aiogram.methods.send_voice.SendVoice.message_effect_id:1 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + #: ../../docstring aiogram.methods.send_voice.SendVoice.reply_parameters:1 of msgid "Description of the message to reply to" msgstr "" @@ -104,7 +128,7 @@ msgid "" "keyboard `_, " "`custom reply keyboard " "`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"remove a reply keyboard or to force a reply from the user" msgstr "" #: ../../docstring @@ -181,6 +205,14 @@ msgstr "" msgid ":meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice`" msgstr "" +#: ../../api/methods/send_voice.rst:56 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice`" +msgstr "" + +#: ../../api/methods/send_voice.rst:57 +msgid ":meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice`" +msgstr "" + #~ msgid "" #~ "Additional interface options. A JSON-" #~ "serialized object for an `inline " @@ -191,3 +223,31 @@ msgstr "" #~ "to remove reply keyboard or to " #~ "force a reply from the user." #~ msgstr "" + +#~ msgid "" +#~ "Use this method to send audio " +#~ "files, if you want Telegram clients " +#~ "to display the file as a playable" +#~ " voice message. For this to work, " +#~ "your audio must be in an .OGG " +#~ "file encoded with OPUS (other formats" +#~ " may be sent as " +#~ ":class:`aiogram.types.audio.Audio` or " +#~ ":class:`aiogram.types.document.Document`). On success, " +#~ "the sent :class:`aiogram.types.message.Message` is" +#~ " returned. Bots can currently send " +#~ "voice messages of up to 50 MB " +#~ "in size, this limit may be changed" +#~ " in the future." +#~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_message_reaction.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_message_reaction.po index 6f00ce61..748073fa 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_message_reaction.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_message_reaction.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -31,9 +31,10 @@ msgstr "" #: aiogram.methods.set_message_reaction.SetMessageReaction:1 of msgid "" "Use this method to change the chosen reactions on a message. Service " -"messages can't be reacted to. Automatically forwarded messages from a " -"channel to its discussion group have the same available reactions as " -"messages in the channel. Returns :code:`True` on success." +"messages of some types can't be reacted to. Automatically forwarded " +"messages from a channel to its discussion group have the same available " +"reactions as messages in the channel. Bots can't use paid reactions. " +"Returns :code:`True` on success." msgstr "" #: aiogram.methods.set_message_reaction.SetMessageReaction:3 of @@ -58,10 +59,11 @@ msgstr "" #: ../../docstring #: aiogram.methods.set_message_reaction.SetMessageReaction.reaction:1 of msgid "" -"New list of reaction types to set on the message. Currently, as non-" -"premium users, bots can set up to one reaction per message. A custom " -"emoji reaction can be used if it is either already present on the message" -" or explicitly allowed by chat administrators." +"A JSON-serialized list of reaction types to set on the message. " +"Currently, as non-premium users, bots can set up to one reaction per " +"message. A custom emoji reaction can be used if it is either already " +"present on the message or explicitly allowed by chat administrators. Paid" +" reactions can't be used by bots." msgstr "" #: ../../docstring @@ -110,3 +112,25 @@ msgstr "" #: ../../api/methods/set_message_reaction.rst:51 msgid ":meth:`aiogram.types.message.Message.react`" msgstr "" + +#~ msgid "" +#~ "Use this method to change the " +#~ "chosen reactions on a message. Service" +#~ " messages can't be reacted to. " +#~ "Automatically forwarded messages from a " +#~ "channel to its discussion group have " +#~ "the same available reactions as messages" +#~ " in the channel. Returns :code:`True` " +#~ "on success." +#~ msgstr "" + +#~ msgid "" +#~ "New list of reaction types to set" +#~ " on the message. Currently, as " +#~ "non-premium users, bots can set up" +#~ " to one reaction per message. A " +#~ "custom emoji reaction can be used " +#~ "if it is either already present on" +#~ " the message or explicitly allowed by" +#~ " chat administrators." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_sticker_set_thumbnail.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_sticker_set_thumbnail.po index c0d9b5ee..875a35cb 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_sticker_set_thumbnail.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_sticker_set_thumbnail.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-11 01:52+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.11.0\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/set_sticker_set_thumbnail.rst:3 msgid "setStickerSetThumbnail" @@ -47,6 +47,14 @@ msgstr "" msgid "User identifier of the sticker set owner" msgstr "" +#: ../../docstring +#: aiogram.methods.set_sticker_set_thumbnail.SetStickerSetThumbnail.format:1 of +msgid "" +"Format of the thumbnail, must be one of 'static' for a **.WEBP** or " +"**.PNG** image, 'animated' for a **.TGS** animation, or 'video' for a " +"**.WEBM** video" +msgstr "" + #: ../../docstring #: aiogram.methods.set_sticker_set_thumbnail.SetStickerSetThumbnail.thumbnail:1 #: of @@ -54,55 +62,93 @@ msgid "" "A **.WEBP** or **.PNG** image with the thumbnail, must be up to 128 " "kilobytes in size and have a width and height of exactly 100px, or a " "**.TGS** animation with a thumbnail up to 32 kilobytes in size (see " -"`https://core.telegram.org/stickers#animated-sticker-requirements " -"`_`https://core.telegram.org/stickers#animated-sticker-" -"requirements `_ for animated sticker technical requirements), or a " -"**WEBM** video with the thumbnail up to 32 kilobytes in size; see " -"`https://core.telegram.org/stickers#video-sticker-requirements " -"`_`https://core.telegram.org/stickers#video-sticker-" -"requirements `_ for video sticker technical requirements. Pass a " -"*file_id* as a String to send a file that already exists on the Telegram " -"servers, pass an HTTP URL as a String for Telegram to get a file from the" -" Internet, or upload a new one using multipart/form-data. :ref:`More " -"information on Sending Files » `. Animated and video " -"sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then " -"the thumbnail is dropped and the first sticker is used as the thumbnail." +"`https://core.telegram.org/stickers#animation-requirements " +"`_`https://core.telegram.org/stickers#animation-requirements" +" `_ for " +"animated sticker technical requirements), or a **.WEBM** video with the " +"thumbnail up to 32 kilobytes in size; see " +"`https://core.telegram.org/stickers#video-requirements " +"`_`https://core.telegram.org/stickers#video-requirements " +"`_ for video " +"sticker technical requirements. Pass a *file_id* as a String to send a " +"file that already exists on the Telegram servers, pass an HTTP URL as a " +"String for Telegram to get a file from the Internet, or upload a new one " +"using multipart/form-data. :ref:`More information on Sending Files » " +"`. Animated and video sticker set thumbnails can't be " +"uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the " +"first sticker is used as the thumbnail." msgstr "" -#: ../../api/methods/set_sticker_set_thumbnail.rst:14 +#: ../../api/methods/set_sticker_set_thumbnail.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/set_sticker_set_thumbnail.rst:17 +#: ../../api/methods/set_sticker_set_thumbnail.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/set_sticker_set_thumbnail.rst:25 +#: ../../api/methods/set_sticker_set_thumbnail.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/set_sticker_set_thumbnail.rst:27 +#: ../../api/methods/set_sticker_set_thumbnail.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/set_sticker_set_thumbnail.rst:29 +#: ../../api/methods/set_sticker_set_thumbnail.rst:30 msgid "" ":code:`from aiogram.methods.set_sticker_set_thumbnail import " "SetStickerSetThumbnail`" msgstr "" -#: ../../api/methods/set_sticker_set_thumbnail.rst:30 +#: ../../api/methods/set_sticker_set_thumbnail.rst:31 msgid "alias: :code:`from aiogram.methods import SetStickerSetThumbnail`" msgstr "" -#: ../../api/methods/set_sticker_set_thumbnail.rst:33 +#: ../../api/methods/set_sticker_set_thumbnail.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/set_sticker_set_thumbnail.rst:40 +#: ../../api/methods/set_sticker_set_thumbnail.rst:41 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A **.WEBP** or **.PNG** image with " +#~ "the thumbnail, must be up to 128" +#~ " kilobytes in size and have a " +#~ "width and height of exactly 100px, " +#~ "or a **.TGS** animation with a " +#~ "thumbnail up to 32 kilobytes in " +#~ "size (see `https://core.telegram.org/stickers#animated-" +#~ "sticker-requirements `_`https://core.telegram.org/stickers#animated-" +#~ "sticker-requirements `_ for animated" +#~ " sticker technical requirements), or a " +#~ "**WEBM** video with the thumbnail up " +#~ "to 32 kilobytes in size; see " +#~ "`https://core.telegram.org/stickers#video-sticker-" +#~ "requirements `_`https://core.telegram.org/stickers" +#~ "#video-sticker-requirements " +#~ "`_ for video sticker technical" +#~ " requirements. Pass a *file_id* as a" +#~ " String to send a file that " +#~ "already exists on the Telegram servers," +#~ " pass an HTTP URL as a String" +#~ " for Telegram to get a file " +#~ "from the Internet, or upload a new" +#~ " one using multipart/form-data. :ref:`More" +#~ " information on Sending Files » " +#~ "`. Animated and video " +#~ "sticker set thumbnails can't be uploaded" +#~ " via HTTP URL. If omitted, then " +#~ "the thumbnail is dropped and the " +#~ "first sticker is used as the " +#~ "thumbnail." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_user_emoji_status.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_user_emoji_status.po new file mode 100644 index 00000000..41373ae7 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_user_emoji_status.po @@ -0,0 +1,94 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/set_user_emoji_status.rst:3 +msgid "setUserEmojiStatus" +msgstr "" + +#: ../../api/methods/set_user_emoji_status.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.set_user_emoji_status.SetUserEmojiStatus:1 of +msgid "" +"Changes the emoji status for a given user that previously allowed the bot" +" to manage their emoji status via the Mini App method " +"`requestEmojiStatusAccess `_. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.set_user_emoji_status.SetUserEmojiStatus:3 of +msgid "Source: https://core.telegram.org/bots/api#setuseremojistatus" +msgstr "" + +#: ../../docstring +#: aiogram.methods.set_user_emoji_status.SetUserEmojiStatus.user_id:1 of +msgid "Unique identifier of the target user" +msgstr "" + +#: ../../docstring +#: aiogram.methods.set_user_emoji_status.SetUserEmojiStatus.emoji_status_custom_emoji_id:1 +#: of +msgid "" +"Custom emoji identifier of the emoji status to set. Pass an empty string " +"to remove the status." +msgstr "" + +#: ../../docstring +#: aiogram.methods.set_user_emoji_status.SetUserEmojiStatus.emoji_status_expiration_date:1 +#: of +msgid "Expiration date of the emoji status, if any" +msgstr "" + +#: ../../api/methods/set_user_emoji_status.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/set_user_emoji_status.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/set_user_emoji_status.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/set_user_emoji_status.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/set_user_emoji_status.rst:30 +msgid "" +":code:`from aiogram.methods.set_user_emoji_status import " +"SetUserEmojiStatus`" +msgstr "" + +#: ../../api/methods/set_user_emoji_status.rst:31 +msgid "alias: :code:`from aiogram.methods import SetUserEmojiStatus`" +msgstr "" + +#: ../../api/methods/set_user_emoji_status.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/set_user_emoji_status.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_webhook.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_webhook.po index 39f13696..be21c6bd 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_webhook.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_webhook.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -30,12 +30,15 @@ msgid "" "Use this method to specify a URL and receive incoming updates via an " "outgoing webhook. Whenever there is an update for the bot, we will send " "an HTTPS POST request to the specified URL, containing a JSON-serialized " -":class:`aiogram.types.update.Update`. In case of an unsuccessful request," -" we will give up after a reasonable amount of attempts. Returns " -":code:`True` on success. If you'd like to make sure that the webhook was " -"set by you, you can specify secret data in the parameter *secret_token*. " -"If specified, the request will contain a header 'X-Telegram-Bot-Api-" -"Secret-Token' with the secret token as content." +":class:`aiogram.types.update.Update`. In case of an unsuccessful request " +"(a request with response `HTTP status code " +"`_ different " +"from :code:`2XY`), we will repeat the request and give up after a " +"reasonable amount of attempts. Returns :code:`True` on success. If you'd " +"like to make sure that the webhook was set by you, you can specify secret" +" data in the parameter *secret_token*. If specified, the request will " +"contain a header 'X-Telegram-Bot-Api-Secret-Token' with the secret token " +"as content." msgstr "" #: aiogram.methods.set_webhook.SetWebhook:4 of @@ -179,3 +182,24 @@ msgstr "" #~ "(default). If not specified, the " #~ "previous setting will be used." #~ msgstr "" + +#~ msgid "" +#~ "Use this method to specify a URL" +#~ " and receive incoming updates via an" +#~ " outgoing webhook. Whenever there is " +#~ "an update for the bot, we will " +#~ "send an HTTPS POST request to the" +#~ " specified URL, containing a JSON-" +#~ "serialized :class:`aiogram.types.update.Update`. In " +#~ "case of an unsuccessful request, we " +#~ "will give up after a reasonable " +#~ "amount of attempts. Returns :code:`True` " +#~ "on success. If you'd like to make" +#~ " sure that the webhook was set " +#~ "by you, you can specify secret " +#~ "data in the parameter *secret_token*. If" +#~ " specified, the request will contain " +#~ "a header 'X-Telegram-Bot-Api-Secret-" +#~ "Token' with the secret token as " +#~ "content." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/stop_message_live_location.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/stop_message_live_location.po index e15b616d..f4cec80d 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/stop_message_live_location.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/stop_message_live_location.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-23 00:47+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/stop_message_live_location.rst:3 msgid "stopMessageLiveLocation" @@ -37,6 +37,14 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#stopmessagelivelocation" msgstr "" +#: ../../docstring +#: aiogram.methods.stop_message_live_location.StopMessageLiveLocation.business_connection_id:1 +#: of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message to be edited was sent" +msgstr "" + #: ../../docstring #: aiogram.methods.stop_message_live_location.StopMessageLiveLocation.chat_id:1 #: of @@ -70,45 +78,45 @@ msgid "" "`_." msgstr "" -#: ../../api/methods/stop_message_live_location.rst:14 +#: ../../api/methods/stop_message_live_location.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:17 +#: ../../api/methods/stop_message_live_location.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:25 +#: ../../api/methods/stop_message_live_location.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:27 +#: ../../api/methods/stop_message_live_location.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:29 +#: ../../api/methods/stop_message_live_location.rst:30 msgid "" ":code:`from aiogram.methods.stop_message_live_location import " "StopMessageLiveLocation`" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:30 +#: ../../api/methods/stop_message_live_location.rst:31 msgid "alias: :code:`from aiogram.methods import StopMessageLiveLocation`" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:33 +#: ../../api/methods/stop_message_live_location.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:40 +#: ../../api/methods/stop_message_live_location.rst:41 msgid "As reply into Webhook in handler" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:48 +#: ../../api/methods/stop_message_live_location.rst:49 msgid "As shortcut from received object" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:50 +#: ../../api/methods/stop_message_live_location.rst:51 msgid ":meth:`aiogram.types.message.Message.stop_live_location`" msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/stop_poll.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/stop_poll.po index d0315d1d..ee32a02e 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/stop_poll.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/stop_poll.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/stop_poll.rst:3 msgid "stopPoll" @@ -45,40 +45,47 @@ msgstr "" msgid "Identifier of the original message with the poll" msgstr "" +#: ../../docstring aiogram.methods.stop_poll.StopPoll.business_connection_id:1 +#: of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message to be edited was sent" +msgstr "" + #: ../../docstring aiogram.methods.stop_poll.StopPoll.reply_markup:1 of msgid "" "A JSON-serialized object for a new message `inline keyboard " "`_." msgstr "" -#: ../../api/methods/stop_poll.rst:14 +#: ../../api/methods/stop_poll.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/stop_poll.rst:17 +#: ../../api/methods/stop_poll.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/stop_poll.rst:25 +#: ../../api/methods/stop_poll.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/stop_poll.rst:27 +#: ../../api/methods/stop_poll.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/stop_poll.rst:29 +#: ../../api/methods/stop_poll.rst:30 msgid ":code:`from aiogram.methods.stop_poll import StopPoll`" msgstr "" -#: ../../api/methods/stop_poll.rst:30 +#: ../../api/methods/stop_poll.rst:31 msgid "alias: :code:`from aiogram.methods import StopPoll`" msgstr "" -#: ../../api/methods/stop_poll.rst:33 +#: ../../api/methods/stop_poll.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/stop_poll.rst:40 +#: ../../api/methods/stop_poll.rst:41 msgid "As reply into Webhook in handler" msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/unpin_chat_message.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/unpin_chat_message.po index e184084b..b31a1397 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/unpin_chat_message.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/unpin_chat_message.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-23 00:47+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/unpin_chat_message.rst:3 msgid "unpinChatMessage" @@ -47,55 +47,71 @@ msgid "" msgstr "" #: ../../docstring -#: aiogram.methods.unpin_chat_message.UnpinChatMessage.message_id:1 of +#: aiogram.methods.unpin_chat_message.UnpinChatMessage.business_connection_id:1 +#: of msgid "" -"Identifier of a message to unpin. If not specified, the most recent " -"pinned message (by sending date) will be unpinned." +"Unique identifier of the business connection on behalf of which the " +"message will be unpinned" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:14 +#: ../../docstring +#: aiogram.methods.unpin_chat_message.UnpinChatMessage.message_id:1 of +msgid "" +"Identifier of the message to unpin. Required if *business_connection_id* " +"is specified. If not specified, the most recent pinned message (by " +"sending date) will be unpinned." +msgstr "" + +#: ../../api/methods/unpin_chat_message.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:17 +#: ../../api/methods/unpin_chat_message.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:25 +#: ../../api/methods/unpin_chat_message.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:27 +#: ../../api/methods/unpin_chat_message.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:29 +#: ../../api/methods/unpin_chat_message.rst:30 msgid ":code:`from aiogram.methods.unpin_chat_message import UnpinChatMessage`" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:30 +#: ../../api/methods/unpin_chat_message.rst:31 msgid "alias: :code:`from aiogram.methods import UnpinChatMessage`" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:33 +#: ../../api/methods/unpin_chat_message.rst:34 msgid "With specific bot" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:40 +#: ../../api/methods/unpin_chat_message.rst:41 msgid "As reply into Webhook in handler" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:48 +#: ../../api/methods/unpin_chat_message.rst:49 msgid "As shortcut from received object" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:50 -msgid ":meth:`aiogram.types.message.Message.unpin`" -msgstr "" - #: ../../api/methods/unpin_chat_message.rst:51 msgid ":meth:`aiogram.types.chat.Chat.unpin_message`" msgstr "" +#: ../../api/methods/unpin_chat_message.rst:52 +msgid ":meth:`aiogram.types.message.Message.unpin`" +msgstr "" + #~ msgid "As message method" #~ msgstr "" + +#~ msgid "" +#~ "Identifier of a message to unpin. " +#~ "If not specified, the most recent " +#~ "pinned message (by sending date) will" +#~ " be unpinned." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/upload_sticker_file.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/upload_sticker_file.po index 4e909bd1..78c391b1 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/upload_sticker_file.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/upload_sticker_file.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-11 01:52+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.11.0\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/methods/upload_sticker_file.rst:3 msgid "uploadStickerFile" @@ -28,9 +28,10 @@ msgstr "" #: aiogram.methods.upload_sticker_file.UploadStickerFile:1 of msgid "" "Use this method to upload a file with a sticker for later use in the " -":class:`aiogram.methods.create_new_sticker_set.CreateNewStickerSet` and " -":class:`aiogram.methods.add_sticker_to_set.AddStickerToSet` methods (the " -"file can be used multiple times). Returns the uploaded " +":class:`aiogram.methods.create_new_sticker_set.CreateNewStickerSet`, " +":class:`aiogram.methods.add_sticker_to_set.AddStickerToSet`, or " +":class:`aiogram.methods.replace_sticker_in_set.ReplaceStickerInSet` " +"methods (the file can be used multiple times). Returns the uploaded " ":class:`aiogram.types.file.File` on success." msgstr "" @@ -58,31 +59,31 @@ msgstr "" msgid "Format of the sticker, must be one of 'static', 'animated', 'video'" msgstr "" -#: ../../api/methods/upload_sticker_file.rst:14 +#: ../../api/methods/upload_sticker_file.rst:15 msgid "Usage" msgstr "" -#: ../../api/methods/upload_sticker_file.rst:17 +#: ../../api/methods/upload_sticker_file.rst:18 msgid "As bot method" msgstr "" -#: ../../api/methods/upload_sticker_file.rst:25 +#: ../../api/methods/upload_sticker_file.rst:26 msgid "Method as object" msgstr "" -#: ../../api/methods/upload_sticker_file.rst:27 +#: ../../api/methods/upload_sticker_file.rst:28 msgid "Imports:" msgstr "" -#: ../../api/methods/upload_sticker_file.rst:29 +#: ../../api/methods/upload_sticker_file.rst:30 msgid ":code:`from aiogram.methods.upload_sticker_file import UploadStickerFile`" msgstr "" -#: ../../api/methods/upload_sticker_file.rst:30 +#: ../../api/methods/upload_sticker_file.rst:31 msgid "alias: :code:`from aiogram.methods import UploadStickerFile`" msgstr "" -#: ../../api/methods/upload_sticker_file.rst:33 +#: ../../api/methods/upload_sticker_file.rst:34 msgid "With specific bot" msgstr "" @@ -103,3 +104,15 @@ msgstr "" #~ " exactly 512px. :ref:`More information on" #~ " Sending Files » `" #~ msgstr "" + +#~ msgid "" +#~ "Use this method to upload a file" +#~ " with a sticker for later use " +#~ "in the " +#~ ":class:`aiogram.methods.create_new_sticker_set.CreateNewStickerSet`" +#~ " and " +#~ ":class:`aiogram.methods.add_sticker_to_set.AddStickerToSet` " +#~ "methods (the file can be used " +#~ "multiple times). Returns the uploaded " +#~ ":class:`aiogram.types.file.File` on success." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/verify_chat.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/verify_chat.po new file mode 100644 index 00000000..b3953337 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/verify_chat.po @@ -0,0 +1,86 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/verify_chat.rst:3 +msgid "verifyChat" +msgstr "" + +#: ../../api/methods/verify_chat.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.verify_chat.VerifyChat:1 of +msgid "" +"Verifies a chat `on behalf of the organization " +"`_ which is " +"represented by the bot. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.verify_chat.VerifyChat:3 of +msgid "Source: https://core.telegram.org/bots/api#verifychat" +msgstr "" + +#: ../../docstring aiogram.methods.verify_chat.VerifyChat.chat_id:1 of +msgid "" +"Unique identifier for the target chat or username of the target channel " +"(in the format :code:`@channelusername`)" +msgstr "" + +#: ../../docstring aiogram.methods.verify_chat.VerifyChat.custom_description:1 +#: of +msgid "" +"Custom description for the verification; 0-70 characters. Must be empty " +"if the organization isn't allowed to provide a custom verification " +"description." +msgstr "" + +#: ../../api/methods/verify_chat.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/verify_chat.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/verify_chat.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/verify_chat.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/verify_chat.rst:30 +msgid ":code:`from aiogram.methods.verify_chat import VerifyChat`" +msgstr "" + +#: ../../api/methods/verify_chat.rst:31 +msgid "alias: :code:`from aiogram.methods import VerifyChat`" +msgstr "" + +#: ../../api/methods/verify_chat.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/verify_chat.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/verify_user.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/verify_user.po new file mode 100644 index 00000000..d4c8163d --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/verify_user.po @@ -0,0 +1,84 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/methods/verify_user.rst:3 +msgid "verifyUser" +msgstr "" + +#: ../../api/methods/verify_user.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.verify_user.VerifyUser:1 of +msgid "" +"Verifies a user `on behalf of the organization " +"`_ which is " +"represented by the bot. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.verify_user.VerifyUser:3 of +msgid "Source: https://core.telegram.org/bots/api#verifyuser" +msgstr "" + +#: ../../docstring aiogram.methods.verify_user.VerifyUser.user_id:1 of +msgid "Unique identifier of the target user" +msgstr "" + +#: ../../docstring aiogram.methods.verify_user.VerifyUser.custom_description:1 +#: of +msgid "" +"Custom description for the verification; 0-70 characters. Must be empty " +"if the organization isn't allowed to provide a custom verification " +"description." +msgstr "" + +#: ../../api/methods/verify_user.rst:15 +msgid "Usage" +msgstr "" + +#: ../../api/methods/verify_user.rst:18 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/verify_user.rst:26 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/verify_user.rst:28 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/verify_user.rst:30 +msgid ":code:`from aiogram.methods.verify_user import VerifyUser`" +msgstr "" + +#: ../../api/methods/verify_user.rst:31 +msgid "alias: :code:`from aiogram.methods import VerifyUser`" +msgstr "" + +#: ../../api/methods/verify_user.rst:34 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/verify_user.rst:41 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/affiliate_info.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/affiliate_info.po new file mode 100644 index 00000000..ba6f2052 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/affiliate_info.po @@ -0,0 +1,70 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/affiliate_info.rst:3 +msgid "AffiliateInfo" +msgstr "" + +#: aiogram.types.affiliate_info.AffiliateInfo:1 of +msgid "" +"Contains information about the affiliate that received a commission via " +"this transaction." +msgstr "" + +#: aiogram.types.affiliate_info.AffiliateInfo:3 of +msgid "Source: https://core.telegram.org/bots/api#affiliateinfo" +msgstr "" + +#: ../../docstring +#: aiogram.types.affiliate_info.AffiliateInfo.commission_per_mille:1 of +msgid "" +"The number of Telegram Stars received by the affiliate for each 1000 " +"Telegram Stars received by the bot from referred users" +msgstr "" + +#: ../../docstring aiogram.types.affiliate_info.AffiliateInfo.amount:1 of +msgid "" +"Integer amount of Telegram Stars received by the affiliate from the " +"transaction, rounded to 0; can be negative for refunds" +msgstr "" + +#: ../../docstring aiogram.types.affiliate_info.AffiliateInfo.affiliate_user:1 +#: of +msgid "" +"*Optional*. The bot or the user that received an affiliate commission if " +"it was received by a bot or a user" +msgstr "" + +#: ../../docstring aiogram.types.affiliate_info.AffiliateInfo.affiliate_chat:1 +#: of +msgid "" +"*Optional*. The chat that received an affiliate commission if it was " +"received by a chat" +msgstr "" + +#: ../../docstring aiogram.types.affiliate_info.AffiliateInfo.nanostar_amount:1 +#: of +msgid "" +"*Optional*. The number of 1/1000000000 shares of Telegram Stars received " +"by the affiliate; from -999999999 to 999999999; can be negative for " +"refunds" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/animation.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/animation.po index df976078..0b113fe6 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/animation.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/animation.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/animation.rst:3 msgid "Animation" @@ -42,27 +42,27 @@ msgid "" msgstr "" #: ../../docstring aiogram.types.animation.Animation.width:1 of -msgid "Video width as defined by sender" +msgid "Video width as defined by the sender" msgstr "" #: ../../docstring aiogram.types.animation.Animation.height:1 of -msgid "Video height as defined by sender" +msgid "Video height as defined by the sender" msgstr "" #: ../../docstring aiogram.types.animation.Animation.duration:1 of -msgid "Duration of the video in seconds as defined by sender" +msgid "Duration of the video in seconds as defined by the sender" msgstr "" -#: ../../docstring aiogram.types.animation.Animation.thumb:1 of -msgid "*Optional*. Animation thumbnail as defined by sender" +#: ../../docstring aiogram.types.animation.Animation.thumbnail:1 of +msgid "*Optional*. Animation thumbnail as defined by the sender" msgstr "" #: ../../docstring aiogram.types.animation.Animation.file_name:1 of -msgid "*Optional*. Original animation filename as defined by sender" +msgid "*Optional*. Original animation filename as defined by the sender" msgstr "" #: ../../docstring aiogram.types.animation.Animation.mime_type:1 of -msgid "*Optional*. MIME type of the file as defined by sender" +msgid "*Optional*. MIME type of the file as defined by the sender" msgstr "" #: ../../docstring aiogram.types.animation.Animation.file_size:1 of @@ -72,3 +72,21 @@ msgid "" "it. But it has at most 52 significant bits, so a signed 64-bit integer or" " double-precision float type are safe for storing this value." msgstr "" + +#~ msgid "Video width as defined by sender" +#~ msgstr "" + +#~ msgid "Video height as defined by sender" +#~ msgstr "" + +#~ msgid "Duration of the video in seconds as defined by sender" +#~ msgstr "" + +#~ msgid "*Optional*. Animation thumbnail as defined by sender" +#~ msgstr "" + +#~ msgid "*Optional*. Original animation filename as defined by sender" +#~ msgstr "" + +#~ msgid "*Optional*. MIME type of the file as defined by sender" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/audio.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/audio.po index 81579c4c..22f46b2d 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/audio.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/audio.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/audio.rst:3 msgid "Audio" @@ -42,23 +42,25 @@ msgid "" msgstr "" #: ../../docstring aiogram.types.audio.Audio.duration:1 of -msgid "Duration of the audio in seconds as defined by sender" +msgid "Duration of the audio in seconds as defined by the sender" msgstr "" #: ../../docstring aiogram.types.audio.Audio.performer:1 of -msgid "*Optional*. Performer of the audio as defined by sender or by audio tags" +msgid "" +"*Optional*. Performer of the audio as defined by the sender or by audio " +"tags" msgstr "" #: ../../docstring aiogram.types.audio.Audio.title:1 of -msgid "*Optional*. Title of the audio as defined by sender or by audio tags" +msgid "*Optional*. Title of the audio as defined by the sender or by audio tags" msgstr "" #: ../../docstring aiogram.types.audio.Audio.file_name:1 of -msgid "*Optional*. Original filename as defined by sender" +msgid "*Optional*. Original filename as defined by the sender" msgstr "" #: ../../docstring aiogram.types.audio.Audio.mime_type:1 of -msgid "*Optional*. MIME type of the file as defined by sender" +msgid "*Optional*. MIME type of the file as defined by the sender" msgstr "" #: ../../docstring aiogram.types.audio.Audio.file_size:1 of @@ -69,6 +71,24 @@ msgid "" " double-precision float type are safe for storing this value." msgstr "" -#: ../../docstring aiogram.types.audio.Audio.thumb:1 of +#: ../../docstring aiogram.types.audio.Audio.thumbnail:1 of msgid "*Optional*. Thumbnail of the album cover to which the music file belongs" msgstr "" + +#~ msgid "Duration of the audio in seconds as defined by sender" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Performer of the audio as" +#~ " defined by sender or by audio " +#~ "tags" +#~ msgstr "" + +#~ msgid "*Optional*. Title of the audio as defined by sender or by audio tags" +#~ msgstr "" + +#~ msgid "*Optional*. Original filename as defined by sender" +#~ msgstr "" + +#~ msgid "*Optional*. MIME type of the file as defined by sender" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill.po new file mode 100644 index 00000000..7b390dc8 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill.po @@ -0,0 +1,47 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/background_fill.rst:3 +msgid "BackgroundFill" +msgstr "" + +#: aiogram.types.background_fill.BackgroundFill:1 of +msgid "" +"This object describes the way a background is filled based on the " +"selected colors. Currently, it can be one of" +msgstr "" + +#: aiogram.types.background_fill.BackgroundFill:3 of +msgid ":class:`aiogram.types.background_fill_solid.BackgroundFillSolid`" +msgstr "" + +#: aiogram.types.background_fill.BackgroundFill:4 of +msgid ":class:`aiogram.types.background_fill_gradient.BackgroundFillGradient`" +msgstr "" + +#: aiogram.types.background_fill.BackgroundFill:5 of +msgid ":class:`aiogram.types.background_fill_freeform_gradient.BackgroundFillFreeformGradient`" +msgstr "" + +#: aiogram.types.background_fill.BackgroundFill:7 of +msgid "Source: https://core.telegram.org/bots/api#backgroundfill" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_freeform_gradient.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_freeform_gradient.po new file mode 100644 index 00000000..d63ab298 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_freeform_gradient.po @@ -0,0 +1,51 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/background_fill_freeform_gradient.rst:3 +msgid "BackgroundFillFreeformGradient" +msgstr "" + +#: aiogram.types.background_fill_freeform_gradient.BackgroundFillFreeformGradient:1 +#: of +msgid "" +"The background is a freeform gradient that rotates after every message in" +" the chat." +msgstr "" + +#: aiogram.types.background_fill_freeform_gradient.BackgroundFillFreeformGradient:3 +#: of +msgid "Source: https://core.telegram.org/bots/api#backgroundfillfreeformgradient" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_fill_freeform_gradient.BackgroundFillFreeformGradient.type:1 +#: of +msgid "Type of the background fill, always 'freeform_gradient'" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_fill_freeform_gradient.BackgroundFillFreeformGradient.colors:1 +#: of +msgid "" +"A list of the 3 or 4 base colors that are used to generate the freeform " +"gradient in the RGB24 format" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_gradient.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_gradient.po new file mode 100644 index 00000000..bea475cd --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_gradient.po @@ -0,0 +1,55 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/background_fill_gradient.rst:3 +msgid "BackgroundFillGradient" +msgstr "" + +#: aiogram.types.background_fill_gradient.BackgroundFillGradient:1 of +msgid "The background is a gradient fill." +msgstr "" + +#: aiogram.types.background_fill_gradient.BackgroundFillGradient:3 of +msgid "Source: https://core.telegram.org/bots/api#backgroundfillgradient" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_fill_gradient.BackgroundFillGradient.type:1 of +msgid "Type of the background fill, always 'gradient'" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_fill_gradient.BackgroundFillGradient.top_color:1 of +msgid "Top color of the gradient in the RGB24 format" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_fill_gradient.BackgroundFillGradient.bottom_color:1 +#: of +msgid "Bottom color of the gradient in the RGB24 format" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_fill_gradient.BackgroundFillGradient.rotation_angle:1 +#: of +msgid "Clockwise rotation angle of the background fill in degrees; 0-359" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_solid.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_solid.po new file mode 100644 index 00000000..bdd22651 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_fill_solid.po @@ -0,0 +1,43 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/background_fill_solid.rst:3 +msgid "BackgroundFillSolid" +msgstr "" + +#: aiogram.types.background_fill_solid.BackgroundFillSolid:1 of +msgid "The background is filled using the selected color." +msgstr "" + +#: aiogram.types.background_fill_solid.BackgroundFillSolid:3 of +msgid "Source: https://core.telegram.org/bots/api#backgroundfillsolid" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_fill_solid.BackgroundFillSolid.type:1 of +msgid "Type of the background fill, always 'solid'" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_fill_solid.BackgroundFillSolid.color:1 of +msgid "The color of the background fill in the RGB24 format" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type.po new file mode 100644 index 00000000..20a012ca --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type.po @@ -0,0 +1,51 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/background_type.rst:3 +msgid "BackgroundType" +msgstr "" + +#: aiogram.types.background_type.BackgroundType:1 of +msgid "" +"This object describes the type of a background. Currently, it can be one " +"of" +msgstr "" + +#: aiogram.types.background_type.BackgroundType:3 of +msgid ":class:`aiogram.types.background_type_fill.BackgroundTypeFill`" +msgstr "" + +#: aiogram.types.background_type.BackgroundType:4 of +msgid ":class:`aiogram.types.background_type_wallpaper.BackgroundTypeWallpaper`" +msgstr "" + +#: aiogram.types.background_type.BackgroundType:5 of +msgid ":class:`aiogram.types.background_type_pattern.BackgroundTypePattern`" +msgstr "" + +#: aiogram.types.background_type.BackgroundType:6 of +msgid ":class:`aiogram.types.background_type_chat_theme.BackgroundTypeChatTheme`" +msgstr "" + +#: aiogram.types.background_type.BackgroundType:8 of +msgid "Source: https://core.telegram.org/bots/api#backgroundtype" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_chat_theme.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_chat_theme.po new file mode 100644 index 00000000..dbf27c8c --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_chat_theme.po @@ -0,0 +1,44 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/background_type_chat_theme.rst:3 +msgid "BackgroundTypeChatTheme" +msgstr "" + +#: aiogram.types.background_type_chat_theme.BackgroundTypeChatTheme:1 of +msgid "The background is taken directly from a built-in chat theme." +msgstr "" + +#: aiogram.types.background_type_chat_theme.BackgroundTypeChatTheme:3 of +msgid "Source: https://core.telegram.org/bots/api#backgroundtypechattheme" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_chat_theme.BackgroundTypeChatTheme.type:1 of +msgid "Type of the background, always 'chat_theme'" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_chat_theme.BackgroundTypeChatTheme.theme_name:1 +#: of +msgid "Name of the chat theme, which is usually an emoji" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_fill.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_fill.po new file mode 100644 index 00000000..7547dd3e --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_fill.po @@ -0,0 +1,49 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/background_type_fill.rst:3 +msgid "BackgroundTypeFill" +msgstr "" + +#: aiogram.types.background_type_fill.BackgroundTypeFill:1 of +msgid "The background is automatically filled based on the selected colors." +msgstr "" + +#: aiogram.types.background_type_fill.BackgroundTypeFill:3 of +msgid "Source: https://core.telegram.org/bots/api#backgroundtypefill" +msgstr "" + +#: ../../docstring aiogram.types.background_type_fill.BackgroundTypeFill.type:1 +#: of +msgid "Type of the background, always 'fill'" +msgstr "" + +#: ../../docstring aiogram.types.background_type_fill.BackgroundTypeFill.fill:1 +#: of +msgid "The background fill" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_fill.BackgroundTypeFill.dark_theme_dimming:1 +#: of +msgid "Dimming of the background in dark themes, as a percentage; 0-100" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_pattern.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_pattern.po new file mode 100644 index 00000000..ef58445a --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_pattern.po @@ -0,0 +1,73 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/background_type_pattern.rst:3 +msgid "BackgroundTypePattern" +msgstr "" + +#: aiogram.types.background_type_pattern.BackgroundTypePattern:1 of +msgid "" +"The background is a .PNG or .TGV (gzipped subset of SVG with MIME type " +"'application/x-tgwallpattern') pattern to be combined with the background" +" fill chosen by the user." +msgstr "" + +#: aiogram.types.background_type_pattern.BackgroundTypePattern:3 of +msgid "Source: https://core.telegram.org/bots/api#backgroundtypepattern" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_pattern.BackgroundTypePattern.type:1 of +msgid "Type of the background, always 'pattern'" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_pattern.BackgroundTypePattern.document:1 of +msgid "Document with the pattern" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_pattern.BackgroundTypePattern.fill:1 of +msgid "The background fill that is combined with the pattern" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_pattern.BackgroundTypePattern.intensity:1 of +msgid "" +"Intensity of the pattern when it is shown above the filled background; " +"0-100" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_pattern.BackgroundTypePattern.is_inverted:1 of +msgid "" +"*Optional*. :code:`True`, if the background fill must be applied only to " +"the pattern itself. All other pixels are black in this case. For dark " +"themes only" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_pattern.BackgroundTypePattern.is_moving:1 of +msgid "" +"*Optional*. :code:`True`, if the background moves slightly when the " +"device is tilted" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_wallpaper.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_wallpaper.po new file mode 100644 index 00000000..b7223a5d --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/background_type_wallpaper.po @@ -0,0 +1,66 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/background_type_wallpaper.rst:3 +msgid "BackgroundTypeWallpaper" +msgstr "" + +#: aiogram.types.background_type_wallpaper.BackgroundTypeWallpaper:1 of +msgid "The background is a wallpaper in the JPEG format." +msgstr "" + +#: aiogram.types.background_type_wallpaper.BackgroundTypeWallpaper:3 of +msgid "Source: https://core.telegram.org/bots/api#backgroundtypewallpaper" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_wallpaper.BackgroundTypeWallpaper.type:1 of +msgid "Type of the background, always 'wallpaper'" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_wallpaper.BackgroundTypeWallpaper.document:1 +#: of +msgid "Document with the wallpaper" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_wallpaper.BackgroundTypeWallpaper.dark_theme_dimming:1 +#: of +msgid "Dimming of the background in dark themes, as a percentage; 0-100" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_wallpaper.BackgroundTypeWallpaper.is_blurred:1 +#: of +msgid "" +"*Optional*. :code:`True`, if the wallpaper is downscaled to fit in a " +"450x450 square and then box-blurred with radius 12" +msgstr "" + +#: ../../docstring +#: aiogram.types.background_type_wallpaper.BackgroundTypeWallpaper.is_moving:1 +#: of +msgid "" +"*Optional*. :code:`True`, if the background moves slightly when the " +"device is tilted" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/birthdate.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/birthdate.po new file mode 100644 index 00000000..687d7a1a --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/birthdate.po @@ -0,0 +1,45 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/birthdate.rst:3 +msgid "Birthdate" +msgstr "" + +#: aiogram.types.birthdate.Birthdate:1 of +msgid "Describes the birthdate of a user." +msgstr "" + +#: aiogram.types.birthdate.Birthdate:3 of +msgid "Source: https://core.telegram.org/bots/api#birthdate" +msgstr "" + +#: ../../docstring aiogram.types.birthdate.Birthdate.day:1 of +msgid "Day of the user's birth; 1-31" +msgstr "" + +#: ../../docstring aiogram.types.birthdate.Birthdate.month:1 of +msgid "Month of the user's birth; 1-12" +msgstr "" + +#: ../../docstring aiogram.types.birthdate.Birthdate.year:1 of +msgid "*Optional*. Year of the user's birth" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/business_connection.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_connection.po new file mode 100644 index 00000000..663dd56e --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_connection.po @@ -0,0 +1,69 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/business_connection.rst:3 +msgid "BusinessConnection" +msgstr "" + +#: aiogram.types.business_connection.BusinessConnection:1 of +msgid "Describes the connection of the bot with a business account." +msgstr "" + +#: aiogram.types.business_connection.BusinessConnection:3 of +msgid "Source: https://core.telegram.org/bots/api#businessconnection" +msgstr "" + +#: ../../docstring aiogram.types.business_connection.BusinessConnection.id:1 of +msgid "Unique identifier of the business connection" +msgstr "" + +#: ../../docstring aiogram.types.business_connection.BusinessConnection.user:1 +#: of +msgid "Business account user that created the business connection" +msgstr "" + +#: ../../docstring +#: aiogram.types.business_connection.BusinessConnection.user_chat_id:1 of +msgid "" +"Identifier of a private chat with the user who created the business " +"connection. This number may have more than 32 significant bits and some " +"programming languages may have difficulty/silent defects in interpreting " +"it. But it has at most 52 significant bits, so a 64-bit integer or " +"double-precision float type are safe for storing this identifier." +msgstr "" + +#: ../../docstring aiogram.types.business_connection.BusinessConnection.date:1 +#: of +msgid "Date the connection was established in Unix time" +msgstr "" + +#: ../../docstring +#: aiogram.types.business_connection.BusinessConnection.can_reply:1 of +msgid "" +"True, if the bot can act on behalf of the business account in chats that " +"were active in the last 24 hours" +msgstr "" + +#: ../../docstring +#: aiogram.types.business_connection.BusinessConnection.is_enabled:1 of +msgid "True, if the connection is active" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/business_intro.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_intro.po new file mode 100644 index 00000000..437ac415 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_intro.po @@ -0,0 +1,47 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/business_intro.rst:3 +msgid "BusinessIntro" +msgstr "" + +#: aiogram.types.business_intro.BusinessIntro:1 of +msgid "" +"Contains information about the start page settings of a Telegram Business" +" account." +msgstr "" + +#: aiogram.types.business_intro.BusinessIntro:3 of +msgid "Source: https://core.telegram.org/bots/api#businessintro" +msgstr "" + +#: ../../docstring aiogram.types.business_intro.BusinessIntro.title:1 of +msgid "*Optional*. Title text of the business intro" +msgstr "" + +#: ../../docstring aiogram.types.business_intro.BusinessIntro.message:1 of +msgid "*Optional*. Message text of the business intro" +msgstr "" + +#: ../../docstring aiogram.types.business_intro.BusinessIntro.sticker:1 of +msgid "*Optional*. Sticker of the business intro" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/business_location.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_location.po new file mode 100644 index 00000000..e5fb383e --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_location.po @@ -0,0 +1,43 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/business_location.rst:3 +msgid "BusinessLocation" +msgstr "" + +#: aiogram.types.business_location.BusinessLocation:1 of +msgid "Contains information about the location of a Telegram Business account." +msgstr "" + +#: aiogram.types.business_location.BusinessLocation:3 of +msgid "Source: https://core.telegram.org/bots/api#businesslocation" +msgstr "" + +#: ../../docstring aiogram.types.business_location.BusinessLocation.address:1 +#: of +msgid "Address of the business" +msgstr "" + +#: ../../docstring aiogram.types.business_location.BusinessLocation.location:1 +#: of +msgid "*Optional*. Location of the business" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/business_messages_deleted.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_messages_deleted.po new file mode 100644 index 00000000..e0a1e981 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_messages_deleted.po @@ -0,0 +1,56 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/business_messages_deleted.rst:3 +msgid "BusinessMessagesDeleted" +msgstr "" + +#: aiogram.types.business_messages_deleted.BusinessMessagesDeleted:1 of +msgid "" +"This object is received when messages are deleted from a connected " +"business account." +msgstr "" + +#: aiogram.types.business_messages_deleted.BusinessMessagesDeleted:3 of +msgid "Source: https://core.telegram.org/bots/api#businessmessagesdeleted" +msgstr "" + +#: ../../docstring +#: aiogram.types.business_messages_deleted.BusinessMessagesDeleted.business_connection_id:1 +#: of +msgid "Unique identifier of the business connection" +msgstr "" + +#: ../../docstring +#: aiogram.types.business_messages_deleted.BusinessMessagesDeleted.chat:1 of +msgid "" +"Information about a chat in the business account. The bot may not have " +"access to the chat or the corresponding user." +msgstr "" + +#: ../../docstring +#: aiogram.types.business_messages_deleted.BusinessMessagesDeleted.message_ids:1 +#: of +msgid "" +"The list of identifiers of deleted messages in the chat of the business " +"account" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/business_opening_hours.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_opening_hours.po new file mode 100644 index 00000000..f28fc1d2 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_opening_hours.po @@ -0,0 +1,44 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/business_opening_hours.rst:3 +msgid "BusinessOpeningHours" +msgstr "" + +#: aiogram.types.business_opening_hours.BusinessOpeningHours:1 of +msgid "Describes the opening hours of a business." +msgstr "" + +#: aiogram.types.business_opening_hours.BusinessOpeningHours:3 of +msgid "Source: https://core.telegram.org/bots/api#businessopeninghours" +msgstr "" + +#: ../../docstring +#: aiogram.types.business_opening_hours.BusinessOpeningHours.time_zone_name:1 +#: of +msgid "Unique name of the time zone for which the opening hours are defined" +msgstr "" + +#: ../../docstring +#: aiogram.types.business_opening_hours.BusinessOpeningHours.opening_hours:1 of +msgid "List of time intervals describing business opening hours" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/business_opening_hours_interval.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_opening_hours_interval.po new file mode 100644 index 00000000..37e19eb3 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/business_opening_hours_interval.po @@ -0,0 +1,53 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/business_opening_hours_interval.rst:3 +msgid "BusinessOpeningHoursInterval" +msgstr "" + +#: aiogram.types.business_opening_hours_interval.BusinessOpeningHoursInterval:1 +#: of +msgid "Describes an interval of time during which a business is open." +msgstr "" + +#: aiogram.types.business_opening_hours_interval.BusinessOpeningHoursInterval:3 +#: of +msgid "Source: https://core.telegram.org/bots/api#businessopeninghoursinterval" +msgstr "" + +#: ../../docstring +#: aiogram.types.business_opening_hours_interval.BusinessOpeningHoursInterval.opening_minute:1 +#: of +msgid "" +"The minute's sequence number in a week, starting on Monday, marking the " +"start of the time interval during which the business is open; 0 - 7 * 24 " +"* 60" +msgstr "" + +#: ../../docstring +#: aiogram.types.business_opening_hours_interval.BusinessOpeningHoursInterval.closing_minute:1 +#: of +msgid "" +"The minute's sequence number in a week, starting on Monday, marking the " +"end of the time interval during which the business is open; 0 - 8 * 24 * " +"60" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat.po index afa46ec2..b12fe62a 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -39,7 +39,9 @@ msgid "" msgstr "" #: ../../docstring aiogram.types.chat.Chat.type:1 of -msgid "Type of chat, can be either 'private', 'group', 'supergroup' or 'channel'" +msgid "" +"Type of the chat, can be either 'private', 'group', 'supergroup' or " +"'channel'" msgstr "" #: ../../docstring aiogram.types.chat.Chat.title:1 of @@ -67,10 +69,48 @@ msgid "" "in-groups>`_ enabled)" msgstr "" -#: ../../docstring aiogram.types.chat.Chat.photo:1 of +#: ../../docstring aiogram.types.chat.Chat.accent_color_id:1 of msgid "" -"*Optional*. Chat photo. Returned only in " -":class:`aiogram.methods.get_chat.GetChat`." +"*Optional*. Identifier of the accent color for the chat name and " +"backgrounds of the chat photo, reply header, and link preview. See " +"`accent colors `_ for " +"more details. Returned only in :class:`aiogram.methods.get_chat.GetChat`." +" Always returned in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.accent_color_id:3 +#: aiogram.types.chat.Chat.active_usernames:3 +#: aiogram.types.chat.Chat.available_reactions:3 +#: aiogram.types.chat.Chat.background_custom_emoji_id:3 +#: aiogram.types.chat.Chat.bio:3 aiogram.types.chat.Chat.birthdate:3 +#: aiogram.types.chat.Chat.business_intro:3 +#: aiogram.types.chat.Chat.business_location:3 +#: aiogram.types.chat.Chat.business_opening_hours:3 +#: aiogram.types.chat.Chat.can_set_sticker_set:3 +#: aiogram.types.chat.Chat.custom_emoji_sticker_set_name:3 +#: aiogram.types.chat.Chat.description:3 +#: aiogram.types.chat.Chat.emoji_status_custom_emoji_id:3 +#: aiogram.types.chat.Chat.emoji_status_expiration_date:3 +#: aiogram.types.chat.Chat.has_aggressive_anti_spam_enabled:3 +#: aiogram.types.chat.Chat.has_hidden_members:3 +#: aiogram.types.chat.Chat.has_private_forwards:3 +#: aiogram.types.chat.Chat.has_protected_content:3 +#: aiogram.types.chat.Chat.has_restricted_voice_and_video_messages:3 +#: aiogram.types.chat.Chat.has_visible_history:3 +#: aiogram.types.chat.Chat.invite_link:3 +#: aiogram.types.chat.Chat.join_by_request:3 +#: aiogram.types.chat.Chat.join_to_send_messages:3 +#: aiogram.types.chat.Chat.linked_chat_id:3 aiogram.types.chat.Chat.location:3 +#: aiogram.types.chat.Chat.message_auto_delete_time:3 +#: aiogram.types.chat.Chat.permissions:3 +#: aiogram.types.chat.Chat.personal_chat:3 aiogram.types.chat.Chat.photo:3 +#: aiogram.types.chat.Chat.pinned_message:3 +#: aiogram.types.chat.Chat.profile_accent_color_id:3 +#: aiogram.types.chat.Chat.profile_background_custom_emoji_id:3 +#: aiogram.types.chat.Chat.slow_mode_delay:3 +#: aiogram.types.chat.Chat.sticker_set_name:3 +#: aiogram.types.chat.Chat.unrestrict_boost_count:3 of +msgid "https://core.telegram.org/bots/api-changelog#may-6-2024" msgstr "" #: ../../docstring aiogram.types.chat.Chat.active_usernames:1 of @@ -89,15 +129,6 @@ msgid "" "Returned only in :class:`aiogram.methods.get_chat.GetChat`." msgstr "" -#: ../../docstring aiogram.types.chat.Chat.accent_color_id:1 of -msgid "" -"*Optional*. Identifier of the accent color for the chat name and " -"backgrounds of the chat photo, reply header, and link preview. See " -"`accent colors `_ for " -"more details. Returned only in :class:`aiogram.methods.get_chat.GetChat`." -" Always returned in :class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - #: ../../docstring aiogram.types.chat.Chat.background_custom_emoji_id:1 of msgid "" "*Optional*. Custom emoji identifier of emoji chosen by the chat for the " @@ -105,22 +136,56 @@ msgid "" ":class:`aiogram.methods.get_chat.GetChat`." msgstr "" -#: ../../docstring aiogram.types.chat.Chat.profile_accent_color_id:1 of +#: ../../docstring aiogram.types.chat.Chat.bio:1 of msgid "" -"*Optional*. Identifier of the accent color for the chat's profile " -"background. See `profile accent colors " -"`_ for more " -"details. Returned only in :class:`aiogram.methods.get_chat.GetChat`." +"*Optional*. Bio of the other party in a private chat. Returned only in " +":class:`aiogram.methods.get_chat.GetChat`." msgstr "" -#: ../../docstring aiogram.types.chat.Chat.profile_background_custom_emoji_id:1 -#: of +#: ../../docstring aiogram.types.chat.Chat.birthdate:1 of msgid "" -"*Optional*. Custom emoji identifier of the emoji chosen by the chat for " -"its profile background. Returned only in " +"*Optional*. For private chats, the date of birth of the user. Returned " +"only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.business_intro:1 of +msgid "" +"*Optional*. For private chats with business accounts, the intro of the " +"business. Returned only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.business_location:1 of +msgid "" +"*Optional*. For private chats with business accounts, the location of the" +" business. Returned only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.business_opening_hours:1 of +msgid "" +"*Optional*. For private chats with business accounts, the opening hours " +"of the business. Returned only in " ":class:`aiogram.methods.get_chat.GetChat`." msgstr "" +#: ../../docstring aiogram.types.chat.Chat.can_set_sticker_set:1 of +msgid "" +"*Optional*. :code:`True`, if the bot can change the group sticker set. " +"Returned only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.custom_emoji_sticker_set_name:1 of +msgid "" +"*Optional*. For supergroups, the name of the group's custom emoji sticker" +" set. Custom emoji from this set can be used by all users and bots in the" +" group. Returned only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.description:1 of +msgid "" +"*Optional*. Description, for groups, supergroups and channel chats. " +"Returned only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + #: ../../docstring aiogram.types.chat.Chat.emoji_status_custom_emoji_id:1 of msgid "" "*Optional*. Custom emoji identifier of the emoji status of the chat or " @@ -135,80 +200,6 @@ msgid "" ":class:`aiogram.methods.get_chat.GetChat`." msgstr "" -#: ../../docstring aiogram.types.chat.Chat.bio:1 of -msgid "" -"*Optional*. Bio of the other party in a private chat. Returned only in " -":class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - -#: ../../docstring aiogram.types.chat.Chat.has_private_forwards:1 of -msgid "" -"*Optional*. :code:`True`, if privacy settings of the other party in the " -"private chat allows to use :code:`tg://user?id=` links only in " -"chats with the user. Returned only in " -":class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - -#: ../../docstring -#: aiogram.types.chat.Chat.has_restricted_voice_and_video_messages:1 of -msgid "" -"*Optional*. :code:`True`, if the privacy settings of the other party " -"restrict sending voice and video note messages in the private chat. " -"Returned only in :class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - -#: ../../docstring aiogram.types.chat.Chat.join_to_send_messages:1 of -msgid "" -"*Optional*. :code:`True`, if users need to join the supergroup before " -"they can send messages. Returned only in " -":class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - -#: ../../docstring aiogram.types.chat.Chat.join_by_request:1 of -msgid "" -"*Optional*. :code:`True`, if all users directly joining the supergroup " -"need to be approved by supergroup administrators. Returned only in " -":class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - -#: ../../docstring aiogram.types.chat.Chat.description:1 of -msgid "" -"*Optional*. Description, for groups, supergroups and channel chats. " -"Returned only in :class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - -#: ../../docstring aiogram.types.chat.Chat.invite_link:1 of -msgid "" -"*Optional*. Primary invite link, for groups, supergroups and channel " -"chats. Returned only in :class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - -#: ../../docstring aiogram.types.chat.Chat.pinned_message:1 of -msgid "" -"*Optional*. The most recent pinned message (by sending date). Returned " -"only in :class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - -#: ../../docstring aiogram.types.chat.Chat.permissions:1 of -msgid "" -"*Optional*. Default chat member permissions, for groups and supergroups. " -"Returned only in :class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - -#: ../../docstring aiogram.types.chat.Chat.slow_mode_delay:1 of -msgid "" -"*Optional*. For supergroups, the minimum allowed delay between " -"consecutive messages sent by each unpriviledged user; in seconds. " -"Returned only in :class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - -#: ../../docstring aiogram.types.chat.Chat.message_auto_delete_time:1 of -msgid "" -"*Optional*. The time after which all messages sent to the chat will be " -"automatically deleted; in seconds. Returned only in " -":class:`aiogram.methods.get_chat.GetChat`." -msgstr "" - #: ../../docstring aiogram.types.chat.Chat.has_aggressive_anti_spam_enabled:1 #: of msgid "" @@ -224,12 +215,28 @@ msgid "" ":class:`aiogram.methods.get_chat.GetChat`." msgstr "" +#: ../../docstring aiogram.types.chat.Chat.has_private_forwards:1 of +msgid "" +"*Optional*. :code:`True`, if privacy settings of the other party in the " +"private chat allows to use :code:`tg://user?id=` links only in " +"chats with the user. Returned only in " +":class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + #: ../../docstring aiogram.types.chat.Chat.has_protected_content:1 of msgid "" "*Optional*. :code:`True`, if messages from the chat can't be forwarded to" " other chats. Returned only in :class:`aiogram.methods.get_chat.GetChat`." msgstr "" +#: ../../docstring +#: aiogram.types.chat.Chat.has_restricted_voice_and_video_messages:1 of +msgid "" +"*Optional*. :code:`True`, if the privacy settings of the other party " +"restrict sending voice and video note messages in the private chat. " +"Returned only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + #: ../../docstring aiogram.types.chat.Chat.has_visible_history:1 of msgid "" "*Optional*. :code:`True`, if new chat members will have access to old " @@ -237,16 +244,24 @@ msgid "" ":class:`aiogram.methods.get_chat.GetChat`." msgstr "" -#: ../../docstring aiogram.types.chat.Chat.sticker_set_name:1 of +#: ../../docstring aiogram.types.chat.Chat.invite_link:1 of msgid "" -"*Optional*. For supergroups, name of group sticker set. Returned only in " +"*Optional*. Primary invite link, for groups, supergroups and channel " +"chats. Returned only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.join_by_request:1 of +msgid "" +"*Optional*. :code:`True`, if all users directly joining the supergroup " +"need to be approved by supergroup administrators. Returned only in " ":class:`aiogram.methods.get_chat.GetChat`." msgstr "" -#: ../../docstring aiogram.types.chat.Chat.can_set_sticker_set:1 of +#: ../../docstring aiogram.types.chat.Chat.join_to_send_messages:1 of msgid "" -"*Optional*. :code:`True`, if the bot can change the group sticker set. " -"Returned only in :class:`aiogram.methods.get_chat.GetChat`." +"*Optional*. :code:`True`, if users need to join the supergroup before " +"they can send messages. Returned only in " +":class:`aiogram.methods.get_chat.GetChat`." msgstr "" #: ../../docstring aiogram.types.chat.Chat.linked_chat_id:1 of @@ -266,6 +281,73 @@ msgid "" "connected. Returned only in :class:`aiogram.methods.get_chat.GetChat`." msgstr "" +#: ../../docstring aiogram.types.chat.Chat.message_auto_delete_time:1 of +msgid "" +"*Optional*. The time after which all messages sent to the chat will be " +"automatically deleted; in seconds. Returned only in " +":class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.permissions:1 of +msgid "" +"*Optional*. Default chat member permissions, for groups and supergroups. " +"Returned only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.personal_chat:1 of +msgid "" +"*Optional*. For private chats, the personal channel of the user. Returned" +" only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.photo:1 of +msgid "" +"*Optional*. Chat photo. Returned only in " +":class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.pinned_message:1 of +msgid "" +"*Optional*. The most recent pinned message (by sending date). Returned " +"only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.profile_accent_color_id:1 of +msgid "" +"*Optional*. Identifier of the accent color for the chat's profile " +"background. See `profile accent colors " +"`_ for more " +"details. Returned only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.profile_background_custom_emoji_id:1 +#: of +msgid "" +"*Optional*. Custom emoji identifier of the emoji chosen by the chat for " +"its profile background. Returned only in " +":class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.slow_mode_delay:1 of +msgid "" +"*Optional*. For supergroups, the minimum allowed delay between " +"consecutive messages sent by each unprivileged user; in seconds. Returned" +" only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.sticker_set_name:1 of +msgid "" +"*Optional*. For supergroups, name of group sticker set. Returned only in " +":class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + +#: ../../docstring aiogram.types.chat.Chat.unrestrict_boost_count:1 of +msgid "" +"*Optional*. For supergroups, the minimum number of boosts that a non-" +"administrator user needs to add in order to ignore slow mode and chat " +"permissions. Returned only in :class:`aiogram.methods.get_chat.GetChat`." +msgstr "" + #: aiogram.types.chat.Chat.shifted_id:1 of msgid "" "Returns shifted chat ID (positive and without \"-100\" prefix). Mostly " @@ -339,18 +421,7 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#banchatsenderchat" msgstr "" -#: aiogram.types.chat.Chat.ban aiogram.types.chat.Chat.ban_sender_chat -#: aiogram.types.chat.Chat.create_invite_link -#: aiogram.types.chat.Chat.delete_message aiogram.types.chat.Chat.do -#: aiogram.types.chat.Chat.edit_invite_link aiogram.types.chat.Chat.get_member -#: aiogram.types.chat.Chat.pin_message aiogram.types.chat.Chat.promote -#: aiogram.types.chat.Chat.restrict aiogram.types.chat.Chat.revoke_invite_link -#: aiogram.types.chat.Chat.set_administrator_custom_title -#: aiogram.types.chat.Chat.set_description -#: aiogram.types.chat.Chat.set_permissions aiogram.types.chat.Chat.set_photo -#: aiogram.types.chat.Chat.set_sticker_set aiogram.types.chat.Chat.set_title -#: aiogram.types.chat.Chat.unban aiogram.types.chat.Chat.unban_sender_chat -#: aiogram.types.chat.Chat.unpin_message of +#: ../../api/types/chat.rst msgid "Parameters" msgstr "" @@ -359,25 +430,7 @@ msgstr "" msgid "Unique identifier of the target sender chat" msgstr "" -#: aiogram.types.chat.Chat.ban aiogram.types.chat.Chat.ban_sender_chat -#: aiogram.types.chat.Chat.create_invite_link -#: aiogram.types.chat.Chat.delete_message aiogram.types.chat.Chat.delete_photo -#: aiogram.types.chat.Chat.delete_sticker_set aiogram.types.chat.Chat.do -#: aiogram.types.chat.Chat.edit_invite_link -#: aiogram.types.chat.Chat.export_invite_link -#: aiogram.types.chat.Chat.get_administrators -#: aiogram.types.chat.Chat.get_member aiogram.types.chat.Chat.get_member_count -#: aiogram.types.chat.Chat.leave aiogram.types.chat.Chat.pin_message -#: aiogram.types.chat.Chat.promote aiogram.types.chat.Chat.restrict -#: aiogram.types.chat.Chat.revoke_invite_link -#: aiogram.types.chat.Chat.set_administrator_custom_title -#: aiogram.types.chat.Chat.set_description -#: aiogram.types.chat.Chat.set_permissions aiogram.types.chat.Chat.set_photo -#: aiogram.types.chat.Chat.set_sticker_set aiogram.types.chat.Chat.set_title -#: aiogram.types.chat.Chat.unban aiogram.types.chat.Chat.unban_sender_chat -#: aiogram.types.chat.Chat.unpin_all_general_forum_topic_messages -#: aiogram.types.chat.Chat.unpin_all_messages -#: aiogram.types.chat.Chat.unpin_message of +#: ../../api/types/chat.rst msgid "Returns" msgstr "" @@ -712,10 +765,16 @@ msgid "" msgstr "" #: aiogram.types.chat.Chat.do:15 of -msgid "Unique identifier for the target message thread; supergroups only" +msgid "" +"Unique identifier of the business connection on behalf of which the " +"action will be sent" msgstr "" #: aiogram.types.chat.Chat.do:16 of +msgid "Unique identifier for the target message thread; for supergroups only" +msgstr "" + +#: aiogram.types.chat.Chat.do:17 of msgid "" "instance of method " ":class:`aiogram.methods.send_chat_action.SendChatAction`" @@ -901,12 +960,19 @@ msgstr "" #: aiogram.types.chat.Chat.unpin_message:10 of msgid "" -"Identifier of a message to unpin. If not specified, the most recent " -"pinned message (by sending date) will be unpinned." +"Unique identifier of the business connection on behalf of which the " +"message will be unpinned" msgstr "" #: aiogram.types.chat.Chat.unpin_message:11 of msgid "" +"Identifier of the message to unpin. Required if *business_connection_id* " +"is specified. If not specified, the most recent pinned message (by " +"sending date) will be unpinned." +msgstr "" + +#: aiogram.types.chat.Chat.unpin_message:12 of +msgid "" "instance of method " ":class:`aiogram.methods.unpin_chat_message.UnpinChatMessage`" msgstr "" @@ -937,12 +1003,18 @@ msgstr "" #: aiogram.types.chat.Chat.pin_message:11 of msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be pinned" +msgstr "" + +#: aiogram.types.chat.Chat.pin_message:12 of +msgid "" "Pass :code:`True` if it is not necessary to send a notification to all " "chat members about the new pinned message. Notifications are always " "disabled in channels and private chats." msgstr "" -#: aiogram.types.chat.Chat.pin_message:12 of +#: aiogram.types.chat.Chat.pin_message:13 of msgid "" "instance of method " ":class:`aiogram.methods.pin_chat_message.PinChatMessage`" @@ -1043,10 +1115,10 @@ msgstr "" #: aiogram.types.chat.Chat.promote:12 of msgid "" -"Pass :code:`True` if the administrator can access the chat event log, " -"boost list in channels, see channel members, report spam messages, see " -"anonymous administrators in supergroups and ignore slow mode. Implied by " -"any other administrator privilege" +"Pass :code:`True` if the administrator can access the chat event log, get" +" boost list, see hidden supergroup and channel members, report spam " +"messages and ignore slow mode. Implied by any other administrator " +"privilege." msgstr "" #: aiogram.types.chat.Chat.promote:13 of @@ -1082,43 +1154,44 @@ msgid "Pass :code:`True` if the administrator can invite new users to the chat" msgstr "" #: aiogram.types.chat.Chat.promote:19 of -msgid "" -"Pass :code:`True` if the administrator can post messages in the channel, " -"or access channel statistics; channels only" +msgid "Pass :code:`True` if the administrator can post stories to the chat" msgstr "" #: aiogram.types.chat.Chat.promote:20 of msgid "" -"Pass :code:`True` if the administrator can edit messages of other users " -"and can pin messages; channels only" +"Pass :code:`True` if the administrator can edit stories posted by other " +"users, post stories to the chat page, pin chat stories, and access the " +"chat's story archive" msgstr "" #: aiogram.types.chat.Chat.promote:21 of -msgid "Pass :code:`True` if the administrator can pin messages, supergroups only" +msgid "" +"Pass :code:`True` if the administrator can delete stories posted by other" +" users" msgstr "" #: aiogram.types.chat.Chat.promote:22 of msgid "" -"Pass :code:`True` if the administrator can post stories in the channel; " -"channels only" +"Pass :code:`True` if the administrator can post messages in the channel, " +"or access channel statistics; for channels only" msgstr "" #: aiogram.types.chat.Chat.promote:23 of msgid "" -"Pass :code:`True` if the administrator can edit stories posted by other " -"users; channels only" +"Pass :code:`True` if the administrator can edit messages of other users " +"and can pin messages; for channels only" msgstr "" #: aiogram.types.chat.Chat.promote:24 of msgid "" -"Pass :code:`True` if the administrator can delete stories posted by other" -" users; channels only" +"Pass :code:`True` if the administrator can pin messages; for supergroups " +"only" msgstr "" #: aiogram.types.chat.Chat.promote:25 of msgid "" "Pass :code:`True` if the user is allowed to create, rename, close, and " -"reopen forum topics, supergroups only" +"reopen forum topics; for supergroups only" msgstr "" #: aiogram.types.chat.Chat.promote:26 of @@ -1457,3 +1530,78 @@ msgstr "" #~ "any. Returned only in " #~ ":class:`aiogram.methods.get_chat.GetChat`." #~ msgstr "" + +#~ msgid "" +#~ "Type of chat, can be either " +#~ "'private', 'group', 'supergroup' or 'channel'" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. For supergroups, the minimum " +#~ "allowed delay between consecutive messages " +#~ "sent by each unpriviledged user; in " +#~ "seconds. Returned only in " +#~ ":class:`aiogram.methods.get_chat.GetChat`." +#~ msgstr "" + +#~ msgid "Unique identifier for the target message thread; supergroups only" +#~ msgstr "" + +#~ msgid "" +#~ "Identifier of a message to unpin. " +#~ "If not specified, the most recent " +#~ "pinned message (by sending date) will" +#~ " be unpinned." +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can access the chat event log, " +#~ "boost list in channels, see channel " +#~ "members, report spam messages, see " +#~ "anonymous administrators in supergroups and" +#~ " ignore slow mode. Implied by any " +#~ "other administrator privilege" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can post messages in the channel, " +#~ "or access channel statistics; channels " +#~ "only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can edit messages of other users " +#~ "and can pin messages; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can pin messages, supergroups only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can post stories in the channel; " +#~ "channels only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can edit stories posted by other " +#~ "users; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the administrator " +#~ "can delete stories posted by other " +#~ "users; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the user is " +#~ "allowed to create, rename, close, and" +#~ " reopen forum topics, supergroups only" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_administrator_rights.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_administrator_rights.po index 2ddb6393..c20f2860 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_administrator_rights.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_administrator_rights.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-29 02:16+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -39,10 +39,10 @@ msgstr "" #: aiogram.types.chat_administrator_rights.ChatAdministratorRights.can_manage_chat:1 #: of msgid "" -":code:`True`, if the administrator can access the chat event log, boost " -"list in channels, see channel members, report spam messages, see " -"anonymous administrators in supergroups and ignore slow mode. Implied by " -"any other administrator privilege" +":code:`True`, if the administrator can access the chat event log, get " +"boost list, see hidden supergroup and channel members, report spam " +"messages and ignore slow mode. Implied by any other administrator " +"privilege." msgstr "" #: ../../docstring @@ -89,12 +89,35 @@ msgstr "" msgid ":code:`True`, if the user is allowed to invite new users to the chat" msgstr "" +#: ../../docstring +#: aiogram.types.chat_administrator_rights.ChatAdministratorRights.can_post_stories:1 +#: of +msgid ":code:`True`, if the administrator can post stories to the chat" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_administrator_rights.ChatAdministratorRights.can_edit_stories:1 +#: of +msgid "" +":code:`True`, if the administrator can edit stories posted by other " +"users, post stories to the chat page, pin chat stories, and access the " +"chat's story archive" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_administrator_rights.ChatAdministratorRights.can_delete_stories:1 +#: of +msgid "" +":code:`True`, if the administrator can delete stories posted by other " +"users" +msgstr "" + #: ../../docstring #: aiogram.types.chat_administrator_rights.ChatAdministratorRights.can_post_messages:1 #: of msgid "" "*Optional*. :code:`True`, if the administrator can post messages in the " -"channel, or access channel statistics; channels only" +"channel, or access channel statistics; for channels only" msgstr "" #: ../../docstring @@ -102,39 +125,15 @@ msgstr "" #: of msgid "" "*Optional*. :code:`True`, if the administrator can edit messages of other" -" users and can pin messages; channels only" +" users and can pin messages; for channels only" msgstr "" #: ../../docstring #: aiogram.types.chat_administrator_rights.ChatAdministratorRights.can_pin_messages:1 #: of msgid "" -"*Optional*. :code:`True`, if the user is allowed to pin messages; groups " -"and supergroups only" -msgstr "" - -#: ../../docstring -#: aiogram.types.chat_administrator_rights.ChatAdministratorRights.can_post_stories:1 -#: of -msgid "" -"*Optional*. :code:`True`, if the administrator can post stories in the " -"channel; channels only" -msgstr "" - -#: ../../docstring -#: aiogram.types.chat_administrator_rights.ChatAdministratorRights.can_edit_stories:1 -#: of -msgid "" -"*Optional*. :code:`True`, if the administrator can edit stories posted by" -" other users; channels only" -msgstr "" - -#: ../../docstring -#: aiogram.types.chat_administrator_rights.ChatAdministratorRights.can_delete_stories:1 -#: of -msgid "" -"*Optional*. :code:`True`, if the administrator can delete stories posted " -"by other users; channels only" +"*Optional*. :code:`True`, if the user is allowed to pin messages; for " +"groups and supergroups only" msgstr "" #: ../../docstring @@ -142,7 +141,7 @@ msgstr "" #: of msgid "" "*Optional*. :code:`True`, if the user is allowed to create, rename, " -"close, and reopen forum topics; supergroups only" +"close, and reopen forum topics; for supergroups only" msgstr "" #~ msgid "" @@ -198,3 +197,57 @@ msgstr "" #~ " can delete stories posted by other" #~ " users" #~ msgstr "" + +#~ msgid "" +#~ ":code:`True`, if the administrator can " +#~ "access the chat event log, boost " +#~ "list in channels, see channel members," +#~ " report spam messages, see anonymous " +#~ "administrators in supergroups and ignore " +#~ "slow mode. Implied by any other " +#~ "administrator privilege" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the administrator" +#~ " can post messages in the channel," +#~ " or access channel statistics; channels " +#~ "only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the administrator" +#~ " can edit messages of other users " +#~ "and can pin messages; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the user is" +#~ " allowed to pin messages; groups and" +#~ " supergroups only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the administrator" +#~ " can post stories in the channel; " +#~ "channels only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the administrator" +#~ " can edit stories posted by other " +#~ "users; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the administrator" +#~ " can delete stories posted by other" +#~ " users; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the user is" +#~ " allowed to create, rename, close, " +#~ "and reopen forum topics; supergroups " +#~ "only" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_background.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_background.po new file mode 100644 index 00000000..67fb78e8 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_background.po @@ -0,0 +1,37 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/chat_background.rst:3 +msgid "ChatBackground" +msgstr "" + +#: aiogram.types.chat_background.ChatBackground:1 of +msgid "This object represents a chat background." +msgstr "" + +#: aiogram.types.chat_background.ChatBackground:3 of +msgid "Source: https://core.telegram.org/bots/api#chatbackground" +msgstr "" + +#: ../../docstring aiogram.types.chat_background.ChatBackground.type:1 of +msgid "Type of the background" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_added.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_added.po index 7f121477..49a5920d 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_added.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_added.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -23,3 +23,16 @@ msgstr "" #: ../../api/types/chat_boost_added.rst:3 msgid "ChatBoostAdded" msgstr "" + +#: aiogram.types.chat_boost_added.ChatBoostAdded:1 of +msgid "This object represents a service message about a user boosting a chat." +msgstr "" + +#: aiogram.types.chat_boost_added.ChatBoostAdded:3 of +msgid "Source: https://core.telegram.org/bots/api#chatboostadded" +msgstr "" + +#: ../../docstring aiogram.types.chat_boost_added.ChatBoostAdded.boost_count:1 +#: of +msgid "Number of boosts added by the user" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_source_giveaway.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_source_giveaway.po index 9072670a..8b6784b9 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_source_giveaway.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_source_giveaway.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -26,9 +26,11 @@ msgstr "" #: aiogram.types.chat_boost_source_giveaway.ChatBoostSourceGiveaway:1 of msgid "" -"The boost was obtained by the creation of a Telegram Premium giveaway. " -"This boosts the chat 4 times for the duration of the corresponding " -"Telegram Premium subscription." +"The boost was obtained by the creation of a Telegram Premium or a " +"Telegram Star giveaway. This boosts the chat 4 times for the duration of " +"the corresponding Telegram Premium subscription for Telegram Premium " +"giveaways and *prize_star_count* / 500 times for one year for Telegram " +"Star giveaways." msgstr "" #: aiogram.types.chat_boost_source_giveaway.ChatBoostSourceGiveaway:3 of @@ -50,7 +52,17 @@ msgstr "" #: ../../docstring #: aiogram.types.chat_boost_source_giveaway.ChatBoostSourceGiveaway.user:1 of -msgid "*Optional*. User that won the prize in the giveaway if any" +msgid "" +"*Optional*. User that won the prize in the giveaway if any; for Telegram " +"Premium giveaways only" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_boost_source_giveaway.ChatBoostSourceGiveaway.prize_star_count:1 +#: of +msgid "" +"*Optional*. The number of Telegram Stars to be split between giveaway " +"winners; for Telegram Star giveaways only" msgstr "" #: ../../docstring @@ -60,3 +72,14 @@ msgid "" "*Optional*. True, if the giveaway was completed, but there was no user to" " win the prize" msgstr "" + +#~ msgid "" +#~ "The boost was obtained by the " +#~ "creation of a Telegram Premium giveaway." +#~ " This boosts the chat 4 times " +#~ "for the duration of the corresponding" +#~ " Telegram Premium subscription." +#~ msgstr "" + +#~ msgid "*Optional*. User that won the prize in the giveaway if any" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_updated.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_updated.po index 4ff2e4cd..570bf8c2 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_updated.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_boost_updated.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -37,5 +37,8 @@ msgid "Chat which was boosted" msgstr "" #: ../../docstring aiogram.types.chat_boost_updated.ChatBoostUpdated.boost:1 of -msgid "Infomation about the chat boost" +msgid "Information about the chat boost" msgstr "" + +#~ msgid "Infomation about the chat boost" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_full_info.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_full_info.po new file mode 100644 index 00000000..fdecd584 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_full_info.po @@ -0,0 +1,322 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/chat_full_info.rst:3 +msgid "ChatFullInfo" +msgstr "" + +#: aiogram.types.chat_full_info.ChatFullInfo:1 of +msgid "This object contains full information about a chat." +msgstr "" + +#: aiogram.types.chat_full_info.ChatFullInfo:3 of +msgid "Source: https://core.telegram.org/bots/api#chatfullinfo" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.id:1 of +msgid "" +"Unique identifier for this chat. This number may have more than 32 " +"significant bits and some programming languages may have " +"difficulty/silent defects in interpreting it. But it has at most 52 " +"significant bits, so a signed 64-bit integer or double-precision float " +"type are safe for storing this identifier." +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.type:1 of +msgid "" +"Type of the chat, can be either 'private', 'group', 'supergroup' or " +"'channel'" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.accent_color_id:1 +#: of +msgid "" +"Identifier of the accent color for the chat name and backgrounds of the " +"chat photo, reply header, and link preview. See `accent colors " +"`_ for more details." +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.max_reaction_count:1 of +msgid "The maximum number of reactions that can be set on a message in the chat" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.title:1 of +msgid "*Optional*. Title, for supergroups, channels and group chats" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.username:1 of +msgid "" +"*Optional*. Username, for private chats, supergroups and channels if " +"available" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.first_name:1 of +msgid "*Optional*. First name of the other party in a private chat" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.last_name:1 of +msgid "*Optional*. Last name of the other party in a private chat" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.is_forum:1 of +msgid "" +"*Optional*. :code:`True`, if the supergroup chat is a forum (has `topics " +"`_ enabled)" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.photo:1 of +msgid "*Optional*. Chat photo" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.active_usernames:1 +#: of +msgid "" +"*Optional*. If non-empty, the list of all `active chat usernames " +"`_; for private chats, supergroups and channels" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.birthdate:1 of +msgid "*Optional*. For private chats, the date of birth of the user" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.business_intro:1 +#: of +msgid "" +"*Optional*. For private chats with business accounts, the intro of the " +"business" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.business_location:1 of +msgid "" +"*Optional*. For private chats with business accounts, the location of the" +" business" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.business_opening_hours:1 of +msgid "" +"*Optional*. For private chats with business accounts, the opening hours " +"of the business" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.personal_chat:1 of +msgid "*Optional*. For private chats, the personal channel of the user" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.available_reactions:1 of +msgid "" +"*Optional*. List of available reactions allowed in the chat. If omitted, " +"then all `emoji reactions " +"`_ are allowed." +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.background_custom_emoji_id:1 of +msgid "" +"*Optional*. Custom emoji identifier of the emoji chosen by the chat for " +"the reply header and link preview background" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.profile_accent_color_id:1 of +msgid "" +"*Optional*. Identifier of the accent color for the chat's profile " +"background. See `profile accent colors " +"`_ for more " +"details." +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.profile_background_custom_emoji_id:1 +#: of +msgid "" +"*Optional*. Custom emoji identifier of the emoji chosen by the chat for " +"its profile background" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.emoji_status_custom_emoji_id:1 of +msgid "" +"*Optional*. Custom emoji identifier of the emoji status of the chat or " +"the other party in a private chat" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.emoji_status_expiration_date:1 of +msgid "" +"*Optional*. Expiration date of the emoji status of the chat or the other " +"party in a private chat, in Unix time, if any" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.bio:1 of +msgid "*Optional*. Bio of the other party in a private chat" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.has_private_forwards:1 of +msgid "" +"*Optional*. :code:`True`, if privacy settings of the other party in the " +"private chat allows to use :code:`tg://user?id=` links only in " +"chats with the user" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.has_restricted_voice_and_video_messages:1 +#: of +msgid "" +"*Optional*. :code:`True`, if the privacy settings of the other party " +"restrict sending voice and video note messages in the private chat" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.join_to_send_messages:1 of +msgid "" +"*Optional*. :code:`True`, if users need to join the supergroup before " +"they can send messages" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.join_by_request:1 +#: of +msgid "" +"*Optional*. :code:`True`, if all users directly joining the supergroup " +"without using an invite link need to be approved by supergroup " +"administrators" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.description:1 of +msgid "*Optional*. Description, for groups, supergroups and channel chats" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.invite_link:1 of +msgid "*Optional*. Primary invite link, for groups, supergroups and channel chats" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.pinned_message:1 +#: of +msgid "*Optional*. The most recent pinned message (by sending date)" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.permissions:1 of +msgid "*Optional*. Default chat member permissions, for groups and supergroups" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.can_send_gift:1 of +msgid "*Optional*. :code:`True`, if gifts can be sent to the chat" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.can_send_paid_media:1 of +msgid "" +"*Optional*. :code:`True`, if paid media messages can be sent or forwarded" +" to the channel chat. The field is available only for channel chats." +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.slow_mode_delay:1 +#: of +msgid "" +"*Optional*. For supergroups, the minimum allowed delay between " +"consecutive messages sent by each unprivileged user; in seconds" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.unrestrict_boost_count:1 of +msgid "" +"*Optional*. For supergroups, the minimum number of boosts that a non-" +"administrator user needs to add in order to ignore slow mode and chat " +"permissions" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.message_auto_delete_time:1 of +msgid "" +"*Optional*. The time after which all messages sent to the chat will be " +"automatically deleted; in seconds" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.has_aggressive_anti_spam_enabled:1 +#: of +msgid "" +"*Optional*. :code:`True`, if aggressive anti-spam checks are enabled in " +"the supergroup. The field is only available to chat administrators." +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.has_hidden_members:1 of +msgid "" +"*Optional*. :code:`True`, if non-administrators can only get the list of " +"bots and administrators in the chat" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.has_protected_content:1 of +msgid "" +"*Optional*. :code:`True`, if messages from the chat can't be forwarded to" +" other chats" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.has_visible_history:1 of +msgid "" +"*Optional*. :code:`True`, if new chat members will have access to old " +"messages; available only to chat administrators" +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.sticker_set_name:1 +#: of +msgid "*Optional*. For supergroups, name of the group sticker set" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.can_set_sticker_set:1 of +msgid "*Optional*. :code:`True`, if the bot can change the group sticker set" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_full_info.ChatFullInfo.custom_emoji_sticker_set_name:1 of +msgid "" +"*Optional*. For supergroups, the name of the group's custom emoji sticker" +" set. Custom emoji from this set can be used by all users and bots in the" +" group." +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.linked_chat_id:1 +#: of +msgid "" +"*Optional*. Unique identifier for the linked chat, i.e. the discussion " +"group identifier for a channel and vice versa; for supergroups and " +"channel chats. This identifier may be greater than 32 bits and some " +"programming languages may have difficulty/silent defects in interpreting " +"it. But it is smaller than 52 bits, so a signed 64 bit integer or double-" +"precision float type are safe for storing this identifier." +msgstr "" + +#: ../../docstring aiogram.types.chat_full_info.ChatFullInfo.location:1 of +msgid "" +"*Optional*. For supergroups, the location to which the supergroup is " +"connected" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_invite_link.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_invite_link.po index 15c1a9e0..3d3d05e4 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_invite_link.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_invite_link.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/chat_invite_link.rst:3 msgid "ChatInviteLink" @@ -80,3 +80,18 @@ msgstr "" #: of msgid "*Optional*. Number of pending join requests created using this link" msgstr "" + +#: ../../docstring +#: aiogram.types.chat_invite_link.ChatInviteLink.subscription_period:1 of +msgid "" +"*Optional*. The number of seconds the subscription will be active for " +"before the next payment" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_invite_link.ChatInviteLink.subscription_price:1 of +msgid "" +"*Optional*. The amount of Telegram Stars a user must pay initially and " +"after each subsequent subscription period to be a member of the chat " +"using the link" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_join_request.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_join_request.po index 58499cd0..14043885 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_join_request.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_join_request.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -127,42 +127,7 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#approvechatjoinrequest" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.approve -#: aiogram.types.chat_join_request.ChatJoinRequest.decline of +#: ../../api/types/chat_join_request.rst msgid "Returns" msgstr "" @@ -215,40 +180,7 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#sendmessage" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm of +#: ../../api/types/chat_join_request.rst msgid "Parameters" msgstr "" @@ -270,8 +202,6 @@ msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:11 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:11 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:11 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:16 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:12 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:12 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:11 @@ -292,140 +222,142 @@ msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:11 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:11 of msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:11 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:11 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:12 of +msgid "" "Unique identifier for the target message thread (topic) of the forum; for" " forum supergroups only" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:12 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:13 of msgid "" "Mode for parsing entities in the message text. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:13 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer:14 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:14 of msgid "" "A JSON-serialized list of special entities that appear in message text, " "which can be specified instead of *parse_mode*" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:14 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:15 of msgid "Link preview generation options for the message" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:13 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:32 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:32 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:23 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:23 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:16 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:14 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:14 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:17 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:17 of msgid "" "Sends the message `silently `_. Users will receive a notification with no sound." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:33 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:33 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:24 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:24 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:22 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:22 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:17 of -msgid "Protects the contents of the sent message from forwarding and saving" -msgstr "" - #: aiogram.types.chat_join_request.ChatJoinRequest.answer:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:22 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:23 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:22 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:22 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:17 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:14 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:19 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:19 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:14 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:34 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:34 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:33 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:33 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:19 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:19 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:25 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:27 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:27 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:15 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:15 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:21 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:26 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:17 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:26 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:18 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:18 of -msgid "Description of the message to reply to" +msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:23 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:24 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:23 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:23 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:18 @@ -434,34 +366,40 @@ msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:15 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:20 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:34 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:34 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:20 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:20 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:26 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:28 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:28 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:16 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:16 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:22 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:22 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:27 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:18 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:27 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:19 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:19 of msgid "" -"Additional interface options. A JSON-serialized object for an `inline " -"keyboard `_, " -"`custom reply keyboard " -"`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:24 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:25 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:24 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:24 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:19 @@ -472,40 +410,35 @@ msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:21 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:16 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:36 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:36 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:35 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:35 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:21 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:21 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:27 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:27 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:29 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:29 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:17 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:17 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:23 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:23 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:28 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:19 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:28 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:20 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:20 of msgid "" -"Pass :code:`True` if the message should be sent even if the specified " -"replied-to message is not found" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:20 of -msgid "Disables link previews for links in this message" -msgstr "" - -#: aiogram.types.chat_join_request.ChatJoinRequest.answer:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:25 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:26 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:25 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:25 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:20 @@ -516,30 +449,147 @@ msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:22 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:17 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:37 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:37 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:36 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:36 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:22 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:22 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:28 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:28 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:17 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:17 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:30 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:30 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:18 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:18 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:24 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:24 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:29 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:20 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:29 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:21 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:21 of -msgid "If the message is a reply, ID of the original message" +msgid "Description of the message to reply to" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:27 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:27 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:31 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:31 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:30 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:30 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:22 of +msgid "" +"Additional interface options. A JSON-serialized object for an `inline " +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove a reply keyboard or to force a reply from the user" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer:22 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:22 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:28 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:28 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:27 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:27 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:38 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:38 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:32 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:32 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:31 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:31 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:23 of +msgid "" +"Pass :code:`True` if the message should be sent even if the specified " +"replied-to message is not found" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:23 of +msgid "Disables link previews for links in this message" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:29 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:29 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:28 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:28 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:39 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:39 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:33 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:33 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:27 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:27 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:32 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:32 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:24 of +msgid "If the message is a reply, ID of the original message" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_pm:25 of msgid "instance of method :class:`aiogram.methods.send_message.SendMessage`" msgstr "" @@ -575,31 +625,31 @@ msgid "" "Sending Files » `" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:12 of -msgid "Duration of sent animation in seconds" -msgstr "" - #: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:13 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:13 of -msgid "Animation width" +msgid "Duration of sent animation in seconds" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:14 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:14 of -msgid "Animation height" +msgid "Animation width" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:15 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:15 of +msgid "Animation height" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:16 of msgid "" "Thumbnail of the file sent; can be ignored if thumbnail generation for " "the file is supported server-side. The thumbnail should be in JPEG format" @@ -611,47 +661,56 @@ msgid "" "information on Sending Files » `" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:16 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:17 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:17 of msgid "" "Animation caption (may also be used when resending animation by " "*file_id*), 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:17 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:18 of msgid "" "Mode for parsing entities in the animation caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:14 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:15 of msgid "" "A JSON-serialized list of special entities that appear in the caption, " "which can be specified instead of *parse_mode*" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:19 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:22 of +msgid "Pass :code:`True`, if the caption must be shown above the message media" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:21 of msgid "" "Pass :code:`True` if the animation needs to be covered with a spoiler " "animation" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:26 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:26 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation:30 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm:30 of msgid "instance of method :class:`aiogram.methods.send_animation.SendAnimation`" msgstr "" @@ -688,36 +747,36 @@ msgid "" "Files » `" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:13 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:14 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:14 of msgid "Audio caption, 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:14 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:15 of msgid "" "Mode for parsing entities in the audio caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:16 of -msgid "Duration of the audio in seconds" -msgstr "" - #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:17 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:17 of -msgid "Performer" +msgid "Duration of the audio in seconds" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:18 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:18 of +msgid "Performer" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:19 of msgid "Track name" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:26 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:26 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio:29 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm:29 of msgid "instance of method :class:`aiogram.methods.send_audio.SendAudio`" msgstr "" @@ -750,20 +809,20 @@ msgstr "" msgid "Contact's first name" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:13 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:14 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:14 of msgid "Contact's last name" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:14 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:15 of msgid "" "Additional data about the contact in the form of a `vCard " "`_, 0-2048 bytes" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:21 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm:24 of msgid "instance of method :class:`aiogram.methods.send_contact.SendContact`" msgstr "" @@ -797,30 +856,30 @@ msgid "" "/form-data. :ref:`More information on Sending Files » `" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:13 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:14 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:14 of msgid "" "Document caption (may also be used when resending documents by " "*file_id*), 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:14 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:14 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:15 of msgid "" "Mode for parsing entities in the document caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:16 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:17 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:17 of msgid "" "Disables automatic server-side content type detection for files uploaded " "using multipart/form-data" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:23 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:23 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm:26 of msgid "instance of method :class:`aiogram.methods.send_document.SendDocument`" msgstr "" @@ -850,8 +909,8 @@ msgid "" " up your games via `@BotFather `_." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:15 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:18 of msgid "" "A JSON-serialized object for an `inline keyboard " "`_. If empty, " @@ -859,8 +918,8 @@ msgid "" "button must launch the game." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:18 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm:21 of msgid "instance of method :class:`aiogram.methods.send_game.SendGame`" msgstr "" @@ -897,28 +956,32 @@ msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:12 of msgid "" "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to " -"the user, use for your internal processes." +"the user, use it for your internal processes." msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:13 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:13 of msgid "" -"Payment provider token, obtained via `@BotFather " -"`_" +"Three-letter ISO 4217 currency code, see `more on currencies " +"`_. Pass " +"'XTR' for payments in `Telegram Stars `_." msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:14 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:14 of msgid "" -"Three-letter ISO 4217 currency code, see `more on currencies " -"`_" +"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 " +"`_." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:15 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:16 of msgid "" -"Price breakdown, a JSON-serialized list of components (e.g. product " -"price, tax, discount, delivery cost, delivery tax, bonus, etc.)" +"Payment provider token, obtained via `@BotFather " +"`_. Pass an empty string for payments in " +"`Telegram Stars `_." msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:17 @@ -930,7 +993,8 @@ msgid "" "parameter in `currencies.json " "`_, it shows the" " number of digits past the decimal point for each currency (2 for the " -"majority of currencies). Defaults to 0" +"majority of currencies). Defaults to 0. Not supported for payments in " +"`Telegram Stars `_." msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:18 @@ -989,47 +1053,59 @@ msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:25 of msgid "" "Pass :code:`True` if you require the user's full name to complete the " -"order" +"order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:26 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:26 of msgid "" "Pass :code:`True` if you require the user's phone number to complete the " -"order" +"order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:27 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:27 of msgid "" "Pass :code:`True` if you require the user's email address to complete the" -" order" +" order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:28 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:28 of msgid "" "Pass :code:`True` if you require the user's shipping address to complete " -"the order" +"the order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:29 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:29 of -msgid "Pass :code:`True` if the user's phone number should be sent to provider" +msgid "" +"Pass :code:`True` if the user's phone number should be sent to the " +"provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:30 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:30 of -msgid "Pass :code:`True` if the user's email address should be sent to provider" +msgid "" +"Pass :code:`True` if the user's email address should be sent to the " +"provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:31 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:31 of -msgid "Pass :code:`True` if the final price depends on the shipping method" +msgid "" +"Pass :code:`True` if the final price depends on the shipping method. " +"Ignored for payments in `Telegram Stars `_." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:35 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:35 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:37 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:37 of msgid "" "A JSON-serialized object for an `inline keyboard " "`_. If empty, " @@ -1037,8 +1113,8 @@ msgid "" "first button must be a Pay button." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:38 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:38 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice:40 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm:40 of msgid "instance of method :class:`aiogram.methods.send_invoice.SendInvoice`" msgstr "" @@ -1071,36 +1147,37 @@ msgstr "" msgid "Longitude of the location" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:13 of -msgid "The radius of uncertainty for the location, measured in meters; 0-1500" -msgstr "" - #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:14 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:14 of -msgid "" -"Period in seconds for which the location will be updated (see `Live " -"Locations `_, should be between" -" 60 and 86400." +msgid "The radius of uncertainty for the location, measured in meters; 0-1500" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:15 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:15 of msgid "" -"For live locations, a direction in which the user is moving, in degrees. " -"Must be between 1 and 360 if specified." +"Period in seconds during which the location will be updated (see `Live " +"Locations `_, should be between" +" 60 and 86400, or 0x7FFFFFFF for live locations that can be edited " +"indefinitely." msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:16 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:16 of msgid "" +"For live locations, a direction in which the user is moving, in degrees. " +"Must be between 1 and 360 if specified." +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:17 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:17 of +msgid "" "For live locations, a maximum distance for proximity alerts about " "approaching another chat member, in meters. Must be between 1 and 100000 " "if specified." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:23 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:23 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm:26 of msgid "instance of method :class:`aiogram.methods.send_location.SendLocation`" msgstr "" @@ -1134,25 +1211,25 @@ msgid "" " items" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:12 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:13 of msgid "" "Sends messages `silently `_. Users will receive a notification with no sound." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:13 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:14 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:14 of msgid "Protects the contents of the sent messages from forwarding and saving" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:16 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:19 of msgid "If the messages are a reply, ID of the original message" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:17 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm:20 of msgid "" "instance of method " ":class:`aiogram.methods.send_media_group.SendMediaGroup`" @@ -1189,30 +1266,30 @@ msgid "" "files>`" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:12 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:13 of msgid "" "Photo caption (may also be used when resending photos by *file_id*), " "0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:13 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:14 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:14 of msgid "" "Mode for parsing entities in the photo caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:15 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:17 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:17 of msgid "" "Pass :code:`True` if the photo needs to be covered with a spoiler " "animation" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:22 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:22 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo:26 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm:26 of msgid "instance of method :class:`aiogram.methods.send_photo.SendPhoto`" msgstr "" @@ -1242,82 +1319,95 @@ msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:11 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:11 of -msgid "" -"A JSON-serialized list of answer options, 2-10 strings 1-100 characters " -"each" -msgstr "" - -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:13 of -msgid ":code:`True`, if the poll needs to be anonymous, defaults to :code:`True`" +msgid "A JSON-serialized list of 2-10 answer options" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:14 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:14 of -msgid "Poll type, 'quiz' or 'regular', defaults to 'regular'" +msgid "" +"Mode for parsing entities in the question. See `formatting options " +"`_ for more " +"details. Currently, only custom emoji entities are allowed" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:15 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:15 of msgid "" -":code:`True`, if the poll allows multiple answers, ignored for polls in " -"quiz mode, defaults to :code:`False`" +"A JSON-serialized list of special entities that appear in the poll " +"question. It can be specified instead of *question_parse_mode*" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:16 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:16 of +msgid ":code:`True`, if the poll needs to be anonymous, defaults to :code:`True`" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:17 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:17 of +msgid "Poll type, 'quiz' or 'regular', defaults to 'regular'" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:18 of +msgid "" +":code:`True`, if the poll allows multiple answers, ignored for polls in " +"quiz mode, defaults to :code:`False`" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:19 of msgid "" "0-based identifier of the correct answer option, required for polls in " "quiz mode" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:17 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:20 of msgid "" "Text that is shown when a user chooses an incorrect answer or taps on the" " lamp icon in a quiz-style poll, 0-200 characters with at most 2 line " "feeds after entities parsing" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:18 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:21 of msgid "" "Mode for parsing entities in the explanation. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:19 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:22 of msgid "" "A JSON-serialized list of special entities that appear in the poll " -"explanation, which can be specified instead of *parse_mode*" +"explanation. It can be specified instead of *explanation_parse_mode*" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:20 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:23 of msgid "" "Amount of time in seconds the poll will be active after creation, 5-600. " "Can't be used together with *close_date*." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:21 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:24 of msgid "" "Point in time (Unix timestamp) when the poll will be automatically " "closed. Must be at least 5 and no more than 600 seconds in the future. " "Can't be used together with *open_period*." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:22 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:22 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:25 of msgid "" "Pass :code:`True` if the poll needs to be immediately closed. This can be" " useful for poll preview." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:29 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:29 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll:34 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm:34 of msgid "instance of method :class:`aiogram.methods.send_poll.SendPoll`" msgstr "" @@ -1341,8 +1431,8 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#senddice" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:11 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:11 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:12 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:12 of msgid "" "Emoji on which the dice throw animation is based. Currently, must be one " "of '🎲', '🎯', '🏀', '⚽', '🎳', or '🎰'. Dice can have values 1-6 for '🎲', '🎯'" @@ -1350,13 +1440,13 @@ msgid "" "to '🎲'" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:13 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:14 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:14 of msgid "Protects the contents of the sent message from forwarding" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:18 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice:21 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm:21 of msgid "instance of method :class:`aiogram.methods.send_dice.SendDice`" msgstr "" @@ -1387,19 +1477,19 @@ msgstr "" msgid "" "Sticker to send. Pass a file_id as String to send a file that exists on " "the Telegram servers (recommended), pass an HTTP URL as a String for " -"Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP " -"or .TGS sticker using multipart/form-data. :ref:`More information on " -"Sending Files » `. Video stickers can only be sent by a " -"file_id. Animated stickers can't be sent via an HTTP URL." +"Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP," +" .TGS, or .WEBM sticker using multipart/form-data. :ref:`More information" +" on Sending Files » `. Video and animated stickers can't " +"be sent via an HTTP URL." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:12 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:13 of msgid "Emoji associated with the sticker; only for just uploaded stickers" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:19 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker:22 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm:22 of msgid "instance of method :class:`aiogram.methods.send_sticker.SendSticker`" msgstr "" @@ -1442,33 +1532,33 @@ msgstr "" msgid "Address of the venue" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:15 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:16 of msgid "Foursquare identifier of the venue" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:16 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:17 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:17 of msgid "" "Foursquare type of the venue, if known. (For example, " "'arts_entertainment/default', 'arts_entertainment/aquarium' or " "'food/icecream'.)" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:17 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:18 of msgid "Google Places identifier of the venue" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:18 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:18 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:19 of msgid "" "Google Places type of the venue. (See `supported types " "`_.)" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:25 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:25 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue:28 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm:28 of msgid "instance of method :class:`aiogram.methods.send_venue.SendVenue`" msgstr "" @@ -1505,52 +1595,68 @@ msgid "" "files>`" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:12 of -msgid "Duration of sent video in seconds" -msgstr "" - #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:13 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:13 of -msgid "Video width" +msgid "Duration of sent video in seconds" msgstr "" #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:14 #: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:14 of +msgid "Video width" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:15 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:15 of msgid "Video height" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:16 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:16 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:17 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:17 of +msgid "" +"Cover for the video in the message. Pass a file_id to send a file that " +"exists on the Telegram servers (recommended), pass an HTTP URL for " +"Telegram to get a file from the Internet, or pass " +"'attach://' to upload a new one using multipart/form-" +"data under name. :ref:`More information on Sending " +"Files » `" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:18 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:18 of +msgid "Start timestamp for the video in the message" +msgstr "" + +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:19 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:19 of msgid "" "Video caption (may also be used when resending videos by *file_id*), " "0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:17 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:17 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:20 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:20 of msgid "" "Mode for parsing entities in the video caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:19 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:19 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:23 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:23 of msgid "" "Pass :code:`True` if the video needs to be covered with a spoiler " "animation" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:20 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:20 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:24 of msgid "Pass :code:`True` if the uploaded video is suitable for streaming" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:27 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:27 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video:33 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm:33 of msgid "instance of method :class:`aiogram.methods.send_video.SendVideo`" msgstr "" @@ -1585,13 +1691,13 @@ msgid "" "files>`. Sending video notes by a URL is currently unsupported" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:13 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:14 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:14 of msgid "Video width and height, i.e. diameter of the video message" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:21 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:21 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note:24 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm:24 of msgid "instance of method :class:`aiogram.methods.send_video_note.SendVideoNote`" msgstr "" @@ -1607,8 +1713,9 @@ msgstr "" msgid "" "Use this method to send audio files, if you want Telegram clients to " "display the file as a playable voice message. For this to work, your " -"audio must be in an .OGG file encoded with OPUS (other formats may be " -"sent as :class:`aiogram.types.audio.Audio` or " +"audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in" +" .M4A format (other formats may be sent as " +":class:`aiogram.types.audio.Audio` or " ":class:`aiogram.types.document.Document`). On success, the sent " ":class:`aiogram.types.message.Message` is returned. Bots can currently " "send voice messages of up to 50 MB in size, this limit may be changed in " @@ -1630,26 +1737,26 @@ msgid "" "files>`" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:12 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:12 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:13 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:13 of msgid "Voice message caption, 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:13 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:13 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:14 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:14 of msgid "" "Mode for parsing entities in the voice message caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:15 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:15 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:16 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:16 of msgid "Duration of the voice message in seconds" msgstr "" -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:22 -#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:22 of +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice:25 +#: aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm:25 of msgid "instance of method :class:`aiogram.methods.send_voice.SendVoice`" msgstr "" @@ -1676,3 +1783,142 @@ msgstr "" #~ "assuming no other administrator contacted " #~ "the user." #~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" + +#~ msgid "" +#~ "Bot-defined invoice payload, 1-128 " +#~ "bytes. This will not be displayed " +#~ "to the user, use for your internal" +#~ " processes." +#~ msgstr "" + +#~ msgid "" +#~ "Payment provider token, obtained via " +#~ "`@BotFather `_" +#~ msgstr "" + +#~ msgid "" +#~ "Three-letter ISO 4217 currency code, " +#~ "see `more on currencies " +#~ "`_" +#~ msgstr "" + +#~ msgid "" +#~ "Price breakdown, a JSON-serialized list" +#~ " of components (e.g. product price, " +#~ "tax, discount, delivery cost, delivery " +#~ "tax, bonus, etc.)" +#~ msgstr "" + +#~ msgid "" +#~ "The maximum accepted amount for tips " +#~ "in the *smallest units* of the " +#~ "currency (integer, **not** float/double). For" +#~ " example, for a maximum tip of " +#~ ":code:`US$ 1.45` pass :code:`max_tip_amount =" +#~ " 145`. See the *exp* parameter in " +#~ "`currencies.json " +#~ "`_, it" +#~ " shows the number of digits past " +#~ "the decimal point for each currency " +#~ "(2 for the majority of currencies). " +#~ "Defaults to 0" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's full name to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's phone number to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's email address to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's shipping address to complete the" +#~ " order" +#~ msgstr "" + +#~ msgid "Pass :code:`True` if the user's phone number should be sent to provider" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the user's email" +#~ " address should be sent to provider" +#~ msgstr "" + +#~ msgid "Pass :code:`True` if the final price depends on the shipping method" +#~ msgstr "" + +#~ msgid "" +#~ "Period in seconds for which the " +#~ "location will be updated (see `Live " +#~ "Locations `_," +#~ " should be between 60 and 86400." +#~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized list of answer " +#~ "options, 2-10 strings 1-100 characters " +#~ "each" +#~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized list of special " +#~ "entities that appear in the poll " +#~ "explanation, which can be specified " +#~ "instead of *parse_mode*" +#~ msgstr "" + +#~ msgid "" +#~ "Sticker to send. Pass a file_id as" +#~ " String to send a file that " +#~ "exists on the Telegram servers " +#~ "(recommended), pass an HTTP URL as " +#~ "a String for Telegram to get a " +#~ ".WEBP sticker from the Internet, or " +#~ "upload a new .WEBP or .TGS sticker" +#~ " using multipart/form-data. :ref:`More " +#~ "information on Sending Files » " +#~ "`. Video stickers can only" +#~ " be sent by a file_id. Animated " +#~ "stickers can't be sent via an HTTP" +#~ " URL." +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to send audio " +#~ "files, if you want Telegram clients " +#~ "to display the file as a playable" +#~ " voice message. For this to work, " +#~ "your audio must be in an .OGG " +#~ "file encoded with OPUS (other formats" +#~ " may be sent as " +#~ ":class:`aiogram.types.audio.Audio` or " +#~ ":class:`aiogram.types.document.Document`). On success, " +#~ "the sent :class:`aiogram.types.message.Message` is" +#~ " returned. Bots can currently send " +#~ "voice messages of up to 50 MB " +#~ "in size, this limit may be changed" +#~ " in the future." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_administrator.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_administrator.po index 77d9edce..cbe6711e 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_administrator.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_administrator.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-29 02:16+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -60,10 +60,10 @@ msgstr "" #: aiogram.types.chat_member_administrator.ChatMemberAdministrator.can_manage_chat:1 #: of msgid "" -":code:`True`, if the administrator can access the chat event log, boost " -"list in channels, see channel members, report spam messages, see " -"anonymous administrators in supergroups and ignore slow mode. Implied by " -"any other administrator privilege" +":code:`True`, if the administrator can access the chat event log, get " +"boost list, see hidden supergroup and channel members, report spam " +"messages and ignore slow mode. Implied by any other administrator " +"privilege." msgstr "" #: ../../docstring @@ -110,12 +110,35 @@ msgstr "" msgid ":code:`True`, if the user is allowed to invite new users to the chat" msgstr "" +#: ../../docstring +#: aiogram.types.chat_member_administrator.ChatMemberAdministrator.can_post_stories:1 +#: of +msgid ":code:`True`, if the administrator can post stories to the chat" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_member_administrator.ChatMemberAdministrator.can_edit_stories:1 +#: of +msgid "" +":code:`True`, if the administrator can edit stories posted by other " +"users, post stories to the chat page, pin chat stories, and access the " +"chat's story archive" +msgstr "" + +#: ../../docstring +#: aiogram.types.chat_member_administrator.ChatMemberAdministrator.can_delete_stories:1 +#: of +msgid "" +":code:`True`, if the administrator can delete stories posted by other " +"users" +msgstr "" + #: ../../docstring #: aiogram.types.chat_member_administrator.ChatMemberAdministrator.can_post_messages:1 #: of msgid "" "*Optional*. :code:`True`, if the administrator can post messages in the " -"channel, or access channel statistics; channels only" +"channel, or access channel statistics; for channels only" msgstr "" #: ../../docstring @@ -123,39 +146,15 @@ msgstr "" #: of msgid "" "*Optional*. :code:`True`, if the administrator can edit messages of other" -" users and can pin messages; channels only" +" users and can pin messages; for channels only" msgstr "" #: ../../docstring #: aiogram.types.chat_member_administrator.ChatMemberAdministrator.can_pin_messages:1 #: of msgid "" -"*Optional*. :code:`True`, if the user is allowed to pin messages; groups " -"and supergroups only" -msgstr "" - -#: ../../docstring -#: aiogram.types.chat_member_administrator.ChatMemberAdministrator.can_post_stories:1 -#: of -msgid "" -"*Optional*. :code:`True`, if the administrator can post stories in the " -"channel; channels only" -msgstr "" - -#: ../../docstring -#: aiogram.types.chat_member_administrator.ChatMemberAdministrator.can_edit_stories:1 -#: of -msgid "" -"*Optional*. :code:`True`, if the administrator can edit stories posted by" -" other users; channels only" -msgstr "" - -#: ../../docstring -#: aiogram.types.chat_member_administrator.ChatMemberAdministrator.can_delete_stories:1 -#: of -msgid "" -"*Optional*. :code:`True`, if the administrator can delete stories posted " -"by other users; channels only" +"*Optional*. :code:`True`, if the user is allowed to pin messages; for " +"groups and supergroups only" msgstr "" #: ../../docstring @@ -163,7 +162,7 @@ msgstr "" #: of msgid "" "*Optional*. :code:`True`, if the user is allowed to create, rename, " -"close, and reopen forum topics; supergroups only" +"close, and reopen forum topics; for supergroups only" msgstr "" #: ../../docstring @@ -225,3 +224,57 @@ msgstr "" #~ " can delete stories posted by other" #~ " users" #~ msgstr "" + +#~ msgid "" +#~ ":code:`True`, if the administrator can " +#~ "access the chat event log, boost " +#~ "list in channels, see channel members," +#~ " report spam messages, see anonymous " +#~ "administrators in supergroups and ignore " +#~ "slow mode. Implied by any other " +#~ "administrator privilege" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the administrator" +#~ " can post messages in the channel," +#~ " or access channel statistics; channels " +#~ "only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the administrator" +#~ " can edit messages of other users " +#~ "and can pin messages; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the user is" +#~ " allowed to pin messages; groups and" +#~ " supergroups only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the administrator" +#~ " can post stories in the channel; " +#~ "channels only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the administrator" +#~ " can edit stories posted by other " +#~ "users; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the administrator" +#~ " can delete stories posted by other" +#~ " users; channels only" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the user is" +#~ " allowed to create, rename, close, " +#~ "and reopen forum topics; supergroups " +#~ "only" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_member.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_member.po index 8bc63e6e..4b4f1dd7 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_member.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_member.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/chat_member_member.rst:3 msgid "ChatMemberMember" @@ -40,3 +40,8 @@ msgstr "" #: ../../docstring aiogram.types.chat_member_member.ChatMemberMember.user:1 of msgid "Information about the user" msgstr "" + +#: ../../docstring +#: aiogram.types.chat_member_member.ChatMemberMember.until_date:1 of +msgid "*Optional*. Date when the user's subscription will expire; Unix time" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_updated.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_updated.po index d7aa6758..21a36e1e 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_updated.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_updated.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -61,6 +61,14 @@ msgid "" "chat; for joining by invite link events only." msgstr "" +#: ../../docstring +#: aiogram.types.chat_member_updated.ChatMemberUpdated.via_join_request:1 of +msgid "" +"*Optional*. True, if the user joined the chat after sending a direct join" +" request without using an invite link and being approved by an " +"administrator" +msgstr "" + #: ../../docstring #: aiogram.types.chat_member_updated.ChatMemberUpdated.via_chat_folder_invite_link:1 #: of @@ -105,23 +113,7 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#sendmessage" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice of +#: ../../api/types/chat_member_updated.rst msgid "Parameters" msgstr "" @@ -136,7 +128,6 @@ msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:10 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:11 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:11 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:16 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:12 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:11 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:11 @@ -147,174 +138,227 @@ msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:11 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:11 of msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:12 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:12 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:13 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:13 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:11 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:12 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:12 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:15 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:13 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:12 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:12 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:13 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:12 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:15 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:12 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:12 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:12 of +msgid "" "Unique identifier for the target message thread (topic) of the forum; for" " forum supergroups only" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:12 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:13 of msgid "" "Mode for parsing entities in the message text. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:14 of msgid "" "A JSON-serialized list of special entities that appear in message text, " "which can be specified instead of *parse_mode*" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:14 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:15 of msgid "Link preview generation options for the message" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:15 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:20 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:20 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:15 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:12 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:17 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:12 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:16 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:22 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:21 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:16 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:13 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:18 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:13 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:32 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:17 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:16 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:23 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:13 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:19 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:21 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:15 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:16 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:18 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:18 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:26 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:14 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:20 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:25 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:16 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:17 of msgid "" "Sends the message `silently `_. Users will receive a notification with no sound." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:16 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:21 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:21 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:16 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:18 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:13 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:17 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:23 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:22 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:17 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:19 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:14 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:33 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:18 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:17 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:24 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:14 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:20 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:22 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:16 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:17 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:19 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:19 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:27 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:15 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:21 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:26 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:17 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:18 of msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:17 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:22 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:22 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:17 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:14 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:19 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:14 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:34 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:19 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:14 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:18 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:25 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:15 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:21 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:23 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:17 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:18 of -msgid "Description of the message to reply to" -msgstr "" - #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:18 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:23 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:24 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:23 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:18 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:15 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:20 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:15 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:34 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:20 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:19 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:26 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:15 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:20 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:28 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:16 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:22 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:24 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:27 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:18 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:19 of msgid "" -"Additional interface options. A JSON-serialized object for an `inline " -"keyboard `_, " -"`custom reply keyboard " -"`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:19 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:24 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:25 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:24 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:19 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:16 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:21 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:16 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:36 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:35 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:21 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:15 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:20 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:27 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:16 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:21 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:29 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:17 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:23 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:25 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:28 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:19 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:20 of msgid "" -"Pass :code:`True` if the message should be sent even if the specified " -"replied-to message is not found" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:20 of -msgid "Disables link previews for links in this message" -msgstr "" - -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:21 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:25 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:20 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:26 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:25 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:20 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:17 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:22 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:17 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:37 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:36 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:22 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:21 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:28 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:17 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:22 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:30 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:18 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:24 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:26 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:29 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:20 #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:21 of +msgid "Description of the message to reply to" +msgstr "" + +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:21 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:27 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:26 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:21 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:18 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:23 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:23 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:23 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:31 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:19 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:25 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:30 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:21 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:22 of +msgid "" +"Additional interface options. A JSON-serialized object for an `inline " +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove a reply keyboard or to force a reply from the user" +msgstr "" + +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:22 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:28 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:27 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:22 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:19 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:24 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:19 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:38 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:24 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:18 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:24 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:32 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:20 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:26 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:31 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:22 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:23 of +msgid "" +"Pass :code:`True` if the message should be sent even if the specified " +"replied-to message is not found" +msgstr "" + +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:23 of +msgid "Disables link previews for links in this message" +msgstr "" + +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:24 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:29 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:28 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:23 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:20 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:25 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:20 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:39 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:25 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:25 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:33 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:21 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:27 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:32 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:23 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:24 of msgid "If the message is a reply, ID of the original message" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice of +#: ../../api/types/chat_member_updated.rst msgid "Returns" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:22 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer:25 of msgid "instance of method :class:`aiogram.methods.send_message.SendMessage`" msgstr "" @@ -346,23 +390,23 @@ msgid "" "Sending Files » `" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:12 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:13 of msgid "Duration of sent animation in seconds" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:14 of msgid "Animation width" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:14 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:15 of msgid "Animation height" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:15 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:19 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:12 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:15 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:14 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:16 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:20 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:13 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:16 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:15 of msgid "" "Thumbnail of the file sent; can be ignored if thumbnail generation for " "the file is supported server-side. The thumbnail should be in JPEG format" @@ -374,37 +418,43 @@ msgid "" "information on Sending Files » `" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:16 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:17 of msgid "" "Animation caption (may also be used when resending animation by " "*file_id*), 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:17 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:18 of msgid "" "Mode for parsing entities in the animation caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:18 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:15 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:15 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:14 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:18 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:14 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:19 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:16 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:16 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:15 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:21 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:15 of msgid "" "A JSON-serialized list of special entities that appear in the caption, " "which can be specified instead of *parse_mode*" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:19 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:20 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:16 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:22 of +msgid "Pass :code:`True`, if the caption must be shown above the message media" +msgstr "" + +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:21 of msgid "" "Pass :code:`True` if the animation needs to be covered with a spoiler " "animation" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:26 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation:30 of msgid "instance of method :class:`aiogram.methods.send_animation.SendAnimation`" msgstr "" @@ -437,30 +487,30 @@ msgid "" "Files » `" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:14 of msgid "Audio caption, 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:14 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:15 of msgid "" "Mode for parsing entities in the audio caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:16 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:17 of msgid "Duration of the audio in seconds" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:17 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:18 of msgid "Performer" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:18 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:19 of msgid "Track name" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:26 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio:29 of msgid "instance of method :class:`aiogram.methods.send_audio.SendAudio`" msgstr "" @@ -488,17 +538,17 @@ msgstr "" msgid "Contact's first name" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:14 of msgid "Contact's last name" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:14 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:15 of msgid "" "Additional data about the contact in the form of a `vCard " "`_, 0-2048 bytes" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:21 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact:24 of msgid "instance of method :class:`aiogram.methods.send_contact.SendContact`" msgstr "" @@ -528,26 +578,26 @@ msgid "" "/form-data. :ref:`More information on Sending Files » `" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:14 of msgid "" "Document caption (may also be used when resending documents by " "*file_id*), 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:14 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:15 of msgid "" "Mode for parsing entities in the document caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:16 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:17 of msgid "" "Disables automatic server-side content type detection for files uploaded " "using multipart/form-data" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:23 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document:26 of msgid "instance of method :class:`aiogram.methods.send_document.SendDocument`" msgstr "" @@ -573,7 +623,7 @@ msgid "" " up your games via `@BotFather `_." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:15 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:18 of msgid "" "A JSON-serialized object for an `inline keyboard " "`_. If empty, " @@ -581,7 +631,7 @@ msgid "" "button must launch the game." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:18 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game:21 of msgid "instance of method :class:`aiogram.methods.send_game.SendGame`" msgstr "" @@ -612,25 +662,29 @@ msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:12 of msgid "" "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to " -"the user, use for your internal processes." +"the user, use it for your internal processes." msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:13 of msgid "" -"Payment provider token, obtained via `@BotFather " -"`_" +"Three-letter ISO 4217 currency code, see `more on currencies " +"`_. Pass " +"'XTR' for payments in `Telegram Stars `_." msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:14 of msgid "" -"Three-letter ISO 4217 currency code, see `more on currencies " -"`_" +"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 " +"`_." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:15 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:16 of msgid "" -"Price breakdown, a JSON-serialized list of components (e.g. product " -"price, tax, discount, delivery cost, delivery tax, bonus, etc.)" +"Payment provider token, obtained via `@BotFather " +"`_. Pass an empty string for payments in " +"`Telegram Stars `_." msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:17 of @@ -641,7 +695,8 @@ msgid "" "parameter in `currencies.json " "`_, it shows the" " number of digits past the decimal point for each currency (2 for the " -"majority of currencies). Defaults to 0" +"majority of currencies). Defaults to 0. Not supported for payments in " +"`Telegram Stars `_." msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:18 of @@ -692,40 +747,52 @@ msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:25 of msgid "" "Pass :code:`True` if you require the user's full name to complete the " -"order" +"order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:26 of msgid "" "Pass :code:`True` if you require the user's phone number to complete the " -"order" +"order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:27 of msgid "" "Pass :code:`True` if you require the user's email address to complete the" -" order" +" order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:28 of msgid "" "Pass :code:`True` if you require the user's shipping address to complete " -"the order" +"the order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:29 of -msgid "Pass :code:`True` if the user's phone number should be sent to provider" +msgid "" +"Pass :code:`True` if the user's phone number should be sent to the " +"provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:30 of -msgid "Pass :code:`True` if the user's email address should be sent to provider" +msgid "" +"Pass :code:`True` if the user's email address should be sent to the " +"provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:31 of -msgid "Pass :code:`True` if the final price depends on the shipping method" +msgid "" +"Pass :code:`True` if the final price depends on the shipping method. " +"Ignored for payments in `Telegram Stars `_." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:35 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:37 of msgid "" "A JSON-serialized object for an `inline keyboard " "`_. If empty, " @@ -733,7 +800,7 @@ msgid "" "first button must be a Pay button." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:38 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice:40 of msgid "instance of method :class:`aiogram.methods.send_invoice.SendInvoice`" msgstr "" @@ -761,31 +828,32 @@ msgstr "" msgid "Longitude of the location" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:14 of msgid "The radius of uncertainty for the location, measured in meters; 0-1500" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:14 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:15 of msgid "" -"Period in seconds for which the location will be updated (see `Live " +"Period in seconds during which the location will be updated (see `Live " "Locations `_, should be between" -" 60 and 86400." +" 60 and 86400, or 0x7FFFFFFF for live locations that can be edited " +"indefinitely." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:15 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:16 of msgid "" "For live locations, a direction in which the user is moving, in degrees. " "Must be between 1 and 360 if specified." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:16 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:17 of msgid "" "For live locations, a maximum distance for proximity alerts about " "approaching another chat member, in meters. Must be between 1 and 100000 " "if specified." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:23 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location:26 of msgid "instance of method :class:`aiogram.methods.send_location.SendLocation`" msgstr "" @@ -815,21 +883,21 @@ msgid "" " items" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:12 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:13 of msgid "" "Sends messages `silently `_. Users will receive a notification with no sound." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:14 of msgid "Protects the contents of the sent messages from forwarding and saving" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:16 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:19 of msgid "If the messages are a reply, ID of the original message" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:17 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group:20 of msgid "" "instance of method " ":class:`aiogram.methods.send_media_group.SendMediaGroup`" @@ -862,26 +930,26 @@ msgid "" "files>`" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:12 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:13 of msgid "" "Photo caption (may also be used when resending photos by *file_id*), " "0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:14 of msgid "" "Mode for parsing entities in the photo caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:15 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:17 of msgid "" "Pass :code:`True` if the photo needs to be covered with a spoiler " "animation" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:22 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo:26 of msgid "instance of method :class:`aiogram.methods.send_photo.SendPhoto`" msgstr "" @@ -906,71 +974,82 @@ msgid "Poll question, 1-300 characters" msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:11 of -msgid "" -"A JSON-serialized list of answer options, 2-10 strings 1-100 characters " -"each" -msgstr "" - -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:13 of -msgid ":code:`True`, if the poll needs to be anonymous, defaults to :code:`True`" +msgid "A JSON-serialized list of 2-10 answer options" msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:14 of -msgid "Poll type, 'quiz' or 'regular', defaults to 'regular'" +msgid "" +"Mode for parsing entities in the question. See `formatting options " +"`_ for more " +"details. Currently, only custom emoji entities are allowed" msgstr "" #: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:15 of msgid "" +"A JSON-serialized list of special entities that appear in the poll " +"question. It can be specified instead of *question_parse_mode*" +msgstr "" + +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:16 of +msgid ":code:`True`, if the poll needs to be anonymous, defaults to :code:`True`" +msgstr "" + +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:17 of +msgid "Poll type, 'quiz' or 'regular', defaults to 'regular'" +msgstr "" + +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:18 of +msgid "" ":code:`True`, if the poll allows multiple answers, ignored for polls in " "quiz mode, defaults to :code:`False`" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:16 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:19 of msgid "" "0-based identifier of the correct answer option, required for polls in " "quiz mode" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:17 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:20 of msgid "" "Text that is shown when a user chooses an incorrect answer or taps on the" " lamp icon in a quiz-style poll, 0-200 characters with at most 2 line " "feeds after entities parsing" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:18 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:21 of msgid "" "Mode for parsing entities in the explanation. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:19 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:22 of msgid "" "A JSON-serialized list of special entities that appear in the poll " -"explanation, which can be specified instead of *parse_mode*" +"explanation. It can be specified instead of *explanation_parse_mode*" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:20 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:23 of msgid "" "Amount of time in seconds the poll will be active after creation, 5-600. " "Can't be used together with *close_date*." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:21 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:24 of msgid "" "Point in time (Unix timestamp) when the poll will be automatically " "closed. Must be at least 5 and no more than 600 seconds in the future. " "Can't be used together with *open_period*." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:22 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:25 of msgid "" "Pass :code:`True` if the poll needs to be immediately closed. This can be" " useful for poll preview." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:29 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll:34 of msgid "instance of method :class:`aiogram.methods.send_poll.SendPoll`" msgstr "" @@ -991,7 +1070,7 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#senddice" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:11 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:12 of msgid "" "Emoji on which the dice throw animation is based. Currently, must be one " "of '🎲', '🎯', '🏀', '⚽', '🎳', or '🎰'. Dice can have values 1-6 for '🎲', '🎯'" @@ -999,11 +1078,11 @@ msgid "" "to '🎲'" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:14 of msgid "Protects the contents of the sent message from forwarding" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:18 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice:21 of msgid "instance of method :class:`aiogram.methods.send_dice.SendDice`" msgstr "" @@ -1030,17 +1109,17 @@ msgstr "" msgid "" "Sticker to send. Pass a file_id as String to send a file that exists on " "the Telegram servers (recommended), pass an HTTP URL as a String for " -"Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP " -"or .TGS sticker using multipart/form-data. :ref:`More information on " -"Sending Files » `. Video stickers can only be sent by a " -"file_id. Animated stickers can't be sent via an HTTP URL." +"Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP," +" .TGS, or .WEBM sticker using multipart/form-data. :ref:`More information" +" on Sending Files » `. Video and animated stickers can't " +"be sent via an HTTP URL." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:12 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:13 of msgid "Emoji associated with the sticker; only for just uploaded stickers" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:19 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker:22 of msgid "instance of method :class:`aiogram.methods.send_sticker.SendSticker`" msgstr "" @@ -1076,28 +1155,28 @@ msgstr "" msgid "Address of the venue" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:15 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:16 of msgid "Foursquare identifier of the venue" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:16 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:17 of msgid "" "Foursquare type of the venue, if known. (For example, " "'arts_entertainment/default', 'arts_entertainment/aquarium' or " "'food/icecream'.)" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:17 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:18 of msgid "Google Places identifier of the venue" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:18 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:19 of msgid "" "Google Places type of the venue. (See `supported types " "`_.)" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:25 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue:28 of msgid "instance of method :class:`aiogram.methods.send_venue.SendVenue`" msgstr "" @@ -1130,43 +1209,57 @@ msgid "" "files>`" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:12 -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:12 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:13 +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:13 of msgid "Duration of sent video in seconds" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:14 of msgid "Video width" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:14 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:15 of msgid "Video height" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:16 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:17 of +msgid "" +"Cover for the video in the message. Pass a file_id to send a file that " +"exists on the Telegram servers (recommended), pass an HTTP URL for " +"Telegram to get a file from the Internet, or pass " +"'attach://' to upload a new one using multipart/form-" +"data under name. :ref:`More information on Sending " +"Files » `" +msgstr "" + +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:18 of +msgid "Start timestamp for the video in the message" +msgstr "" + +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:19 of msgid "" "Video caption (may also be used when resending videos by *file_id*), " "0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:17 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:20 of msgid "" "Mode for parsing entities in the video caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:19 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:23 of msgid "" "Pass :code:`True` if the video needs to be covered with a spoiler " "animation" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:20 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:24 of msgid "Pass :code:`True` if the uploaded video is suitable for streaming" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:27 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video:33 of msgid "instance of method :class:`aiogram.methods.send_video.SendVideo`" msgstr "" @@ -1197,11 +1290,11 @@ msgid "" "files>`. Sending video notes by a URL is currently unsupported" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:14 of msgid "Video width and height, i.e. diameter of the video message" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:21 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note:24 of msgid "instance of method :class:`aiogram.methods.send_video_note.SendVideoNote`" msgstr "" @@ -1215,8 +1308,9 @@ msgstr "" msgid "" "Use this method to send audio files, if you want Telegram clients to " "display the file as a playable voice message. For this to work, your " -"audio must be in an .OGG file encoded with OPUS (other formats may be " -"sent as :class:`aiogram.types.audio.Audio` or " +"audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in" +" .M4A format (other formats may be sent as " +":class:`aiogram.types.audio.Audio` or " ":class:`aiogram.types.document.Document`). On success, the sent " ":class:`aiogram.types.message.Message` is returned. Bots can currently " "send voice messages of up to 50 MB in size, this limit may be changed in " @@ -1236,21 +1330,160 @@ msgid "" "files>`" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:12 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:13 of msgid "Voice message caption, 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:13 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:14 of msgid "" "Mode for parsing entities in the voice message caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:15 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:16 of msgid "Duration of the voice message in seconds" msgstr "" -#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:22 of +#: aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice:25 of msgid "instance of method :class:`aiogram.methods.send_voice.SendVoice`" msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" + +#~ msgid "" +#~ "Bot-defined invoice payload, 1-128 " +#~ "bytes. This will not be displayed " +#~ "to the user, use for your internal" +#~ " processes." +#~ msgstr "" + +#~ msgid "" +#~ "Payment provider token, obtained via " +#~ "`@BotFather `_" +#~ msgstr "" + +#~ msgid "" +#~ "Three-letter ISO 4217 currency code, " +#~ "see `more on currencies " +#~ "`_" +#~ msgstr "" + +#~ msgid "" +#~ "Price breakdown, a JSON-serialized list" +#~ " of components (e.g. product price, " +#~ "tax, discount, delivery cost, delivery " +#~ "tax, bonus, etc.)" +#~ msgstr "" + +#~ msgid "" +#~ "The maximum accepted amount for tips " +#~ "in the *smallest units* of the " +#~ "currency (integer, **not** float/double). For" +#~ " example, for a maximum tip of " +#~ ":code:`US$ 1.45` pass :code:`max_tip_amount =" +#~ " 145`. See the *exp* parameter in " +#~ "`currencies.json " +#~ "`_, it" +#~ " shows the number of digits past " +#~ "the decimal point for each currency " +#~ "(2 for the majority of currencies). " +#~ "Defaults to 0" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's full name to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's phone number to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's email address to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's shipping address to complete the" +#~ " order" +#~ msgstr "" + +#~ msgid "Pass :code:`True` if the user's phone number should be sent to provider" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the user's email" +#~ " address should be sent to provider" +#~ msgstr "" + +#~ msgid "Pass :code:`True` if the final price depends on the shipping method" +#~ msgstr "" + +#~ msgid "" +#~ "Period in seconds for which the " +#~ "location will be updated (see `Live " +#~ "Locations `_," +#~ " should be between 60 and 86400." +#~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized list of answer " +#~ "options, 2-10 strings 1-100 characters " +#~ "each" +#~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized list of special " +#~ "entities that appear in the poll " +#~ "explanation, which can be specified " +#~ "instead of *parse_mode*" +#~ msgstr "" + +#~ msgid "" +#~ "Sticker to send. Pass a file_id as" +#~ " String to send a file that " +#~ "exists on the Telegram servers " +#~ "(recommended), pass an HTTP URL as " +#~ "a String for Telegram to get a " +#~ ".WEBP sticker from the Internet, or " +#~ "upload a new .WEBP or .TGS sticker" +#~ " using multipart/form-data. :ref:`More " +#~ "information on Sending Files » " +#~ "`. Video stickers can only" +#~ " be sent by a file_id. Animated " +#~ "stickers can't be sent via an HTTP" +#~ " URL." +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to send audio " +#~ "files, if you want Telegram clients " +#~ "to display the file as a playable" +#~ " voice message. For this to work, " +#~ "your audio must be in an .OGG " +#~ "file encoded with OPUS (other formats" +#~ " may be sent as " +#~ ":class:`aiogram.types.audio.Audio` or " +#~ ":class:`aiogram.types.document.Document`). On success, " +#~ "the sent :class:`aiogram.types.message.Message` is" +#~ " returned. Bots can currently send " +#~ "voice messages of up to 50 MB " +#~ "in size, this limit may be changed" +#~ " in the future." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_shared.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_shared.po index 21852254..50d7d5c7 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_shared.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_shared.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-02-12 00:22+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.9.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/chat_shared.rst:3 msgid "ChatShared" @@ -23,8 +23,8 @@ msgstr "" #: aiogram.types.chat_shared.ChatShared:1 of msgid "" -"This object contains information about the chat whose identifier was " -"shared with the bot using a " +"This object contains information about a chat that was shared with the " +"bot using a " ":class:`aiogram.types.keyboard_button_request_chat.KeyboardButtonRequestChat`" " button." msgstr "" @@ -48,3 +48,26 @@ msgid "" "known to the bot by some other means." msgstr "" +#: ../../docstring aiogram.types.chat_shared.ChatShared.title:1 of +msgid "*Optional*. Title of the chat, if the title was requested by the bot." +msgstr "" + +#: ../../docstring aiogram.types.chat_shared.ChatShared.username:1 of +msgid "" +"*Optional*. Username of the chat, if the username was requested by the " +"bot and available." +msgstr "" + +#: ../../docstring aiogram.types.chat_shared.ChatShared.photo:1 of +msgid "" +"*Optional*. Available sizes of the chat photo, if the photo was requested" +" by the bot" +msgstr "" + +#~ msgid "" +#~ "This object contains information about " +#~ "the chat whose identifier was shared " +#~ "with the bot using a " +#~ ":class:`aiogram.types.keyboard_button_request_chat.KeyboardButtonRequestChat`" +#~ " button." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/copy_text_button.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/copy_text_button.po new file mode 100644 index 00000000..6dc7248b --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/copy_text_button.po @@ -0,0 +1,39 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/copy_text_button.rst:3 +msgid "CopyTextButton" +msgstr "" + +#: aiogram.types.copy_text_button.CopyTextButton:1 of +msgid "" +"This object represents an inline keyboard button that copies specified " +"text to the clipboard." +msgstr "" + +#: aiogram.types.copy_text_button.CopyTextButton:3 of +msgid "Source: https://core.telegram.org/bots/api#copytextbutton" +msgstr "" + +#: ../../docstring aiogram.types.copy_text_button.CopyTextButton.text:1 of +msgid "The text to be copied to the clipboard; 1-256 characters" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/document.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/document.po index 0295a948..661b1d76 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/document.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/document.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/document.rst:3 msgid "Document" @@ -43,16 +43,16 @@ msgid "" "time and for different bots. Can't be used to download or reuse the file." msgstr "" -#: ../../docstring aiogram.types.document.Document.thumb:1 of -msgid "*Optional*. Document thumbnail as defined by sender" +#: ../../docstring aiogram.types.document.Document.thumbnail:1 of +msgid "*Optional*. Document thumbnail as defined by the sender" msgstr "" #: ../../docstring aiogram.types.document.Document.file_name:1 of -msgid "*Optional*. Original filename as defined by sender" +msgid "*Optional*. Original filename as defined by the sender" msgstr "" #: ../../docstring aiogram.types.document.Document.mime_type:1 of -msgid "*Optional*. MIME type of the file as defined by sender" +msgid "*Optional*. MIME type of the file as defined by the sender" msgstr "" #: ../../docstring aiogram.types.document.Document.file_size:1 of @@ -62,3 +62,12 @@ msgid "" "it. But it has at most 52 significant bits, so a signed 64-bit integer or" " double-precision float type are safe for storing this value." msgstr "" + +#~ msgid "*Optional*. Document thumbnail as defined by sender" +#~ msgstr "" + +#~ msgid "*Optional*. Original filename as defined by sender" +#~ msgstr "" + +#~ msgid "*Optional*. MIME type of the file as defined by sender" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/encrypted_passport_element.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/encrypted_passport_element.po index d0a915ce..d8d98b6c 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/encrypted_passport_element.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/encrypted_passport_element.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/encrypted_passport_element.rst:3 msgid "EncryptedPassportElement" @@ -51,7 +51,7 @@ msgstr "" #: aiogram.types.encrypted_passport_element.EncryptedPassportElement.data:1 of msgid "" "*Optional*. Base64-encoded encrypted Telegram Passport element data " -"provided by the user, available for 'personal_details', 'passport', " +"provided by the user; available only for 'personal_details', 'passport', " "'driver_license', 'identity_card', 'internal_passport' and 'address' " "types. Can be decrypted and verified using the accompanying " ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." @@ -61,22 +61,22 @@ msgstr "" #: aiogram.types.encrypted_passport_element.EncryptedPassportElement.phone_number:1 #: of msgid "" -"*Optional*. User's verified phone number, available only for " +"*Optional*. User's verified phone number; available only for " "'phone_number' type" msgstr "" #: ../../docstring #: aiogram.types.encrypted_passport_element.EncryptedPassportElement.email:1 of -msgid "*Optional*. User's verified email address, available only for 'email' type" +msgid "*Optional*. User's verified email address; available only for 'email' type" msgstr "" #: ../../docstring #: aiogram.types.encrypted_passport_element.EncryptedPassportElement.files:1 of msgid "" -"*Optional*. Array of encrypted files with documents provided by the user," -" available for 'utility_bill', 'bank_statement', 'rental_agreement', " -"'passport_registration' and 'temporary_registration' types. Files can be " -"decrypted and verified using the accompanying " +"*Optional*. Array of encrypted files with documents provided by the user;" +" available only for 'utility_bill', 'bank_statement', 'rental_agreement'," +" 'passport_registration' and 'temporary_registration' types. Files can be" +" decrypted and verified using the accompanying " ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." msgstr "" @@ -85,9 +85,9 @@ msgstr "" #: of msgid "" "*Optional*. Encrypted file with the front side of the document, provided " -"by the user. Available for 'passport', 'driver_license', 'identity_card' " -"and 'internal_passport'. The file can be decrypted and verified using the" -" accompanying " +"by the user; available only for 'passport', 'driver_license', " +"'identity_card' and 'internal_passport'. The file can be decrypted and " +"verified using the accompanying " ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." msgstr "" @@ -96,8 +96,9 @@ msgstr "" #: of msgid "" "*Optional*. Encrypted file with the reverse side of the document, " -"provided by the user. Available for 'driver_license' and 'identity_card'." -" The file can be decrypted and verified using the accompanying " +"provided by the user; available only for 'driver_license' and " +"'identity_card'. The file can be decrypted and verified using the " +"accompanying " ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." msgstr "" @@ -106,7 +107,7 @@ msgstr "" #: of msgid "" "*Optional*. Encrypted file with the selfie of the user holding a " -"document, provided by the user; available for 'passport', " +"document, provided by the user; available if requested for 'passport', " "'driver_license', 'identity_card' and 'internal_passport'. The file can " "be decrypted and verified using the accompanying " ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." @@ -117,10 +118,87 @@ msgstr "" #: of msgid "" "*Optional*. Array of encrypted files with translated versions of " -"documents provided by the user. Available if requested for 'passport', " +"documents provided by the user; available if requested for 'passport', " "'driver_license', 'identity_card', 'internal_passport', 'utility_bill', " "'bank_statement', 'rental_agreement', 'passport_registration' and " "'temporary_registration' types. Files can be decrypted and verified using" " the accompanying " ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." msgstr "" + +#~ msgid "" +#~ "*Optional*. Base64-encoded encrypted Telegram " +#~ "Passport element data provided by the" +#~ " user, available for 'personal_details', " +#~ "'passport', 'driver_license', 'identity_card', " +#~ "'internal_passport' and 'address' types. Can" +#~ " be decrypted and verified using the" +#~ " accompanying " +#~ ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. User's verified phone number, " +#~ "available only for 'phone_number' type" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. User's verified email address, " +#~ "available only for 'email' type" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Array of encrypted files " +#~ "with documents provided by the user, " +#~ "available for 'utility_bill', 'bank_statement', " +#~ "'rental_agreement', 'passport_registration' and " +#~ "'temporary_registration' types. Files can be" +#~ " decrypted and verified using the " +#~ "accompanying " +#~ ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Encrypted file with the " +#~ "front side of the document, provided " +#~ "by the user. Available for 'passport'," +#~ " 'driver_license', 'identity_card' and " +#~ "'internal_passport'. The file can be " +#~ "decrypted and verified using the " +#~ "accompanying " +#~ ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Encrypted file with the " +#~ "reverse side of the document, provided" +#~ " by the user. Available for " +#~ "'driver_license' and 'identity_card'. The file" +#~ " can be decrypted and verified using" +#~ " the accompanying " +#~ ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Encrypted file with the " +#~ "selfie of the user holding a " +#~ "document, provided by the user; " +#~ "available for 'passport', 'driver_license', " +#~ "'identity_card' and 'internal_passport'. The " +#~ "file can be decrypted and verified " +#~ "using the accompanying " +#~ ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Array of encrypted files " +#~ "with translated versions of documents " +#~ "provided by the user. Available if " +#~ "requested for 'passport', 'driver_license', " +#~ "'identity_card', 'internal_passport', 'utility_bill', " +#~ "'bank_statement', 'rental_agreement', " +#~ "'passport_registration' and 'temporary_registration' " +#~ "types. Files can be decrypted and " +#~ "verified using the accompanying " +#~ ":class:`aiogram.types.encrypted_credentials.EncryptedCredentials`." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/external_reply_info.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/external_reply_info.po index 61e22e29..81228097 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/external_reply_info.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/external_reply_info.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -76,6 +76,11 @@ msgstr "" msgid "*Optional*. Message is a general file, information about the file" msgstr "" +#: ../../docstring +#: aiogram.types.external_reply_info.ExternalReplyInfo.paid_media:1 of +msgid "*Optional*. Message contains paid media; information about the paid media" +msgstr "" + #: ../../docstring aiogram.types.external_reply_info.ExternalReplyInfo.photo:1 #: of msgid "*Optional*. Message is a photo, available sizes of the photo" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/force_reply.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/force_reply.po index 6e408b99..512cee90 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/force_reply.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/force_reply.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/force_reply.rst:3 msgid "ForceReply" @@ -27,7 +27,9 @@ msgid "" "a reply interface to the user (act as if the user has selected the bot's " "message and tapped 'Reply'). This can be extremely useful if you want to " "create user-friendly step-by-step interfaces without having to sacrifice " -"`privacy mode `_." +"`privacy mode `_. " +"Not supported in channels and for messages sent on behalf of a Telegram " +"Business account." msgstr "" #: aiogram.types.force_reply.ForceReply:3 of @@ -81,7 +83,8 @@ msgid "" "*Optional*. Use this parameter if you want to force reply from specific " "users only. Targets: 1) users that are @mentioned in the *text* of the " ":class:`aiogram.types.message.Message` object; 2) if the bot's message is" -" a reply (has *reply_to_message_id*), sender of the original message." +" a reply to a message in the same chat and forum topic, sender of the " +"original message." msgstr "" #~ msgid "" @@ -96,3 +99,27 @@ msgstr "" #~ "to sacrifice `privacy mode " #~ "`_." #~ msgstr "" + +#~ msgid "" +#~ "Upon receiving a message with this " +#~ "object, Telegram clients will display a" +#~ " reply interface to the user (act " +#~ "as if the user has selected the" +#~ " bot's message and tapped 'Reply'). " +#~ "This can be extremely useful if " +#~ "you want to create user-friendly " +#~ "step-by-step interfaces without having " +#~ "to sacrifice `privacy mode " +#~ "`_." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Use this parameter if you" +#~ " want to force reply from specific" +#~ " users only. Targets: 1) users that" +#~ " are @mentioned in the *text* of " +#~ "the :class:`aiogram.types.message.Message` object; " +#~ "2) if the bot's message is a " +#~ "reply (has *reply_to_message_id*), sender of" +#~ " the original message." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/gift.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/gift.po new file mode 100644 index 00000000..77984483 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/gift.po @@ -0,0 +1,63 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/gift.rst:3 +msgid "Gift" +msgstr "" + +#: aiogram.types.gift.Gift:1 of +msgid "This object represents a gift that can be sent by the bot." +msgstr "" + +#: aiogram.types.gift.Gift:3 of +msgid "Source: https://core.telegram.org/bots/api#gift" +msgstr "" + +#: ../../docstring aiogram.types.gift.Gift.id:1 of +msgid "Unique identifier of the gift" +msgstr "" + +#: ../../docstring aiogram.types.gift.Gift.sticker:1 of +msgid "The sticker that represents the gift" +msgstr "" + +#: ../../docstring aiogram.types.gift.Gift.star_count:1 of +msgid "The number of Telegram Stars that must be paid to send the sticker" +msgstr "" + +#: ../../docstring aiogram.types.gift.Gift.upgrade_star_count:1 of +msgid "" +"*Optional*. The number of Telegram Stars that must be paid to upgrade the" +" gift to a unique one" +msgstr "" + +#: ../../docstring aiogram.types.gift.Gift.total_count:1 of +msgid "" +"*Optional*. The total number of the gifts of this type that can be sent; " +"for limited gifts only" +msgstr "" + +#: ../../docstring aiogram.types.gift.Gift.remaining_count:1 of +msgid "" +"*Optional*. The number of remaining gifts of this type that can be sent; " +"for limited gifts only" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/gifts.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/gifts.po new file mode 100644 index 00000000..57b48b37 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/gifts.po @@ -0,0 +1,37 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/gifts.rst:3 +msgid "Gifts" +msgstr "" + +#: aiogram.types.gifts.Gifts:1 of +msgid "This object represent a list of gifts." +msgstr "" + +#: aiogram.types.gifts.Gifts:3 of +msgid "Source: https://core.telegram.org/bots/api#gifts" +msgstr "" + +#: ../../docstring aiogram.types.gifts.Gifts.gifts:1 of +msgid "The list of gifts" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway.po index 6ea4847a..2d36af23 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -74,9 +74,21 @@ msgid "" " giveaways." msgstr "" +#: ../../docstring aiogram.types.giveaway.Giveaway.prize_star_count:1 of +msgid "" +"*Optional*. The number of Telegram Stars to be split between giveaway " +"winners; for Telegram Star giveaways only" +msgstr "" + #: ../../docstring #: aiogram.types.giveaway.Giveaway.premium_subscription_month_count:1 of msgid "" "*Optional*. The number of months the Telegram Premium subscription won " -"from the giveaway will be active for" +"from the giveaway will be active for; for Telegram Premium giveaways only" msgstr "" + +#~ msgid "" +#~ "*Optional*. The number of months the " +#~ "Telegram Premium subscription won from " +#~ "the giveaway will be active for" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_completed.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_completed.po index e9a5963d..1e824a27 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_completed.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_completed.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -51,3 +51,10 @@ msgid "" "*Optional*. Message with the giveaway that was completed, if it wasn't " "deleted" msgstr "" + +#: ../../docstring +#: aiogram.types.giveaway_completed.GiveawayCompleted.is_star_giveaway:1 of +msgid "" +"*Optional*. :code:`True`, if the giveaway is a Telegram Star giveaway. " +"Otherwise, currently, the giveaway is a Telegram Premium giveaway." +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_created.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_created.po index 57f7dba7..de1015e1 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_created.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_created.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -27,9 +27,22 @@ msgstr "" #: aiogram.types.giveaway_created.GiveawayCreated:1 of msgid "" "This object represents a service message about the creation of a " -"scheduled giveaway. Currently holds no information." +"scheduled giveaway." msgstr "" #: aiogram.types.giveaway_created.GiveawayCreated:3 of msgid "Source: https://core.telegram.org/bots/api#giveawaycreated" msgstr "" + +#: ../../docstring +#: aiogram.types.giveaway_created.GiveawayCreated.prize_star_count:1 of +msgid "" +"*Optional*. The number of Telegram Stars to be split between giveaway " +"winners; for Telegram Star giveaways only" +msgstr "" + +#~ msgid "" +#~ "This object represents a service message" +#~ " about the creation of a scheduled" +#~ " giveaway. Currently holds no information." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_winners.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_winners.po index 5dbb832c..0f651c73 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_winners.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/giveaway_winners.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -40,7 +40,7 @@ msgstr "" #: ../../docstring #: aiogram.types.giveaway_winners.GiveawayWinners.giveaway_message_id:1 of -msgid "Identifier of the messsage with the giveaway in the chat" +msgid "Identifier of the message with the giveaway in the chat" msgstr "" #: ../../docstring @@ -64,12 +64,19 @@ msgid "" " eligible for the giveaway" msgstr "" +#: ../../docstring +#: aiogram.types.giveaway_winners.GiveawayWinners.prize_star_count:1 of +msgid "" +"*Optional*. The number of Telegram Stars that were split between giveaway" +" winners; for Telegram Star giveaways only" +msgstr "" + #: ../../docstring #: aiogram.types.giveaway_winners.GiveawayWinners.premium_subscription_month_count:1 #: of msgid "" "*Optional*. The number of months the Telegram Premium subscription won " -"from the giveaway will be active for" +"from the giveaway will be active for; for Telegram Premium giveaways only" msgstr "" #: ../../docstring @@ -95,3 +102,12 @@ msgstr "" #: aiogram.types.giveaway_winners.GiveawayWinners.prize_description:1 of msgid "*Optional*. Description of additional giveaway prize" msgstr "" + +#~ msgid "Identifier of the messsage with the giveaway in the chat" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. The number of months the " +#~ "Telegram Premium subscription won from " +#~ "the giveaway will be active for" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inaccessible_message.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inaccessible_message.po index 84f559d0..1a839ba8 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inaccessible_message.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inaccessible_message.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -50,3 +50,1723 @@ msgid "" "Always 0. The field can be used to differentiate regular and inaccessible" " messages." msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_message.SendMessage` " +"will automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:4 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:4 of +msgid ":code:`chat_id`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:7 of +msgid "" +"Use this method to send text messages. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:9 of +msgid "Source: https://core.telegram.org/bots/api#sendmessage" +msgstr "" + +#: ../../api/types/inaccessible_message.rst +msgid "Parameters" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:11 of +msgid "Text of the message to be sent, 1-4096 characters after entities parsing" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:12 of +msgid "" +"Unique identifier of the business connection on behalf of which the " +"message will be sent" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:13 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:14 of +msgid "" +"Mode for parsing entities in the message text. See `formatting options " +"`_ for more " +"details." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:15 of +msgid "" +"A JSON-serialized list of special entities that appear in message text, " +"which can be specified instead of *parse_mode*" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:16 of +msgid "Link preview generation options for the message" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:32 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:33 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:27 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:18 of +msgid "" +"Sends the message `silently `_. Users will receive a notification with no sound." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:33 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:27 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:34 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:28 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:27 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:19 of +msgid "Protects the contents of the sent message from forwarding and saving" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:34 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:28 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:27 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:35 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:29 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:28 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:20 of +msgid "" +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:35 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:29 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:28 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:36 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:30 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:29 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:21 of +msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:36 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:30 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:29 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:21 of +msgid "Description of the message to reply to" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:27 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:31 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:30 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:27 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:31 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:30 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:22 of +msgid "" +"Additional interface options. A JSON-serialized object for an `inline " +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove a reply keyboard or to force a reply from the user" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:28 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:27 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:38 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:32 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:31 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:28 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:27 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:38 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:32 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:31 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:23 of +msgid "" +"Pass :code:`True` if the message should be sent even if the specified " +"replied-to message is not found" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:23 of +msgid "Disables link previews for links in this message" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:29 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:28 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:39 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:33 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:27 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:32 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:24 of +msgid "If the message is a reply, ID of the original message" +msgstr "" + +#: ../../api/types/inaccessible_message.rst +msgid "Returns" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:24 of +msgid "instance of method :class:`aiogram.methods.send_message.SendMessage`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:5 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:5 of +msgid ":code:`reply_parameters`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_animation.SendAnimation`" +" will automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:7 of +msgid "" +"Use this method to send animation files (GIF or H.264/MPEG-4 AVC video " +"without sound). On success, the sent " +":class:`aiogram.types.message.Message` is returned. Bots can currently " +"send animation files of up to 50 MB in size, this limit may be changed in" +" the future." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:9 of +msgid "Source: https://core.telegram.org/bots/api#sendanimation" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:11 of +msgid "" +"Animation to send. Pass a file_id as String to send an animation that " +"exists on the Telegram servers (recommended), pass an HTTP URL as a " +"String for Telegram to get an animation from the Internet, or upload a " +"new animation using multipart/form-data. :ref:`More information on " +"Sending Files » `" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:14 of +msgid "Duration of sent animation in seconds" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:15 of +msgid "Animation width" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:16 of +msgid "Animation height" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:16 +#: of +msgid "" +"Thumbnail of the file sent; can be ignored if thumbnail generation for " +"the file is supported server-side. The thumbnail should be in JPEG format" +" and less than 200 kB in size. A thumbnail's width and height should not " +"exceed 320. Ignored if the file is not uploaded using multipart/form-" +"data. Thumbnails can't be reused and can be only uploaded as a new file, " +"so you can pass 'attach://' if the thumbnail was " +"uploaded using multipart/form-data under . :ref:`More " +"information on Sending Files » `" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:18 of +msgid "" +"Animation caption (may also be used when resending animation by " +"*file_id*), 0-1024 characters after entities parsing" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:19 of +msgid "" +"Mode for parsing entities in the animation caption. See `formatting " +"options `_ for " +"more details." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:16 of +msgid "" +"A JSON-serialized list of special entities that appear in the caption, " +"which can be specified instead of *parse_mode*" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:23 of +msgid "Pass :code:`True`, if the caption must be shown above the message media" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:22 of +msgid "" +"Pass :code:`True` if the animation needs to be covered with a spoiler " +"animation" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_animation:30 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_animation:29 of +msgid "instance of method :class:`aiogram.methods.send_animation.SendAnimation`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_audio.SendAudio` will " +"automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:7 of +msgid "" +"Use this method to send audio files, if you want Telegram clients to " +"display them in the music player. Your audio must be in the .MP3 or .M4A " +"format. On success, the sent :class:`aiogram.types.message.Message` is " +"returned. Bots can currently send audio files of up to 50 MB in size, " +"this limit may be changed in the future. For sending voice messages, use " +"the :class:`aiogram.methods.send_voice.SendVoice` method instead." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:9 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:10 of +msgid "Source: https://core.telegram.org/bots/api#sendaudio" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:12 of +msgid "" +"Audio file to send. Pass a file_id as String to send an audio file that " +"exists on the Telegram servers (recommended), pass an HTTP URL as a " +"String for Telegram to get an audio file from the Internet, or upload a " +"new one using multipart/form-data. :ref:`More information on Sending " +"Files » `" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:15 of +msgid "Audio caption, 0-1024 characters after entities parsing" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:16 of +msgid "" +"Mode for parsing entities in the audio caption. See `formatting options " +"`_ for more " +"details." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:18 of +msgid "Duration of the audio in seconds" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:19 of +msgid "Performer" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:20 of +msgid "Track name" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_audio:29 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_audio:28 of +msgid "instance of method :class:`aiogram.methods.send_audio.SendAudio`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_contact.SendContact` " +"will automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:7 of +msgid "" +"Use this method to send phone contacts. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:9 of +msgid "Source: https://core.telegram.org/bots/api#sendcontact" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:11 of +msgid "Contact's phone number" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:12 of +msgid "Contact's first name" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:15 of +msgid "Contact's last name" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:16 of +msgid "" +"Additional data about the contact in the form of a `vCard " +"`_, 0-2048 bytes" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_contact:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_contact:23 of +msgid "instance of method :class:`aiogram.methods.send_contact.SendContact`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_document.SendDocument` " +"will automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:7 of +msgid "" +"Use this method to send general files. On success, the sent " +":class:`aiogram.types.message.Message` is returned. Bots can currently " +"send files of any type of up to 50 MB in size, this limit may be changed " +"in the future." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:9 of +msgid "Source: https://core.telegram.org/bots/api#senddocument" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:11 of +msgid "" +"File to send. Pass a file_id as String to send a file that exists on the " +"Telegram servers (recommended), pass an HTTP URL as a String for Telegram" +" to get a file from the Internet, or upload a new one using multipart" +"/form-data. :ref:`More information on Sending Files » `" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:15 of +msgid "" +"Document caption (may also be used when resending documents by " +"*file_id*), 0-1024 characters after entities parsing" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:16 of +msgid "" +"Mode for parsing entities in the document caption. See `formatting " +"options `_ for " +"more details." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:18 of +msgid "" +"Disables automatic server-side content type detection for files uploaded " +"using multipart/form-data" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_document:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_document:25 of +msgid "instance of method :class:`aiogram.methods.send_document.SendDocument`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_game.SendGame` will " +"automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:7 of +msgid "" +"Use this method to send a game. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:9 of +msgid "Source: https://core.telegram.org/bots/api#sendgame" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:11 of +msgid "" +"Short name of the game, serves as the unique identifier for the game. Set" +" up your games via `@BotFather `_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:18 of +msgid "" +"A JSON-serialized object for an `inline keyboard " +"`_. If empty, " +"one 'Play game_title' button will be shown. If not empty, the first " +"button must launch the game." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_game:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_game:20 of +msgid "instance of method :class:`aiogram.methods.send_game.SendGame`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_invoice.SendInvoice` " +"will automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:7 of +msgid "" +"Use this method to send invoices. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:9 of +msgid "Source: https://core.telegram.org/bots/api#sendinvoice" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:11 of +msgid "Product name, 1-32 characters" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:12 of +msgid "Product description, 1-255 characters" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:13 of +msgid "" +"Bot-defined invoice payload, 1-128 bytes. This will not be displayed to " +"the user, use it for your internal processes." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:14 of +msgid "" +"Three-letter ISO 4217 currency code, see `more on currencies " +"`_. Pass " +"'XTR' for payments in `Telegram Stars `_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:15 of +msgid "" +"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 " +"`_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:17 of +msgid "" +"Payment provider token, obtained via `@BotFather " +"`_. Pass an empty string for payments in " +"`Telegram Stars `_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:18 of +msgid "" +"The maximum accepted amount for tips in the *smallest units* of the " +"currency (integer, **not** float/double). For example, for a maximum tip " +"of :code:`US$ 1.45` pass :code:`max_tip_amount = 145`. See the *exp* " +"parameter in `currencies.json " +"`_, it shows the" +" number of digits past the decimal point for each currency (2 for the " +"majority of currencies). Defaults to 0. Not supported for payments in " +"`Telegram Stars `_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:19 of +msgid "" +"A JSON-serialized array of suggested amounts of tips in the *smallest " +"units* of the currency (integer, **not** float/double). At most 4 " +"suggested tip amounts can be specified. The suggested tip amounts must be" +" positive, passed in a strictly increased order and must not exceed " +"*max_tip_amount*." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:20 of +msgid "" +"Unique deep-linking parameter. If left empty, **forwarded copies** of the" +" sent message will have a *Pay* button, allowing multiple users to pay " +"directly from the forwarded message, using the same invoice. If non-" +"empty, forwarded copies of the sent message will have a *URL* button with" +" a deep link to the bot (instead of a *Pay* button), with the value used " +"as the start parameter" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:21 of +msgid "" +"JSON-serialized data about the invoice, which will be shared with the " +"payment provider. A detailed description of required fields should be " +"provided by the payment provider." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:22 of +msgid "" +"URL of the product photo for the invoice. Can be a photo of the goods or " +"a marketing image for a service. People like it better when they see what" +" they are paying for." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:23 of +msgid "Photo size in bytes" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:24 of +msgid "Photo width" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:25 of +msgid "Photo height" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:26 of +msgid "" +"Pass :code:`True` if you require the user's full name to complete the " +"order. Ignored for payments in `Telegram Stars " +"`_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:27 of +msgid "" +"Pass :code:`True` if you require the user's phone number to complete the " +"order. Ignored for payments in `Telegram Stars " +"`_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:27 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:28 of +msgid "" +"Pass :code:`True` if you require the user's email address to complete the" +" order. Ignored for payments in `Telegram Stars " +"`_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:28 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:29 of +msgid "" +"Pass :code:`True` if you require the user's shipping address to complete " +"the order. Ignored for payments in `Telegram Stars " +"`_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:29 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:30 of +msgid "" +"Pass :code:`True` if the user's phone number should be sent to the " +"provider. Ignored for payments in `Telegram Stars " +"`_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:30 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:31 of +msgid "" +"Pass :code:`True` if the user's email address should be sent to the " +"provider. Ignored for payments in `Telegram Stars " +"`_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:31 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:32 of +msgid "" +"Pass :code:`True` if the final price depends on the shipping method. " +"Ignored for payments in `Telegram Stars `_." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:37 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:37 of +msgid "" +"A JSON-serialized object for an `inline keyboard " +"`_. If empty, " +"one 'Pay :code:`total price`' button will be shown. If not empty, the " +"first button must be a Pay button." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_invoice:40 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_invoice:39 of +msgid "instance of method :class:`aiogram.methods.send_invoice.SendInvoice`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_location.SendLocation` " +"will automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:7 of +msgid "" +"Use this method to send point on the map. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:9 of +msgid "Source: https://core.telegram.org/bots/api#sendlocation" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:11 of +msgid "Latitude of the location" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:12 of +msgid "Longitude of the location" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:15 of +msgid "The radius of uncertainty for the location, measured in meters; 0-1500" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:16 of +msgid "" +"Period in seconds during which the location will be updated (see `Live " +"Locations `_, should be between" +" 60 and 86400, or 0x7FFFFFFF for live locations that can be edited " +"indefinitely." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:17 of +msgid "" +"For live locations, a direction in which the user is moving, in degrees. " +"Must be between 1 and 360 if specified." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:18 of +msgid "" +"For live locations, a maximum distance for proximity alerts about " +"approaching another chat member, in meters. Must be between 1 and 100000 " +"if specified." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_location:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_location:25 of +msgid "instance of method :class:`aiogram.methods.send_location.SendLocation`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:1 +#: of +msgid "" +"Shortcut for method " +":class:`aiogram.methods.send_media_group.SendMediaGroup` will " +"automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:7 +#: of +msgid "" +"Use this method to send a group of photos, videos, documents or audios as" +" an album. Documents and audio files can be only grouped in an album with" +" messages of the same type. On success, an array of `Messages " +"`_ that were sent is " +"returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:9 +#: of +msgid "Source: https://core.telegram.org/bots/api#sendmediagroup" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:11 +#: of +msgid "" +"A JSON-serialized array describing messages to be sent, must include 2-10" +" items" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:14 +#: of +msgid "" +"Sends messages `silently `_. Users will receive a notification with no sound." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:15 +#: of +msgid "Protects the contents of the sent messages from forwarding and saving" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:19 +#: of +msgid "If the messages are a reply, ID of the original message" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_media_group:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_media_group:19 +#: of +msgid "" +"instance of method " +":class:`aiogram.methods.send_media_group.SendMediaGroup`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_photo.SendPhoto` will " +"automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:7 of +msgid "" +"Use this method to send photos. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:9 of +msgid "Source: https://core.telegram.org/bots/api#sendphoto" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:11 of +msgid "" +"Photo to send. Pass a file_id as String to send a photo that exists on " +"the Telegram servers (recommended), pass an HTTP URL as a String for " +"Telegram to get a photo from the Internet, or upload a new photo using " +"multipart/form-data. The photo must be at most 10 MB in size. The photo's" +" width and height must not exceed 10000 in total. Width and height ratio " +"must be at most 20. :ref:`More information on Sending Files » `" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:14 of +msgid "" +"Photo caption (may also be used when resending photos by *file_id*), " +"0-1024 characters after entities parsing" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:15 of +msgid "" +"Mode for parsing entities in the photo caption. See `formatting options " +"`_ for more " +"details." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:18 of +msgid "" +"Pass :code:`True` if the photo needs to be covered with a spoiler " +"animation" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_photo:26 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_photo:25 of +msgid "instance of method :class:`aiogram.methods.send_photo.SendPhoto`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_poll.SendPoll` will " +"automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:7 of +msgid "" +"Use this method to send a native poll. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:9 of +msgid "Source: https://core.telegram.org/bots/api#sendpoll" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:11 of +msgid "Poll question, 1-300 characters" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:12 of +msgid "A JSON-serialized list of 2-10 answer options" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:15 of +msgid "" +"Mode for parsing entities in the question. See `formatting options " +"`_ for more " +"details. Currently, only custom emoji entities are allowed" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:16 of +msgid "" +"A JSON-serialized list of special entities that appear in the poll " +"question. It can be specified instead of *question_parse_mode*" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:17 of +msgid ":code:`True`, if the poll needs to be anonymous, defaults to :code:`True`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:18 of +msgid "Poll type, 'quiz' or 'regular', defaults to 'regular'" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:19 of +msgid "" +":code:`True`, if the poll allows multiple answers, ignored for polls in " +"quiz mode, defaults to :code:`False`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:20 of +msgid "" +"0-based identifier of the correct answer option, required for polls in " +"quiz mode" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:21 of +msgid "" +"Text that is shown when a user chooses an incorrect answer or taps on the" +" lamp icon in a quiz-style poll, 0-200 characters with at most 2 line " +"feeds after entities parsing" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:22 of +msgid "" +"Mode for parsing entities in the explanation. See `formatting options " +"`_ for more " +"details." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:23 of +msgid "" +"A JSON-serialized list of special entities that appear in the poll " +"explanation. It can be specified instead of *explanation_parse_mode*" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:24 of +msgid "" +"Amount of time in seconds the poll will be active after creation, 5-600. " +"Can't be used together with *close_date*." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:25 of +msgid "" +"Point in time (Unix timestamp) when the poll will be automatically " +"closed. Must be at least 5 and no more than 600 seconds in the future. " +"Can't be used together with *open_period*." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:26 of +msgid "" +"Pass :code:`True` if the poll needs to be immediately closed. This can be" +" useful for poll preview." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_poll:34 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_poll:33 of +msgid "instance of method :class:`aiogram.methods.send_poll.SendPoll`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_dice.SendDice` will " +"automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:7 of +msgid "" +"Use this method to send an animated emoji that will display a random " +"value. On success, the sent :class:`aiogram.types.message.Message` is " +"returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:9 of +msgid "Source: https://core.telegram.org/bots/api#senddice" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:13 of +msgid "" +"Emoji on which the dice throw animation is based. Currently, must be one " +"of '🎲', '🎯', '🏀', '⚽', '🎳', or '🎰'. Dice can have values 1-6 for '🎲', '🎯'" +" and '🎳', values 1-5 for '🏀' and '⚽', and values 1-64 for '🎰'. Defaults " +"to '🎲'" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:15 of +msgid "Protects the contents of the sent message from forwarding" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_dice:21 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_dice:20 of +msgid "instance of method :class:`aiogram.methods.send_dice.SendDice`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_sticker.SendSticker` " +"will automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:7 of +msgid "" +"Use this method to send static .WEBP, `animated " +"`_ .TGS, or `video " +"`_ .WEBM " +"stickers. On success, the sent :class:`aiogram.types.message.Message` is " +"returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:9 of +msgid "Source: https://core.telegram.org/bots/api#sendsticker" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:11 of +msgid "" +"Sticker to send. Pass a file_id as String to send a file that exists on " +"the Telegram servers (recommended), pass an HTTP URL as a String for " +"Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP," +" .TGS, or .WEBM sticker using multipart/form-data. :ref:`More information" +" on Sending Files » `. Video and animated stickers can't " +"be sent via an HTTP URL." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:14 of +msgid "Emoji associated with the sticker; only for just uploaded stickers" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_sticker:22 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_sticker:21 of +msgid "instance of method :class:`aiogram.methods.send_sticker.SendSticker`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_venue.SendVenue` will " +"automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:7 of +msgid "" +"Use this method to send information about a venue. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:9 of +msgid "Source: https://core.telegram.org/bots/api#sendvenue" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:11 of +msgid "Latitude of the venue" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:12 of +msgid "Longitude of the venue" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:12 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:13 of +msgid "Name of the venue" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:14 of +msgid "Address of the venue" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:17 of +msgid "Foursquare identifier of the venue" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:18 of +msgid "" +"Foursquare type of the venue, if known. (For example, " +"'arts_entertainment/default', 'arts_entertainment/aquarium' or " +"'food/icecream'.)" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:19 of +msgid "Google Places identifier of the venue" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:20 of +msgid "" +"Google Places type of the venue. (See `supported types " +"`_.)" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue:28 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue:27 of +msgid "instance of method :class:`aiogram.methods.send_venue.SendVenue`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_video.SendVideo` will " +"automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:7 of +msgid "" +"Use this method to send video files, Telegram clients support MPEG4 " +"videos (other formats may be sent as " +":class:`aiogram.types.document.Document`). On success, the sent " +":class:`aiogram.types.message.Message` is returned. Bots can currently " +"send video files of up to 50 MB in size, this limit may be changed in the" +" future." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:9 of +msgid "Source: https://core.telegram.org/bots/api#sendvideo" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:11 of +msgid "" +"Video to send. Pass a file_id as String to send a video that exists on " +"the Telegram servers (recommended), pass an HTTP URL as a String for " +"Telegram to get a video from the Internet, or upload a new video using " +"multipart/form-data. :ref:`More information on Sending Files » `" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:14 +#: of +msgid "Duration of sent video in seconds" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:15 of +msgid "Video width" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:16 of +msgid "Video height" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:17 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:18 of +msgid "" +"Cover for the video in the message. Pass a file_id to send a file that " +"exists on the Telegram servers (recommended), pass an HTTP URL for " +"Telegram to get a file from the Internet, or pass " +"'attach://' to upload a new one using multipart/form-" +"data under name. :ref:`More information on Sending " +"Files » `" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:18 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:19 of +msgid "Start timestamp for the video in the message" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:19 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:20 of +msgid "" +"Video caption (may also be used when resending videos by *file_id*), " +"0-1024 characters after entities parsing" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:20 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:21 of +msgid "" +"Mode for parsing entities in the video caption. See `formatting options " +"`_ for more " +"details." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:24 of +msgid "" +"Pass :code:`True` if the video needs to be covered with a spoiler " +"animation" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:25 of +msgid "Pass :code:`True` if the uploaded video is suitable for streaming" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video:33 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video:32 of +msgid "instance of method :class:`aiogram.methods.send_video.SendVideo`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:1 of +msgid "" +"Shortcut for method " +":class:`aiogram.methods.send_video_note.SendVideoNote` will automatically" +" fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:7 of +msgid "" +"As of `v.4.0 `_, " +"Telegram clients support rounded square MPEG4 videos of up to 1 minute " +"long. Use this method to send video messages. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:9 of +msgid "Source: https://core.telegram.org/bots/api#sendvideonote" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:11 +#: of +msgid "" +"Video note to send. Pass a file_id as String to send a video note that " +"exists on the Telegram servers (recommended) or upload a new video using " +"multipart/form-data. :ref:`More information on Sending Files » `. Sending video notes by a URL is currently unsupported" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:15 +#: of +msgid "Video width and height, i.e. diameter of the video message" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_video_note:24 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_video_note:23 +#: of +msgid "instance of method :class:`aiogram.methods.send_video_note.SendVideoNote`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:1 of +msgid "" +"Shortcut for method :class:`aiogram.methods.send_voice.SendVoice` will " +"automatically fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:7 of +msgid "" +"Use this method to send audio files, if you want Telegram clients to " +"display the file as a playable voice message. For this to work, your " +"audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in" +" .M4A format (other formats may be sent as " +":class:`aiogram.types.audio.Audio` or " +":class:`aiogram.types.document.Document`). On success, the sent " +":class:`aiogram.types.message.Message` is returned. Bots can currently " +"send voice messages of up to 50 MB in size, this limit may be changed in " +"the future." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:9 of +msgid "Source: https://core.telegram.org/bots/api#sendvoice" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:11 of +msgid "" +"Audio file to send. Pass a file_id as String to send a file that exists " +"on the Telegram servers (recommended), pass an HTTP URL as a String for " +"Telegram to get a file from the Internet, or upload a new one using " +"multipart/form-data. :ref:`More information on Sending Files » `" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:14 of +msgid "Voice message caption, 0-1024 characters after entities parsing" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:15 of +msgid "" +"Mode for parsing entities in the voice message caption. See `formatting " +"options `_ for " +"more details." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:16 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:17 of +msgid "Duration of the voice message in seconds" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_voice:25 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_voice:24 of +msgid "instance of method :class:`aiogram.methods.send_voice.SendVoice`" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:1 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:1 of +msgid "" +"Shortcut for method " +":class:`aiogram.methods.send_paid_media.SendPaidMedia` will automatically" +" fill method attributes:" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:6 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:7 of +msgid "" +"Use this method to send paid media. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:8 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:9 of +msgid "Source: https://core.telegram.org/bots/api#sendpaidmedia" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:10 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:11 +#: of +msgid "" +"The number of Telegram Stars that must be paid to buy access to the " +"media; 1-2500" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:11 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:12 +#: of +msgid "A JSON-serialized array describing the media to be sent; up to 10 items" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:13 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:14 +#: of +msgid "" +"Bot-defined paid media payload, 0-128 bytes. This will not be displayed " +"to the user, use it for your internal processes." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:14 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:15 +#: of +msgid "Media caption, 0-1024 characters after entities parsing" +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:15 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:16 +#: of +msgid "" +"Mode for parsing entities in the media caption. See `formatting options " +"`_ for more " +"details." +msgstr "" + +#: aiogram.types.inaccessible_message.InaccessibleMessage.answer_paid_media:23 +#: aiogram.types.inaccessible_message.InaccessibleMessage.reply_paid_media:23 +#: of +msgid "instance of method :class:`aiogram.methods.send_paid_media.SendPaidMedia`" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_keyboard_button.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_keyboard_button.po index 3db47e31..727d0185 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_keyboard_button.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_keyboard_button.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-07-02 15:10+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_keyboard_button.rst:3 msgid "InlineKeyboardButton" @@ -23,8 +23,8 @@ msgstr "" #: aiogram.types.inline_keyboard_button.InlineKeyboardButton:1 of msgid "" -"This object represents one button of an inline keyboard. You **must** use" -" exactly one of the optional fields." +"This object represents one button of an inline keyboard. Exactly one of " +"the optional fields must be used to specify type of the button." msgstr "" #: aiogram.types.inline_keyboard_button.InlineKeyboardButton:3 of @@ -41,15 +41,15 @@ msgstr "" msgid "" "*Optional*. HTTP or tg:// URL to be opened when the button is pressed. " "Links :code:`tg://user?id=` can be used to mention a user by " -"their ID without using a username, if this is allowed by their privacy " -"settings." +"their identifier without using a username, if this is allowed by their " +"privacy settings." msgstr "" #: ../../docstring #: aiogram.types.inline_keyboard_button.InlineKeyboardButton.callback_data:1 of msgid "" "*Optional*. Data to be sent in a `callback query " -"`_ to the bot when " +"`_ to the bot when the " "button is pressed, 1-64 bytes" msgstr "" @@ -61,7 +61,8 @@ msgid "" " user presses the button. The Web App will be able to send an arbitrary " "message on behalf of the user using the method " ":class:`aiogram.methods.answer_web_app_query.AnswerWebAppQuery`. " -"Available only in private chats between a user and the bot." +"Available only in private chats between a user and the bot. Not supported" +" for messages sent on behalf of a Telegram Business account." msgstr "" #: ../../docstring @@ -79,7 +80,8 @@ msgid "" "*Optional*. If set, pressing the button will prompt the user to select " "one of their chats, open that chat and insert the bot's username and the " "specified inline query in the input field. May be empty, in which case " -"just the bot's username will be inserted." +"just the bot's username will be inserted. Not supported for messages sent" +" on behalf of a Telegram Business account." msgstr "" #: ../../docstring @@ -97,7 +99,15 @@ msgstr "" msgid "" "*Optional*. If set, pressing the button will prompt the user to select " "one of their chats of the specified type, open that chat and insert the " -"bot's username and the specified inline query in the input field" +"bot's username and the specified inline query in the input field. Not " +"supported for messages sent on behalf of a Telegram Business account." +msgstr "" + +#: ../../docstring +#: aiogram.types.inline_keyboard_button.InlineKeyboardButton.copy_text:1 of +msgid "" +"*Optional*. Description of the button that copies the specified text to " +"the clipboard." msgstr "" #: ../../docstring @@ -111,5 +121,70 @@ msgstr "" #: aiogram.types.inline_keyboard_button.InlineKeyboardButton.pay:1 of msgid "" "*Optional*. Specify :code:`True`, to send a `Pay button " -"`_." +"`_. Substrings '⭐' and 'XTR'" +" in the buttons's text will be replaced with a Telegram Star icon." msgstr "" + +#~ msgid "" +#~ "This object represents one button of " +#~ "an inline keyboard. You **must** use " +#~ "exactly one of the optional fields." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. HTTP or tg:// URL to " +#~ "be opened when the button is " +#~ "pressed. Links :code:`tg://user?id=` can" +#~ " be used to mention a user by" +#~ " their ID without using a username," +#~ " if this is allowed by their " +#~ "privacy settings." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Data to be sent in a" +#~ " `callback query " +#~ "`_ to " +#~ "the bot when button is pressed, " +#~ "1-64 bytes" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Description of the `Web App" +#~ " `_ that will" +#~ " be launched when the user presses" +#~ " the button. The Web App will " +#~ "be able to send an arbitrary " +#~ "message on behalf of the user " +#~ "using the method " +#~ ":class:`aiogram.methods.answer_web_app_query.AnswerWebAppQuery`. " +#~ "Available only in private chats between" +#~ " a user and the bot." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. If set, pressing the button" +#~ " will prompt the user to select " +#~ "one of their chats, open that chat" +#~ " and insert the bot's username and" +#~ " the specified inline query in the" +#~ " input field. May be empty, in " +#~ "which case just the bot's username " +#~ "will be inserted." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. If set, pressing the button" +#~ " will prompt the user to select " +#~ "one of their chats of the " +#~ "specified type, open that chat and " +#~ "insert the bot's username and the " +#~ "specified inline query in the input " +#~ "field" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Specify :code:`True`, to send " +#~ "a `Pay button " +#~ "`_." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_keyboard_markup.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_keyboard_markup.po index b516034d..801a8c0e 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_keyboard_markup.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_keyboard_markup.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_keyboard_markup.rst:3 msgid "InlineKeyboardMarkup" @@ -25,12 +25,10 @@ msgstr "" msgid "" "This object represents an `inline keyboard " "`_ that appears" -" right next to the message it belongs to. **Note:** This will only work " -"in Telegram versions released after 9 April, 2016. Older clients will " -"display *unsupported message*." +" right next to the message it belongs to." msgstr "" -#: aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup:4 of +#: aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup:3 of msgid "Source: https://core.telegram.org/bots/api#inlinekeyboardmarkup" msgstr "" @@ -54,3 +52,14 @@ msgstr "" #~ " clients will display *unsupported " #~ "message*." #~ msgstr "" + +#~ msgid "" +#~ "This object represents an `inline " +#~ "keyboard `_ that appears right next to" +#~ " the message it belongs to. **Note:**" +#~ " This will only work in Telegram " +#~ "versions released after 9 April, 2016." +#~ " Older clients will display *unsupported" +#~ " message*." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_article.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_article.po index 6615989c..5a147d57 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_article.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_article.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_article.rst:3 msgid "InlineQueryResultArticle" @@ -64,6 +64,30 @@ msgstr "" msgid "*Optional*. URL of the result" msgstr "" +#: ../../docstring +#: aiogram.types.inline_query_result_article.InlineQueryResultArticle.description:1 +#: of +msgid "*Optional*. Short description of the result" +msgstr "" + +#: ../../docstring +#: aiogram.types.inline_query_result_article.InlineQueryResultArticle.thumbnail_url:1 +#: of +msgid "*Optional*. Url of the thumbnail for the result" +msgstr "" + +#: ../../docstring +#: aiogram.types.inline_query_result_article.InlineQueryResultArticle.thumbnail_width:1 +#: of +msgid "*Optional*. Thumbnail width" +msgstr "" + +#: ../../docstring +#: aiogram.types.inline_query_result_article.InlineQueryResultArticle.thumbnail_height:1 +#: of +msgid "*Optional*. Thumbnail height" +msgstr "" + #: ../../docstring #: aiogram.types.inline_query_result_article.InlineQueryResultArticle.hide_url:1 #: of @@ -73,27 +97,9 @@ msgid "" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_article.InlineQueryResultArticle.description:1 +#: aiogram.types.inline_query_result_article.InlineQueryResultArticle.hide_url:3 #: of -msgid "*Optional*. Short description of the result" -msgstr "" - -#: ../../docstring -#: aiogram.types.inline_query_result_article.InlineQueryResultArticle.thumb_url:1 -#: of -msgid "*Optional*. Url of the thumbnail for the result" -msgstr "" - -#: ../../docstring -#: aiogram.types.inline_query_result_article.InlineQueryResultArticle.thumb_width:1 -#: of -msgid "*Optional*. Thumbnail width" -msgstr "" - -#: ../../docstring -#: aiogram.types.inline_query_result_article.InlineQueryResultArticle.thumb_height:1 -#: of -msgid "*Optional*. Thumbnail height" +msgid "https://core.telegram.org/bots/api-changelog#january-1-2025" msgstr "" #~ msgid "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_audio.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_audio.po index 9ee8ea87..d404804e 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_audio.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_audio.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_audio.rst:3 msgid "InlineQueryResultAudio" @@ -25,12 +25,10 @@ msgstr "" msgid "" "Represents a link to an MP3 audio file. By default, this audio file will " "be sent by the user. Alternatively, you can use *input_message_content* " -"to send a message with the specified content instead of the audio. " -"**Note:** This will only work in Telegram versions released after 9 " -"April, 2016. Older clients will ignore them." +"to send a message with the specified content instead of the audio." msgstr "" -#: aiogram.types.inline_query_result_audio.InlineQueryResultAudio:4 of +#: aiogram.types.inline_query_result_audio.InlineQueryResultAudio:3 of msgid "Source: https://core.telegram.org/bots/api#inlinequeryresultaudio" msgstr "" @@ -109,3 +107,16 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "" +#~ "Represents a link to an MP3 audio" +#~ " file. By default, this audio file" +#~ " will be sent by the user. " +#~ "Alternatively, you can use " +#~ "*input_message_content* to send a message " +#~ "with the specified content instead of" +#~ " the audio. **Note:** This will only" +#~ " work in Telegram versions released " +#~ "after 9 April, 2016. Older clients " +#~ "will ignore them." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_audio.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_audio.po index 5accdb13..ed5e5a5a 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_audio.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_audio.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_cached_audio.rst:3 msgid "InlineQueryResultCachedAudio" @@ -27,11 +27,10 @@ msgid "" "Represents a link to an MP3 audio file stored on the Telegram servers. By" " default, this audio file will be sent by the user. Alternatively, you " "can use *input_message_content* to send a message with the specified " -"content instead of the audio. **Note:** This will only work in Telegram " -"versions released after 9 April, 2016. Older clients will ignore them." +"content instead of the audio." msgstr "" -#: aiogram.types.inline_query_result_cached_audio.InlineQueryResultCachedAudio:4 +#: aiogram.types.inline_query_result_cached_audio.InlineQueryResultCachedAudio:3 #: of msgid "Source: https://core.telegram.org/bots/api#inlinequeryresultcachedaudio" msgstr "" @@ -97,3 +96,16 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "" +#~ "Represents a link to an MP3 audio" +#~ " file stored on the Telegram servers." +#~ " By default, this audio file will " +#~ "be sent by the user. Alternatively, " +#~ "you can use *input_message_content* to " +#~ "send a message with the specified " +#~ "content instead of the audio. **Note:**" +#~ " This will only work in Telegram " +#~ "versions released after 9 April, 2016." +#~ " Older clients will ignore them." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_document.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_document.po index eb805a02..864bca28 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_document.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_document.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_cached_document.rst:3 msgid "InlineQueryResultCachedDocument" @@ -27,12 +27,10 @@ msgid "" "Represents a link to a file stored on the Telegram servers. By default, " "this file will be sent by the user with an optional caption. " "Alternatively, you can use *input_message_content* to send a message with" -" the specified content instead of the file. **Note:** This will only work" -" in Telegram versions released after 9 April, 2016. Older clients will " -"ignore them." +" the specified content instead of the file." msgstr "" -#: aiogram.types.inline_query_result_cached_document.InlineQueryResultCachedDocument:4 +#: aiogram.types.inline_query_result_cached_document.InlineQueryResultCachedDocument:3 #: of msgid "Source: https://core.telegram.org/bots/api#inlinequeryresultcacheddocument" msgstr "" @@ -112,3 +110,17 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "" +#~ "Represents a link to a file stored" +#~ " on the Telegram servers. By default," +#~ " this file will be sent by the" +#~ " user with an optional caption. " +#~ "Alternatively, you can use " +#~ "*input_message_content* to send a message " +#~ "with the specified content instead of" +#~ " the file. **Note:** This will only" +#~ " work in Telegram versions released " +#~ "after 9 April, 2016. Older clients " +#~ "will ignore them." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_gif.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_gif.po index ffc4e8f0..69f784b2 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_gif.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_gif.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_cached_gif.rst:3 msgid "InlineQueryResultCachedGif" @@ -82,6 +82,14 @@ msgid "" "can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.types.inline_query_result_cached_gif.InlineQueryResultCachedGif.show_caption_above_media:1 +#: of +msgid "" +"*Optional*. Pass :code:`True`, if the caption must be shown above the " +"message media" +msgstr "" + #: ../../docstring #: aiogram.types.inline_query_result_cached_gif.InlineQueryResultCachedGif.reply_markup:1 #: of diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_mpeg4_gif.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_mpeg4_gif.po index 96885946..cd6ee9ea 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_mpeg4_gif.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_mpeg4_gif.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_cached_mpeg4_gif.rst:3 msgid "InlineQueryResultCachedMpeg4Gif" @@ -85,6 +85,14 @@ msgid "" "can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.types.inline_query_result_cached_mpeg4_gif.InlineQueryResultCachedMpeg4Gif.show_caption_above_media:1 +#: of +msgid "" +"*Optional*. Pass :code:`True`, if the caption must be shown above the " +"message media" +msgstr "" + #: ../../docstring #: aiogram.types.inline_query_result_cached_mpeg4_gif.InlineQueryResultCachedMpeg4Gif.reply_markup:1 #: of diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_photo.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_photo.po index 965f8ad7..c3b543c0 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_photo.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_photo.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_cached_photo.rst:3 msgid "InlineQueryResultCachedPhoto" @@ -90,6 +90,14 @@ msgid "" "can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.types.inline_query_result_cached_photo.InlineQueryResultCachedPhoto.show_caption_above_media:1 +#: of +msgid "" +"*Optional*. Pass :code:`True`, if the caption must be shown above the " +"message media" +msgstr "" + #: ../../docstring #: aiogram.types.inline_query_result_cached_photo.InlineQueryResultCachedPhoto.reply_markup:1 #: of diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_sticker.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_sticker.po index dc79cbca..0ccbf99b 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_sticker.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_sticker.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_cached_sticker.rst:3 msgid "InlineQueryResultCachedSticker" @@ -27,13 +27,10 @@ msgid "" "Represents a link to a sticker stored on the Telegram servers. By " "default, this sticker will be sent by the user. Alternatively, you can " "use *input_message_content* to send a message with the specified content " -"instead of the sticker. **Note:** This will only work in Telegram " -"versions released after 9 April, 2016 for static stickers and after 06 " -"July, 2019 for `animated stickers `_. Older clients will ignore them." +"instead of the sticker." msgstr "" -#: aiogram.types.inline_query_result_cached_sticker.InlineQueryResultCachedSticker:4 +#: aiogram.types.inline_query_result_cached_sticker.InlineQueryResultCachedSticker:3 #: of msgid "Source: https://core.telegram.org/bots/api#inlinequeryresultcachedsticker" msgstr "" @@ -76,3 +73,19 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "" +#~ "Represents a link to a sticker " +#~ "stored on the Telegram servers. By " +#~ "default, this sticker will be sent " +#~ "by the user. Alternatively, you can " +#~ "use *input_message_content* to send a " +#~ "message with the specified content " +#~ "instead of the sticker. **Note:** This" +#~ " will only work in Telegram versions" +#~ " released after 9 April, 2016 for " +#~ "static stickers and after 06 July, " +#~ "2019 for `animated stickers " +#~ "`_. Older " +#~ "clients will ignore them." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_video.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_video.po index 3836cf30..1a7151f6 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_video.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_video.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_cached_video.rst:3 msgid "InlineQueryResultCachedVideo" @@ -90,6 +90,14 @@ msgid "" "can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.types.inline_query_result_cached_video.InlineQueryResultCachedVideo.show_caption_above_media:1 +#: of +msgid "" +"*Optional*. Pass :code:`True`, if the caption must be shown above the " +"message media" +msgstr "" + #: ../../docstring #: aiogram.types.inline_query_result_cached_video.InlineQueryResultCachedVideo.reply_markup:1 #: of diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_voice.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_voice.po index d2bb9f10..b88ad5cd 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_voice.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_cached_voice.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_cached_voice.rst:3 msgid "InlineQueryResultCachedVoice" @@ -27,12 +27,10 @@ msgid "" "Represents a link to a voice message stored on the Telegram servers. By " "default, this voice message will be sent by the user. Alternatively, you " "can use *input_message_content* to send a message with the specified " -"content instead of the voice message. **Note:** This will only work in " -"Telegram versions released after 9 April, 2016. Older clients will ignore" -" them." +"content instead of the voice message." msgstr "" -#: aiogram.types.inline_query_result_cached_voice.InlineQueryResultCachedVoice:4 +#: aiogram.types.inline_query_result_cached_voice.InlineQueryResultCachedVoice:3 #: of msgid "Source: https://core.telegram.org/bots/api#inlinequeryresultcachedvoice" msgstr "" @@ -104,3 +102,17 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "" +#~ "Represents a link to a voice " +#~ "message stored on the Telegram servers." +#~ " By default, this voice message will" +#~ " be sent by the user. Alternatively," +#~ " you can use *input_message_content* to " +#~ "send a message with the specified " +#~ "content instead of the voice message." +#~ " **Note:** This will only work in " +#~ "Telegram versions released after 9 " +#~ "April, 2016. Older clients will ignore" +#~ " them." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_contact.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_contact.po index d9620a12..4f913bc2 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_contact.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_contact.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_contact.rst:3 msgid "InlineQueryResultContact" @@ -25,12 +25,10 @@ msgstr "" msgid "" "Represents a contact with a phone number. By default, this contact will " "be sent by the user. Alternatively, you can use *input_message_content* " -"to send a message with the specified content instead of the contact. " -"**Note:** This will only work in Telegram versions released after 9 " -"April, 2016. Older clients will ignore them." +"to send a message with the specified content instead of the contact." msgstr "" -#: aiogram.types.inline_query_result_contact.InlineQueryResultContact:4 of +#: aiogram.types.inline_query_result_contact.InlineQueryResultContact:3 of msgid "Source: https://core.telegram.org/bots/api#inlinequeryresultcontact" msgstr "" @@ -85,19 +83,19 @@ msgid "*Optional*. Content of the message to be sent instead of the contact" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_contact.InlineQueryResultContact.thumb_url:1 +#: aiogram.types.inline_query_result_contact.InlineQueryResultContact.thumbnail_url:1 #: of msgid "*Optional*. Url of the thumbnail for the result" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_contact.InlineQueryResultContact.thumb_width:1 +#: aiogram.types.inline_query_result_contact.InlineQueryResultContact.thumbnail_width:1 #: of msgid "*Optional*. Thumbnail width" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_contact.InlineQueryResultContact.thumb_height:1 +#: aiogram.types.inline_query_result_contact.InlineQueryResultContact.thumbnail_height:1 #: of msgid "*Optional*. Thumbnail height" msgstr "" @@ -108,3 +106,16 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "" +#~ "Represents a contact with a phone " +#~ "number. By default, this contact will" +#~ " be sent by the user. Alternatively," +#~ " you can use *input_message_content* to " +#~ "send a message with the specified " +#~ "content instead of the contact. " +#~ "**Note:** This will only work in " +#~ "Telegram versions released after 9 " +#~ "April, 2016. Older clients will ignore" +#~ " them." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_document.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_document.po index 9931e7ee..677bbac2 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_document.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_document.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_document.rst:3 msgid "InlineQueryResultDocument" @@ -27,11 +27,10 @@ msgid "" "user with an optional caption. Alternatively, you can use " "*input_message_content* to send a message with the specified content " "instead of the file. Currently, only **.PDF** and **.ZIP** files can be " -"sent using this method. **Note:** This will only work in Telegram " -"versions released after 9 April, 2016. Older clients will ignore them." +"sent using this method." msgstr "" -#: aiogram.types.inline_query_result_document.InlineQueryResultDocument:4 of +#: aiogram.types.inline_query_result_document.InlineQueryResultDocument:3 of msgid "Source: https://core.telegram.org/bots/api#inlinequeryresultdocument" msgstr "" @@ -110,19 +109,34 @@ msgid "*Optional*. Content of the message to be sent instead of the file" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_document.InlineQueryResultDocument.thumb_url:1 +#: aiogram.types.inline_query_result_document.InlineQueryResultDocument.thumbnail_url:1 #: of msgid "*Optional*. URL of the thumbnail (JPEG only) for the file" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_document.InlineQueryResultDocument.thumb_width:1 +#: aiogram.types.inline_query_result_document.InlineQueryResultDocument.thumbnail_width:1 #: of msgid "*Optional*. Thumbnail width" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_document.InlineQueryResultDocument.thumb_height:1 +#: aiogram.types.inline_query_result_document.InlineQueryResultDocument.thumbnail_height:1 #: of msgid "*Optional*. Thumbnail height" msgstr "" + +#~ msgid "" +#~ "Represents a link to a file. By" +#~ " default, this file will be sent " +#~ "by the user with an optional " +#~ "caption. Alternatively, you can use " +#~ "*input_message_content* to send a message " +#~ "with the specified content instead of" +#~ " the file. Currently, only **.PDF** " +#~ "and **.ZIP** files can be sent " +#~ "using this method. **Note:** This will" +#~ " only work in Telegram versions " +#~ "released after 9 April, 2016. Older " +#~ "clients will ignore them." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_game.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_game.po index a82f430f..3f5fd45f 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_game.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_game.po @@ -8,28 +8,24 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_game.rst:3 msgid "InlineQueryResultGame" msgstr "" #: aiogram.types.inline_query_result_game.InlineQueryResultGame:1 of -msgid "" -"Represents a `Game `_. " -"**Note:** This will only work in Telegram versions released after October" -" 1, 2016. Older clients will not display any inline results if a game " -"result is among them." +msgid "Represents a `Game `_." msgstr "" -#: aiogram.types.inline_query_result_game.InlineQueryResultGame:4 of +#: aiogram.types.inline_query_result_game.InlineQueryResultGame:3 of msgid "Source: https://core.telegram.org/bots/api#inlinequeryresultgame" msgstr "" @@ -63,3 +59,13 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "" +#~ "Represents a `Game " +#~ "`_. **Note:** " +#~ "This will only work in Telegram " +#~ "versions released after October 1, 2016." +#~ " Older clients will not display any" +#~ " inline results if a game result " +#~ "is among them." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_gif.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_gif.po index 0e298f7f..54f0197d 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_gif.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_gif.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_gif.rst:3 msgid "InlineQueryResultGif" @@ -45,11 +45,12 @@ msgstr "" #: ../../docstring #: aiogram.types.inline_query_result_gif.InlineQueryResultGif.gif_url:1 of -msgid "A valid URL for the GIF file. File size must not exceed 1MB" +msgid "A valid URL for the GIF file" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_gif.InlineQueryResultGif.thumb_url:1 of +#: aiogram.types.inline_query_result_gif.InlineQueryResultGif.thumbnail_url:1 +#: of msgid "" "URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the " "result" @@ -71,7 +72,7 @@ msgid "*Optional*. Duration of the GIF in seconds" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_gif.InlineQueryResultGif.thumb_mime_type:1 +#: aiogram.types.inline_query_result_gif.InlineQueryResultGif.thumbnail_mime_type:1 #: of msgid "" "*Optional*. MIME type of the thumbnail, must be one of 'image/jpeg', " @@ -106,6 +107,14 @@ msgid "" "can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.types.inline_query_result_gif.InlineQueryResultGif.show_caption_above_media:1 +#: of +msgid "" +"*Optional*. Pass :code:`True`, if the caption must be shown above the " +"message media" +msgstr "" + #: ../../docstring #: aiogram.types.inline_query_result_gif.InlineQueryResultGif.reply_markup:1 of msgid "" @@ -125,3 +134,6 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "A valid URL for the GIF file. File size must not exceed 1MB" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_location.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_location.po index aee2b822..6b32e250 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_location.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_location.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_location.rst:3 msgid "InlineQueryResultLocation" @@ -25,12 +25,10 @@ msgstr "" msgid "" "Represents a location on a map. By default, the location will be sent by " "the user. Alternatively, you can use *input_message_content* to send a " -"message with the specified content instead of the location. **Note:** " -"This will only work in Telegram versions released after 9 April, 2016. " -"Older clients will ignore them." +"message with the specified content instead of the location." msgstr "" -#: aiogram.types.inline_query_result_location.InlineQueryResultLocation:4 of +#: aiogram.types.inline_query_result_location.InlineQueryResultLocation:3 of msgid "Source: https://core.telegram.org/bots/api#inlinequeryresultlocation" msgstr "" @@ -75,8 +73,9 @@ msgstr "" #: aiogram.types.inline_query_result_location.InlineQueryResultLocation.live_period:1 #: of msgid "" -"*Optional*. Period in seconds for which the location can be updated, " -"should be between 60 and 86400." +"*Optional*. Period in seconds during which the location can be updated, " +"should be between 60 and 86400, or 0x7FFFFFFF for live locations that can" +" be edited indefinitely." msgstr "" #: ../../docstring @@ -111,19 +110,19 @@ msgid "*Optional*. Content of the message to be sent instead of the location" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_location.InlineQueryResultLocation.thumb_url:1 +#: aiogram.types.inline_query_result_location.InlineQueryResultLocation.thumbnail_url:1 #: of msgid "*Optional*. Url of the thumbnail for the result" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_location.InlineQueryResultLocation.thumb_width:1 +#: aiogram.types.inline_query_result_location.InlineQueryResultLocation.thumbnail_width:1 #: of msgid "*Optional*. Thumbnail width" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_location.InlineQueryResultLocation.thumb_height:1 +#: aiogram.types.inline_query_result_location.InlineQueryResultLocation.thumbnail_height:1 #: of msgid "*Optional*. Thumbnail height" msgstr "" @@ -134,3 +133,21 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "" +#~ "Represents a location on a map. By" +#~ " default, the location will be sent" +#~ " by the user. Alternatively, you can" +#~ " use *input_message_content* to send a " +#~ "message with the specified content " +#~ "instead of the location. **Note:** This" +#~ " will only work in Telegram versions" +#~ " released after 9 April, 2016. Older" +#~ " clients will ignore them." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Period in seconds for which" +#~ " the location can be updated, should" +#~ " be between 60 and 86400." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_mpeg4_gif.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_mpeg4_gif.po index 56c4da50..c5e9d307 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_mpeg4_gif.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_mpeg4_gif.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_mpeg4_gif.rst:3 msgid "InlineQueryResultMpeg4Gif" @@ -48,11 +48,11 @@ msgstr "" #: ../../docstring #: aiogram.types.inline_query_result_mpeg4_gif.InlineQueryResultMpeg4Gif.mpeg4_url:1 #: of -msgid "A valid URL for the MPEG4 file. File size must not exceed 1MB" +msgid "A valid URL for the MPEG4 file" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_mpeg4_gif.InlineQueryResultMpeg4Gif.thumb_url:1 +#: aiogram.types.inline_query_result_mpeg4_gif.InlineQueryResultMpeg4Gif.thumbnail_url:1 #: of msgid "" "URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the " @@ -78,7 +78,7 @@ msgid "*Optional*. Video duration in seconds" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_mpeg4_gif.InlineQueryResultMpeg4Gif.thumb_mime_type:1 +#: aiogram.types.inline_query_result_mpeg4_gif.InlineQueryResultMpeg4Gif.thumbnail_mime_type:1 #: of msgid "" "*Optional*. MIME type of the thumbnail, must be one of 'image/jpeg', " @@ -116,6 +116,14 @@ msgid "" "can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.types.inline_query_result_mpeg4_gif.InlineQueryResultMpeg4Gif.show_caption_above_media:1 +#: of +msgid "" +"*Optional*. Pass :code:`True`, if the caption must be shown above the " +"message media" +msgstr "" + #: ../../docstring #: aiogram.types.inline_query_result_mpeg4_gif.InlineQueryResultMpeg4Gif.reply_markup:1 #: of @@ -138,3 +146,6 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "A valid URL for the MPEG4 file. File size must not exceed 1MB" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_photo.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_photo.po index 6d189167..207b3e25 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_photo.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_photo.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_photo.rst:3 msgid "InlineQueryResultPhoto" @@ -52,7 +52,7 @@ msgid "" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_photo.InlineQueryResultPhoto.thumb_url:1 +#: aiogram.types.inline_query_result_photo.InlineQueryResultPhoto.thumbnail_url:1 #: of msgid "URL of the thumbnail for the photo" msgstr "" @@ -104,6 +104,14 @@ msgid "" "can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.types.inline_query_result_photo.InlineQueryResultPhoto.show_caption_above_media:1 +#: of +msgid "" +"*Optional*. Pass :code:`True`, if the caption must be shown above the " +"message media" +msgstr "" + #: ../../docstring #: aiogram.types.inline_query_result_photo.InlineQueryResultPhoto.reply_markup:1 #: of diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_venue.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_venue.po index 2867f687..039c0a6c 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_venue.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_venue.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_venue.rst:3 msgid "InlineQueryResultVenue" @@ -25,12 +25,10 @@ msgstr "" msgid "" "Represents a venue. By default, the venue will be sent by the user. " "Alternatively, you can use *input_message_content* to send a message with" -" the specified content instead of the venue. **Note:** This will only " -"work in Telegram versions released after 9 April, 2016. Older clients " -"will ignore them." +" the specified content instead of the venue." msgstr "" -#: aiogram.types.inline_query_result_venue.InlineQueryResultVenue:4 of +#: aiogram.types.inline_query_result_venue.InlineQueryResultVenue:3 of msgid "Source: https://core.telegram.org/bots/api#inlinequeryresultvenue" msgstr "" @@ -109,19 +107,19 @@ msgid "*Optional*. Content of the message to be sent instead of the venue" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_venue.InlineQueryResultVenue.thumb_url:1 +#: aiogram.types.inline_query_result_venue.InlineQueryResultVenue.thumbnail_url:1 #: of msgid "*Optional*. Url of the thumbnail for the result" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_venue.InlineQueryResultVenue.thumb_width:1 +#: aiogram.types.inline_query_result_venue.InlineQueryResultVenue.thumbnail_width:1 #: of msgid "*Optional*. Thumbnail width" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_venue.InlineQueryResultVenue.thumb_height:1 +#: aiogram.types.inline_query_result_venue.InlineQueryResultVenue.thumbnail_height:1 #: of msgid "*Optional*. Thumbnail height" msgstr "" @@ -132,3 +130,15 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "" +#~ "Represents a venue. By default, the " +#~ "venue will be sent by the user." +#~ " Alternatively, you can use " +#~ "*input_message_content* to send a message " +#~ "with the specified content instead of" +#~ " the venue. **Note:** This will only" +#~ " work in Telegram versions released " +#~ "after 9 April, 2016. Older clients " +#~ "will ignore them." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_video.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_video.po index 379ba6ed..1b71e3a8 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_video.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_video.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_video.rst:3 msgid "InlineQueryResultVideo" @@ -62,7 +62,7 @@ msgid "MIME type of the content of the video URL, 'text/html' or 'video/mp4'" msgstr "" #: ../../docstring -#: aiogram.types.inline_query_result_video.InlineQueryResultVideo.thumb_url:1 +#: aiogram.types.inline_query_result_video.InlineQueryResultVideo.thumbnail_url:1 #: of msgid "URL of the thumbnail (JPEG only) for the video" msgstr "" @@ -96,6 +96,14 @@ msgid "" "can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.types.inline_query_result_video.InlineQueryResultVideo.show_caption_above_media:1 +#: of +msgid "" +"*Optional*. Pass :code:`True`, if the caption must be shown above the " +"message media" +msgstr "" + #: ../../docstring #: aiogram.types.inline_query_result_video.InlineQueryResultVideo.video_width:1 #: of diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_voice.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_voice.po index e77d56c1..87cdabf0 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_voice.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/inline_query_result_voice.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-06 14:18+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/inline_query_result_voice.rst:3 msgid "InlineQueryResultVoice" @@ -26,12 +26,10 @@ msgid "" "Represents a link to a voice recording in an .OGG container encoded with " "OPUS. By default, this voice recording will be sent by the user. " "Alternatively, you can use *input_message_content* to send a message with" -" the specified content instead of the voice message. **Note:** This " -"will only work in Telegram versions released after 9 April, 2016. Older " -"clients will ignore them." +" the specified content instead of the the voice message." msgstr "" -#: aiogram.types.inline_query_result_voice.InlineQueryResultVoice:4 of +#: aiogram.types.inline_query_result_voice.InlineQueryResultVoice:3 of msgid "Source: https://core.telegram.org/bots/api#inlinequeryresultvoice" msgstr "" @@ -106,3 +104,17 @@ msgstr "" #~ "on-the-fly-updating>`_ attached to " #~ "the message" #~ msgstr "" + +#~ msgid "" +#~ "Represents a link to a voice " +#~ "recording in an .OGG container encoded" +#~ " with OPUS. By default, this voice" +#~ " recording will be sent by the " +#~ "user. Alternatively, you can use " +#~ "*input_message_content* to send a message " +#~ "with the specified content instead of" +#~ " the voice message. **Note:** This " +#~ "will only work in Telegram versions " +#~ "released after 9 April, 2016. Older " +#~ "clients will ignore them." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_invoice_message_content.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_invoice_message_content.po index cab32cc6..50cc9b13 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_invoice_message_content.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_invoice_message_content.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/input_invoice_message_content.rst:3 msgid "InputInvoiceMessageContent" @@ -49,15 +49,7 @@ msgstr "" #: of msgid "" "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to " -"the user, use for your internal processes." -msgstr "" - -#: ../../docstring -#: aiogram.types.input_invoice_message_content.InputInvoiceMessageContent.provider_token:1 -#: of -msgid "" -"Payment provider token, obtained via `@BotFather " -"`_" +"the user, use it for your internal processes." msgstr "" #: ../../docstring @@ -65,7 +57,8 @@ msgstr "" #: of msgid "" "Three-letter ISO 4217 currency code, see `more on currencies " -"`_" +"`_. Pass " +"'XTR' for payments in `Telegram Stars `_." msgstr "" #: ../../docstring @@ -73,7 +66,18 @@ msgstr "" #: of msgid "" "Price breakdown, a JSON-serialized list of components (e.g. product " -"price, tax, discount, delivery cost, delivery tax, bonus, etc.)" +"price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must " +"contain exactly one item for payments in `Telegram Stars " +"`_." +msgstr "" + +#: ../../docstring +#: aiogram.types.input_invoice_message_content.InputInvoiceMessageContent.provider_token:1 +#: of +msgid "" +"*Optional*. Payment provider token, obtained via `@BotFather " +"`_. Pass an empty string for payments in " +"`Telegram Stars `_." msgstr "" #: ../../docstring @@ -86,7 +90,8 @@ msgid "" "the *exp* parameter in `currencies.json " "`_, it shows the" " number of digits past the decimal point for each currency (2 for the " -"majority of currencies). Defaults to 0" +"majority of currencies). Defaults to 0. Not supported for payments in " +"`Telegram Stars `_." msgstr "" #: ../../docstring @@ -140,7 +145,8 @@ msgstr "" #: of msgid "" "*Optional*. Pass :code:`True` if you require the user's full name to " -"complete the order" +"complete the order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring @@ -148,7 +154,8 @@ msgstr "" #: of msgid "" "*Optional*. Pass :code:`True` if you require the user's phone number to " -"complete the order" +"complete the order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring @@ -156,7 +163,8 @@ msgstr "" #: of msgid "" "*Optional*. Pass :code:`True` if you require the user's email address to " -"complete the order" +"complete the order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring @@ -164,7 +172,8 @@ msgstr "" #: of msgid "" "*Optional*. Pass :code:`True` if you require the user's shipping address " -"to complete the order" +"to complete the order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring @@ -172,7 +181,8 @@ msgstr "" #: of msgid "" "*Optional*. Pass :code:`True` if the user's phone number should be sent " -"to provider" +"to the provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring @@ -180,7 +190,8 @@ msgstr "" #: of msgid "" "*Optional*. Pass :code:`True` if the user's email address should be sent " -"to provider" +"to the provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: ../../docstring @@ -188,5 +199,88 @@ msgstr "" #: of msgid "" "*Optional*. Pass :code:`True` if the final price depends on the shipping " -"method" +"method. Ignored for payments in `Telegram Stars " +"`_." msgstr "" + +#~ msgid "" +#~ "Bot-defined invoice payload, 1-128 " +#~ "bytes. This will not be displayed " +#~ "to the user, use for your internal" +#~ " processes." +#~ msgstr "" + +#~ msgid "" +#~ "Payment provider token, obtained via " +#~ "`@BotFather `_" +#~ msgstr "" + +#~ msgid "" +#~ "Three-letter ISO 4217 currency code, " +#~ "see `more on currencies " +#~ "`_" +#~ msgstr "" + +#~ msgid "" +#~ "Price breakdown, a JSON-serialized list" +#~ " of components (e.g. product price, " +#~ "tax, discount, delivery cost, delivery " +#~ "tax, bonus, etc.)" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. The maximum accepted amount " +#~ "for tips in the *smallest units* " +#~ "of the currency (integer, **not** " +#~ "float/double). For example, for a " +#~ "maximum tip of :code:`US$ 1.45` pass " +#~ ":code:`max_tip_amount = 145`. See the " +#~ "*exp* parameter in `currencies.json " +#~ "`_, it" +#~ " shows the number of digits past " +#~ "the decimal point for each currency " +#~ "(2 for the majority of currencies). " +#~ "Defaults to 0" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Pass :code:`True` if you " +#~ "require the user's full name to " +#~ "complete the order" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Pass :code:`True` if you " +#~ "require the user's phone number to " +#~ "complete the order" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Pass :code:`True` if you " +#~ "require the user's email address to " +#~ "complete the order" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Pass :code:`True` if you " +#~ "require the user's shipping address to" +#~ " complete the order" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Pass :code:`True` if the " +#~ "user's phone number should be sent " +#~ "to provider" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Pass :code:`True` if the " +#~ "user's email address should be sent " +#~ "to provider" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Pass :code:`True` if the " +#~ "final price depends on the shipping " +#~ "method" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_location_message_content.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_location_message_content.po index 63866b93..1fa15b17 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_location_message_content.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_location_message_content.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/input_location_message_content.rst:3 msgid "InputLocationMessageContent" @@ -58,8 +58,9 @@ msgstr "" #: aiogram.types.input_location_message_content.InputLocationMessageContent.live_period:1 #: of msgid "" -"*Optional*. Period in seconds for which the location can be updated, " -"should be between 60 and 86400." +"*Optional*. Period in seconds during which the location can be updated, " +"should be between 60 and 86400, or 0x7FFFFFFF for live locations that can" +" be edited indefinitely." msgstr "" #: ../../docstring @@ -78,3 +79,9 @@ msgid "" "about approaching another chat member, in meters. Must be between 1 and " "100000 if specified." msgstr "" + +#~ msgid "" +#~ "*Optional*. Period in seconds for which" +#~ " the location can be updated, should" +#~ " be between 60 and 86400." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_animation.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_animation.po index e19c352d..5e99da16 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_animation.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_animation.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-30 22:28+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/input_media_animation.rst:3 msgid "InputMediaAnimation" @@ -47,7 +47,7 @@ msgid "" msgstr "" #: ../../docstring -#: aiogram.types.input_media_animation.InputMediaAnimation.thumb:1 of +#: aiogram.types.input_media_animation.InputMediaAnimation.thumbnail:1 of msgid "" "*Optional*. Thumbnail of the file sent; can be ignored if thumbnail " "generation for the file is supported server-side. The thumbnail should be" @@ -83,6 +83,14 @@ msgid "" "can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.types.input_media_animation.InputMediaAnimation.show_caption_above_media:1 +#: of +msgid "" +"*Optional*. Pass :code:`True`, if the caption must be shown above the " +"message media" +msgstr "" + #: ../../docstring #: aiogram.types.input_media_animation.InputMediaAnimation.width:1 of msgid "*Optional*. Animation width" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_photo.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_photo.po index 10a634e9..c56de849 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_photo.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_photo.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-30 22:28+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/input_media_photo.rst:3 msgid "InputMediaPhoto" @@ -63,6 +63,14 @@ msgid "" "can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.types.input_media_photo.InputMediaPhoto.show_caption_above_media:1 +#: of +msgid "" +"*Optional*. Pass :code:`True`, if the caption must be shown above the " +"message media" +msgstr "" + #: ../../docstring #: aiogram.types.input_media_photo.InputMediaPhoto.has_spoiler:1 of msgid "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_video.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_video.po index eef2e134..d6744e00 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_video.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_media_video.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-30 22:28+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/input_media_video.rst:3 msgid "InputMediaVideo" @@ -42,7 +42,8 @@ msgid "" "information on Sending Files » `" msgstr "" -#: ../../docstring aiogram.types.input_media_video.InputMediaVideo.thumb:1 of +#: ../../docstring aiogram.types.input_media_video.InputMediaVideo.thumbnail:1 +#: of msgid "" "*Optional*. Thumbnail of the file sent; can be ignored if thumbnail " "generation for the file is supported server-side. The thumbnail should be" @@ -55,6 +56,21 @@ msgid "" "files>`" msgstr "" +#: ../../docstring aiogram.types.input_media_video.InputMediaVideo.cover:1 of +msgid "" +"*Optional*. Cover for the video in the message. Pass a file_id to send a " +"file that exists on the Telegram servers (recommended), pass an HTTP URL " +"for Telegram to get a file from the Internet, or pass " +"'attach://' to upload a new one using multipart/form-" +"data under name. :ref:`More information on Sending " +"Files » `" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_media_video.InputMediaVideo.start_timestamp:1 of +msgid "*Optional*. Start timestamp for the video in the message" +msgstr "" + #: ../../docstring aiogram.types.input_media_video.InputMediaVideo.caption:1 of msgid "" "*Optional*. Caption of the video to be sent, 0-1024 characters after " @@ -76,6 +92,14 @@ msgid "" "can be specified instead of *parse_mode*" msgstr "" +#: ../../docstring +#: aiogram.types.input_media_video.InputMediaVideo.show_caption_above_media:1 +#: of +msgid "" +"*Optional*. Pass :code:`True`, if the caption must be shown above the " +"message media" +msgstr "" + #: ../../docstring aiogram.types.input_media_video.InputMediaVideo.width:1 of msgid "*Optional*. Video width" msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media.po new file mode 100644 index 00000000..6808673f --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media.po @@ -0,0 +1,43 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/input_paid_media.rst:3 +msgid "InputPaidMedia" +msgstr "" + +#: aiogram.types.input_paid_media.InputPaidMedia:1 of +msgid "" +"This object describes the paid media to be sent. Currently, it can be one" +" of" +msgstr "" + +#: aiogram.types.input_paid_media.InputPaidMedia:3 of +msgid ":class:`aiogram.types.input_paid_media_photo.InputPaidMediaPhoto`" +msgstr "" + +#: aiogram.types.input_paid_media.InputPaidMedia:4 of +msgid ":class:`aiogram.types.input_paid_media_video.InputPaidMediaVideo`" +msgstr "" + +#: aiogram.types.input_paid_media.InputPaidMedia:6 of +msgid "Source: https://core.telegram.org/bots/api#inputpaidmedia" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media_photo.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media_photo.po new file mode 100644 index 00000000..12c1baac --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media_photo.po @@ -0,0 +1,48 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/input_paid_media_photo.rst:3 +msgid "InputPaidMediaPhoto" +msgstr "" + +#: aiogram.types.input_paid_media_photo.InputPaidMediaPhoto:1 of +msgid "The paid media to send is a photo." +msgstr "" + +#: aiogram.types.input_paid_media_photo.InputPaidMediaPhoto:3 of +msgid "Source: https://core.telegram.org/bots/api#inputpaidmediaphoto" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_paid_media_photo.InputPaidMediaPhoto.type:1 of +msgid "Type of the media, must be *photo*" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_paid_media_photo.InputPaidMediaPhoto.media:1 of +msgid "" +"File to send. Pass a file_id to send a file that exists on the Telegram " +"servers (recommended), pass an HTTP URL for Telegram to get a file from " +"the Internet, or pass 'attach://' to upload a new one " +"using multipart/form-data under name. :ref:`More " +"information on Sending Files » `" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media_video.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media_video.po new file mode 100644 index 00000000..bf584aa5 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_paid_media_video.po @@ -0,0 +1,102 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/input_paid_media_video.rst:3 +msgid "InputPaidMediaVideo" +msgstr "" + +#: aiogram.types.input_paid_media_video.InputPaidMediaVideo:1 of +msgid "The paid media to send is a video." +msgstr "" + +#: aiogram.types.input_paid_media_video.InputPaidMediaVideo:3 of +msgid "Source: https://core.telegram.org/bots/api#inputpaidmediavideo" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_paid_media_video.InputPaidMediaVideo.type:1 of +msgid "Type of the media, must be *video*" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_paid_media_video.InputPaidMediaVideo.media:1 of +msgid "" +"File to send. Pass a file_id to send a file that exists on the Telegram " +"servers (recommended), pass an HTTP URL for Telegram to get a file from " +"the Internet, or pass 'attach://' to upload a new one " +"using multipart/form-data under name. :ref:`More " +"information on Sending Files » `" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_paid_media_video.InputPaidMediaVideo.thumbnail:1 of +msgid "" +"*Optional*. Thumbnail of the file sent; can be ignored if thumbnail " +"generation for the file is supported server-side. The thumbnail should be" +" in JPEG format and less than 200 kB in size. A thumbnail's width and " +"height should not exceed 320. Ignored if the file is not uploaded using " +"multipart/form-data. Thumbnails can't be reused and can be only uploaded " +"as a new file, so you can pass 'attach://' if the " +"thumbnail was uploaded using multipart/form-data under " +". :ref:`More information on Sending Files » `" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_paid_media_video.InputPaidMediaVideo.cover:1 of +msgid "" +"*Optional*. Cover for the video in the message. Pass a file_id to send a " +"file that exists on the Telegram servers (recommended), pass an HTTP URL " +"for Telegram to get a file from the Internet, or pass " +"'attach://' to upload a new one using multipart/form-" +"data under name. :ref:`More information on Sending " +"Files » `" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_paid_media_video.InputPaidMediaVideo.start_timestamp:1 +#: of +msgid "*Optional*. Start timestamp for the video in the message" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_paid_media_video.InputPaidMediaVideo.width:1 of +msgid "*Optional*. Video width" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_paid_media_video.InputPaidMediaVideo.height:1 of +msgid "*Optional*. Video height" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_paid_media_video.InputPaidMediaVideo.duration:1 of +msgid "*Optional*. Video duration in seconds" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_paid_media_video.InputPaidMediaVideo.supports_streaming:1 +#: of +msgid "" +"*Optional*. Pass :code:`True` if the uploaded video is suitable for " +"streaming" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_poll_option.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_poll_option.po new file mode 100644 index 00000000..fb069ea8 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_poll_option.po @@ -0,0 +1,54 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/input_poll_option.rst:3 +msgid "InputPollOption" +msgstr "" + +#: aiogram.types.input_poll_option.InputPollOption:1 of +msgid "" +"This object contains information about one answer option in a poll to be " +"sent." +msgstr "" + +#: aiogram.types.input_poll_option.InputPollOption:3 of +msgid "Source: https://core.telegram.org/bots/api#inputpolloption" +msgstr "" + +#: ../../docstring aiogram.types.input_poll_option.InputPollOption.text:1 of +msgid "Option text, 1-100 characters" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_poll_option.InputPollOption.text_parse_mode:1 of +msgid "" +"*Optional*. Mode for parsing entities in the text. See `formatting " +"options `_ for " +"more details. Currently, only custom emoji entities are allowed" +msgstr "" + +#: ../../docstring +#: aiogram.types.input_poll_option.InputPollOption.text_entities:1 of +msgid "" +"*Optional*. A JSON-serialized list of special entities that appear in the" +" poll option text. It can be specified instead of *text_parse_mode*" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_sticker.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_sticker.po index fb2433c4..9884d221 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/input_sticker.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/input_sticker.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-07-02 15:10+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/input_sticker.rst:3 msgid "InputSticker" @@ -40,6 +40,13 @@ msgid "" "information on Sending Files » `" msgstr "" +#: ../../docstring aiogram.types.input_sticker.InputSticker.format:1 of +msgid "" +"Format of the added sticker, must be one of 'static' for a **.WEBP** or " +"**.PNG** image, 'animated' for a **.TGS** animation, 'video' for a " +"**.WEBM** video" +msgstr "" + #: ../../docstring aiogram.types.input_sticker.InputSticker.emoji_list:1 of msgid "List of 1-20 emoji associated with the sticker" msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/invoice.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/invoice.po index 85c30c9e..09d4e8a8 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/invoice.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/invoice.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/invoice.rst:3 msgid "Invoice" @@ -46,7 +46,8 @@ msgstr "" #: ../../docstring aiogram.types.invoice.Invoice.currency:1 of msgid "" "Three-letter ISO 4217 `currency `_ code" +"#supported-currencies>`_ code, or 'XTR' for payments in `Telegram Stars " +"`_" msgstr "" #: ../../docstring aiogram.types.invoice.Invoice.total_amount:1 of @@ -58,3 +59,9 @@ msgid "" " number of digits past the decimal point for each currency (2 for the " "majority of currencies)." msgstr "" + +#~ msgid "" +#~ "Three-letter ISO 4217 `currency " +#~ "`_" +#~ " code" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button.po index adbef6ff..3036aa9f 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -23,36 +23,15 @@ msgstr "" #: aiogram.types.keyboard_button.KeyboardButton:1 of msgid "" -"This object represents one button of the reply keyboard. For simple text " -"buttons, *String* can be used instead of this object to specify the " -"button text. The optional fields *web_app*, *request_users*, " -"*request_chat*, *request_contact*, *request_location*, and *request_poll*" -" are mutually exclusive. **Note:** *request_contact* and " -"*request_location* options will only work in Telegram versions released " -"after 9 April, 2016. Older clients will display *unsupported message*." +"This object represents one button of the reply keyboard. At most one of " +"the optional fields must be used to specify type of the button. For " +"simple text buttons, *String* can be used instead of this object to " +"specify the button text. **Note:** *request_users* and *request_chat* " +"options will only work in Telegram versions released after 3 February, " +"2023. Older clients will display *unsupported message*." msgstr "" #: aiogram.types.keyboard_button.KeyboardButton:4 of -msgid "" -"**Note:** *request_poll* option will only work in Telegram versions " -"released after 23 January, 2020. Older clients will display *unsupported " -"message*." -msgstr "" - -#: aiogram.types.keyboard_button.KeyboardButton:6 of -msgid "" -"**Note:** *web_app* option will only work in Telegram versions released " -"after 16 April, 2022. Older clients will display *unsupported message*." -msgstr "" - -#: aiogram.types.keyboard_button.KeyboardButton:8 of -msgid "" -"**Note:** *request_users* and *request_chat* options will only work in " -"Telegram versions released after 3 February, 2023. Older clients will " -"display *unsupported message*." -msgstr "" - -#: aiogram.types.keyboard_button.KeyboardButton:10 of msgid "Source: https://core.telegram.org/bots/api#keyboardbutton" msgstr "" @@ -159,3 +138,41 @@ msgstr "" #~ "2023. Older clients will display " #~ "*unsupported message*." #~ msgstr "" + +#~ msgid "" +#~ "This object represents one button of " +#~ "the reply keyboard. For simple text " +#~ "buttons, *String* can be used instead" +#~ " of this object to specify the " +#~ "button text. The optional fields " +#~ "*web_app*, *request_users*, *request_chat*, " +#~ "*request_contact*, *request_location*, and " +#~ "*request_poll* are mutually exclusive. " +#~ "**Note:** *request_contact* and *request_location*" +#~ " options will only work in Telegram" +#~ " versions released after 9 April, " +#~ "2016. Older clients will display " +#~ "*unsupported message*." +#~ msgstr "" + +#~ msgid "" +#~ "**Note:** *request_poll* option will only " +#~ "work in Telegram versions released after" +#~ " 23 January, 2020. Older clients will" +#~ " display *unsupported message*." +#~ msgstr "" + +#~ msgid "" +#~ "**Note:** *web_app* option will only " +#~ "work in Telegram versions released after" +#~ " 16 April, 2022. Older clients will" +#~ " display *unsupported message*." +#~ msgstr "" + +#~ msgid "" +#~ "**Note:** *request_users* and *request_chat* " +#~ "options will only work in Telegram " +#~ "versions released after 3 February, " +#~ "2023. Older clients will display " +#~ "*unsupported message*." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button_request_chat.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button_request_chat.po index 2912a3f0..4a258c18 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button_request_chat.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button_request_chat.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-07-02 15:10+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/keyboard_button_request_chat.rst:3 msgid "KeyboardButtonRequestChat" @@ -23,10 +23,11 @@ msgstr "" #: aiogram.types.keyboard_button_request_chat.KeyboardButtonRequestChat:1 of msgid "" -"This object defines the criteria used to request a suitable chat. The " -"identifier of the selected chat will be shared with the bot when the " -"corresponding button is pressed. `More about requesting chats » " -"`_" +"This object defines the criteria used to request a suitable chat. " +"Information about the selected chat will be shared with the bot when the " +"corresponding button is pressed. The bot will be granted requested rights" +" in the chat if appropriate. `More about requesting chats » " +"`_." msgstr "" #: aiogram.types.keyboard_button_request_chat.KeyboardButtonRequestChat:3 of @@ -104,6 +105,24 @@ msgid "" " Otherwise, no additional restrictions are applied." msgstr "" +#: ../../docstring +#: aiogram.types.keyboard_button_request_chat.KeyboardButtonRequestChat.request_title:1 +#: of +msgid "*Optional*. Pass :code:`True` to request the chat's title" +msgstr "" + +#: ../../docstring +#: aiogram.types.keyboard_button_request_chat.KeyboardButtonRequestChat.request_username:1 +#: of +msgid "*Optional*. Pass :code:`True` to request the chat's username" +msgstr "" + +#: ../../docstring +#: aiogram.types.keyboard_button_request_chat.KeyboardButtonRequestChat.request_photo:1 +#: of +msgid "*Optional*. Pass :code:`True` to request the chat's photo" +msgstr "" + #~ msgid "" #~ "This object defines the criteria used" #~ " to request a suitable chat. The " @@ -111,3 +130,14 @@ msgstr "" #~ "be shared with the bot when the" #~ " corresponding button is pressed." #~ msgstr "" + +#~ msgid "" +#~ "This object defines the criteria used" +#~ " to request a suitable chat. The " +#~ "identifier of the selected chat will " +#~ "be shared with the bot when the" +#~ " corresponding button is pressed. `More " +#~ "about requesting chats » " +#~ "`_" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button_request_users.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button_request_users.po index bbdd7b59..f7717c6a 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button_request_users.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/keyboard_button_request_users.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -26,9 +26,9 @@ msgstr "" #: aiogram.types.keyboard_button_request_users.KeyboardButtonRequestUsers:1 of msgid "" -"This object defines the criteria used to request suitable users. The " -"identifiers of the selected users will be shared with the bot when the " -"corresponding button is pressed. `More about requesting users » " +"This object defines the criteria used to request suitable users. " +"Information about the selected users will be shared with the bot when the" +" corresponding button is pressed. `More about requesting users » " "`_" msgstr "" @@ -70,3 +70,32 @@ msgid "" "*Optional*. The maximum number of users to be selected; 1-10. Defaults to" " 1." msgstr "" + +#: ../../docstring +#: aiogram.types.keyboard_button_request_users.KeyboardButtonRequestUsers.request_name:1 +#: of +msgid "*Optional*. Pass :code:`True` to request the users' first and last names" +msgstr "" + +#: ../../docstring +#: aiogram.types.keyboard_button_request_users.KeyboardButtonRequestUsers.request_username:1 +#: of +msgid "*Optional*. Pass :code:`True` to request the users' usernames" +msgstr "" + +#: ../../docstring +#: aiogram.types.keyboard_button_request_users.KeyboardButtonRequestUsers.request_photo:1 +#: of +msgid "*Optional*. Pass :code:`True` to request the users' photos" +msgstr "" + +#~ msgid "" +#~ "This object defines the criteria used" +#~ " to request suitable users. The " +#~ "identifiers of the selected users will" +#~ " be shared with the bot when " +#~ "the corresponding button is pressed. " +#~ "`More about requesting users » " +#~ "`_" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/link_preview_options.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/link_preview_options.po index fbcb8162..cd4e9c1d 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/link_preview_options.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/link_preview_options.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -48,18 +48,18 @@ msgstr "" #: aiogram.types.link_preview_options.LinkPreviewOptions.prefer_small_media:1 #: of msgid "" -"*Optional*. :code:`True`, if the media in the link preview is suppposed " -"to be shrunk; ignored if the URL isn't explicitly specified or media size" -" change isn't supported for the preview" +"*Optional*. :code:`True`, if the media in the link preview is supposed to" +" be shrunk; ignored if the URL isn't explicitly specified or media size " +"change isn't supported for the preview" msgstr "" #: ../../docstring #: aiogram.types.link_preview_options.LinkPreviewOptions.prefer_large_media:1 #: of msgid "" -"*Optional*. :code:`True`, if the media in the link preview is suppposed " -"to be enlarged; ignored if the URL isn't explicitly specified or media " -"size change isn't supported for the preview" +"*Optional*. :code:`True`, if the media in the link preview is supposed to" +" be enlarged; ignored if the URL isn't explicitly specified or media size" +" change isn't supported for the preview" msgstr "" #: ../../docstring @@ -69,3 +69,21 @@ msgid "" "message text; otherwise, the link preview will be shown below the message" " text" msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the media " +#~ "in the link preview is suppposed " +#~ "to be shrunk; ignored if the URL" +#~ " isn't explicitly specified or media " +#~ "size change isn't supported for the " +#~ "preview" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if the media " +#~ "in the link preview is suppposed " +#~ "to be enlarged; ignored if the URL" +#~ " isn't explicitly specified or media " +#~ "size change isn't supported for the " +#~ "preview" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/location.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/location.po index c3826725..c8f1f7ff 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/location.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/location.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/location.rst:3 msgid "Location" @@ -29,12 +29,12 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#location" msgstr "" -#: ../../docstring aiogram.types.location.Location.longitude:1 of -msgid "Longitude as defined by sender" +#: ../../docstring aiogram.types.location.Location.latitude:1 of +msgid "Latitude as defined by the sender" msgstr "" -#: ../../docstring aiogram.types.location.Location.latitude:1 of -msgid "Latitude as defined by sender" +#: ../../docstring aiogram.types.location.Location.longitude:1 of +msgid "Longitude as defined by the sender" msgstr "" #: ../../docstring aiogram.types.location.Location.horizontal_accuracy:1 of @@ -60,3 +60,9 @@ msgid "" "*Optional*. The maximum distance for proximity alerts about approaching " "another chat member, in meters. For sent live locations only." msgstr "" + +#~ msgid "Longitude as defined by sender" +#~ msgstr "" + +#~ msgid "Latitude as defined by sender" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/menu_button.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/menu_button.po index ad862f22..cba4ce0a 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/menu_button.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/menu_button.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-23 00:47+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/menu_button.rst:3 msgid "MenuButton" @@ -65,8 +65,21 @@ msgid "" "*Optional*. Description of the Web App that will be launched when the " "user presses the button. The Web App will be able to send an arbitrary " "message on behalf of the user using the method " -":class:`aiogram.methods.answer_web_app_query.AnswerWebAppQuery`." +":class:`aiogram.methods.answer_web_app_query.AnswerWebAppQuery`. " +"Alternatively, a :code:`t.me` link to a Web App of the bot can be " +"specified in the object instead of the Web App's URL, in which case the " +"Web App will be opened as if the user pressed the link." msgstr "" #~ msgid "..." #~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Description of the Web App" +#~ " that will be launched when the " +#~ "user presses the button. The Web " +#~ "App will be able to send an " +#~ "arbitrary message on behalf of the " +#~ "user using the method " +#~ ":class:`aiogram.methods.answer_web_app_query.AnswerWebAppQuery`." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/menu_button_web_app.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/menu_button_web_app.po index 21b08c57..397f85bc 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/menu_button_web_app.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/menu_button_web_app.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/menu_button_web_app.rst:3 msgid "MenuButtonWebApp" @@ -45,5 +45,18 @@ msgid "" "Description of the Web App that will be launched when the user presses " "the button. The Web App will be able to send an arbitrary message on " "behalf of the user using the method " -":class:`aiogram.methods.answer_web_app_query.AnswerWebAppQuery`." +":class:`aiogram.methods.answer_web_app_query.AnswerWebAppQuery`. " +"Alternatively, a :code:`t.me` link to a Web App of the bot can be " +"specified in the object instead of the Web App's URL, in which case the " +"Web App will be opened as if the user pressed the link." msgstr "" + +#~ msgid "" +#~ "Description of the Web App that " +#~ "will be launched when the user " +#~ "presses the button. The Web App " +#~ "will be able to send an arbitrary" +#~ " message on behalf of the user " +#~ "using the method " +#~ ":class:`aiogram.methods.answer_web_app_query.AnswerWebAppQuery`." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/message.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/message.po index 7521cfa6..48540757 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/message.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/message.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -30,7 +30,12 @@ msgid "Source: https://core.telegram.org/bots/api#message" msgstr "" #: ../../docstring aiogram.types.message.Message.message_id:1 of -msgid "Unique message identifier inside this chat" +msgid "" +"Unique message identifier inside this chat. In specific instances (e.g., " +"message containing a video sent to a big chat), the server might " +"automatically schedule a message instead of sending it immediately. In " +"such cases, this field will be 0 and the relevant message will be " +"unusable until it is actually sent" msgstr "" #: ../../docstring aiogram.types.message.Message.date:1 of @@ -51,19 +56,40 @@ msgstr "" #: ../../docstring aiogram.types.message.Message.from_user:1 of msgid "" -"*Optional*. Sender of the message; empty for messages sent to channels. " -"For backward compatibility, the field contains a fake sender user in non-" -"channel chats, if the message was sent on behalf of a chat." +"*Optional*. Sender of the message; may be empty for messages sent to " +"channels. For backward compatibility, if the message was sent on behalf " +"of a chat, the field contains a fake sender user in non-channel chats" msgstr "" #: ../../docstring aiogram.types.message.Message.sender_chat:1 of msgid "" -"*Optional*. Sender of the message, sent on behalf of a chat. For example," -" the channel itself for channel posts, the supergroup itself for messages" -" from anonymous group administrators, the linked channel for messages " -"automatically forwarded to the discussion group. For backward " -"compatibility, the field *from* contains a fake sender user in non-" -"channel chats, if the message was sent on behalf of a chat." +"*Optional*. Sender of the message when sent on behalf of a chat. For " +"example, the supergroup itself for messages sent by its anonymous " +"administrators or a linked channel for messages automatically forwarded " +"to the channel's discussion group. For backward compatibility, if the " +"message was sent on behalf of a chat, the field *from* contains a fake " +"sender user in non-channel chats." +msgstr "" + +#: ../../docstring aiogram.types.message.Message.sender_boost_count:1 of +msgid "" +"*Optional*. If the sender of the message boosted the chat, the number of " +"boosts added by the user" +msgstr "" + +#: ../../docstring aiogram.types.message.Message.sender_business_bot:1 of +msgid "" +"*Optional*. The bot that actually sent the message on behalf of the " +"business account. Available only for outgoing messages sent on behalf of " +"the connected business account." +msgstr "" + +#: ../../docstring aiogram.types.message.Message.business_connection_id:1 of +msgid "" +"*Optional*. Unique identifier of the business connection from which the " +"message was received. If non-empty, the message belongs to a chat of the " +"corresponding business account that is independent from any potential bot" +" chat which might share the same identifier." msgstr "" #: ../../docstring aiogram.types.message.Message.forward_origin:1 of @@ -99,6 +125,10 @@ msgid "" "quoted part of the message" msgstr "" +#: ../../docstring aiogram.types.message.Message.reply_to_story:1 of +msgid "*Optional*. For replies to a story, the original story" +msgstr "" + #: ../../docstring aiogram.types.message.Message.via_bot:1 of msgid "*Optional*. Bot through which the message was sent" msgstr "" @@ -111,6 +141,13 @@ msgstr "" msgid "*Optional*. :code:`True`, if the message can't be forwarded" msgstr "" +#: ../../docstring aiogram.types.message.Message.is_from_offline:1 of +msgid "" +"*Optional*. True, if the message was sent by an implicit action, for " +"example, as an away or a greeting business message, or as a scheduled " +"message" +msgstr "" + #: ../../docstring aiogram.types.message.Message.media_group_id:1 of msgid "" "*Optional*. The unique identifier of a media message group this message " @@ -139,6 +176,10 @@ msgid "" "it is a text message and link preview options were changed" msgstr "" +#: ../../docstring aiogram.types.message.Message.effect_id:1 of +msgid "*Optional*. Unique identifier of the message effect added to the message" +msgstr "" + #: ../../docstring aiogram.types.message.Message.animation:1 of msgid "" "*Optional*. Message is an animation, information about the animation. For" @@ -154,6 +195,10 @@ msgstr "" msgid "*Optional*. Message is a general file, information about the file" msgstr "" +#: ../../docstring aiogram.types.message.Message.paid_media:1 of +msgid "*Optional*. Message contains paid media; information about the paid media" +msgstr "" + #: ../../docstring aiogram.types.message.Message.photo:1 of msgid "*Optional*. Message is a photo, available sizes of the photo" msgstr "" @@ -182,8 +227,8 @@ msgstr "" #: ../../docstring aiogram.types.message.Message.caption:1 of msgid "" -"*Optional*. Caption for the animation, audio, document, photo, video or " -"voice" +"*Optional*. Caption for the animation, audio, document, paid media, " +"photo, video or voice" msgstr "" #: ../../docstring aiogram.types.message.Message.caption_entities:1 of @@ -192,6 +237,10 @@ msgid "" " URLs, bot commands, etc. that appear in the caption" msgstr "" +#: ../../docstring aiogram.types.message.Message.show_caption_above_media:1 of +msgid "*Optional*. True, if the caption must be shown above the message media" +msgstr "" + #: ../../docstring aiogram.types.message.Message.has_media_spoiler:1 of msgid "" "*Optional*. :code:`True`, if the message media is covered by a spoiler " @@ -321,6 +370,13 @@ msgid "" "`_" msgstr "" +#: ../../docstring aiogram.types.message.Message.refunded_payment:1 of +msgid "" +"*Optional*. Message is a service message about a refunded payment, " +"information about the payment. `More about payments » " +"`_" +msgstr "" + #: ../../docstring aiogram.types.message.Message.users_shared:1 of msgid "*Optional*. Service message: users were shared with the bot" msgstr "" @@ -355,6 +411,14 @@ msgid "" "proximity alert while sharing Live Location." msgstr "" +#: ../../docstring aiogram.types.message.Message.boost_added:1 of +msgid "*Optional*. Service message: user boosted the chat" +msgstr "" + +#: ../../docstring aiogram.types.message.Message.chat_background_set:1 of +msgid "*Optional*. Service message: chat background set" +msgstr "" + #: ../../docstring aiogram.types.message.Message.forum_topic_created:1 of msgid "*Optional*. Service message: forum topic created" msgstr "" @@ -492,6 +556,7 @@ msgstr "" #: aiogram.types.message.Message.answer_invoice:4 #: aiogram.types.message.Message.answer_location:4 #: aiogram.types.message.Message.answer_media_group:4 +#: aiogram.types.message.Message.answer_paid_media:4 #: aiogram.types.message.Message.answer_photo:4 #: aiogram.types.message.Message.answer_poll:4 #: aiogram.types.message.Message.answer_sticker:4 @@ -517,6 +582,7 @@ msgstr "" #: aiogram.types.message.Message.reply_invoice:4 #: aiogram.types.message.Message.reply_location:4 #: aiogram.types.message.Message.reply_media_group:4 +#: aiogram.types.message.Message.reply_paid_media:4 #: aiogram.types.message.Message.reply_photo:4 #: aiogram.types.message.Message.reply_poll:4 #: aiogram.types.message.Message.reply_sticker:4 @@ -539,6 +605,7 @@ msgstr "" #: aiogram.types.message.Message.answer_invoice:5 #: aiogram.types.message.Message.answer_location:5 #: aiogram.types.message.Message.answer_media_group:5 +#: aiogram.types.message.Message.answer_paid_media:5 #: aiogram.types.message.Message.answer_photo:5 #: aiogram.types.message.Message.answer_poll:5 #: aiogram.types.message.Message.answer_sticker:5 @@ -556,6 +623,7 @@ msgstr "" #: aiogram.types.message.Message.reply_invoice:5 #: aiogram.types.message.Message.reply_location:5 #: aiogram.types.message.Message.reply_media_group:5 +#: aiogram.types.message.Message.reply_paid_media:5 #: aiogram.types.message.Message.reply_photo:5 #: aiogram.types.message.Message.reply_poll:5 #: aiogram.types.message.Message.reply_sticker:5 @@ -566,6 +634,32 @@ msgstr "" msgid ":code:`message_thread_id`" msgstr "" +#: aiogram.types.message.Message.answer:6 +#: aiogram.types.message.Message.answer_animation:6 +#: aiogram.types.message.Message.answer_audio:6 +#: aiogram.types.message.Message.answer_contact:6 +#: aiogram.types.message.Message.answer_dice:6 +#: aiogram.types.message.Message.answer_document:6 +#: aiogram.types.message.Message.answer_game:6 +#: aiogram.types.message.Message.answer_invoice:6 +#: aiogram.types.message.Message.answer_location:6 +#: aiogram.types.message.Message.answer_media_group:6 +#: aiogram.types.message.Message.answer_paid_media:6 +#: aiogram.types.message.Message.answer_photo:6 +#: aiogram.types.message.Message.answer_poll:6 +#: aiogram.types.message.Message.answer_sticker:6 +#: aiogram.types.message.Message.answer_venue:6 +#: aiogram.types.message.Message.answer_video:6 +#: aiogram.types.message.Message.answer_video_note:6 +#: aiogram.types.message.Message.answer_voice:6 +#: aiogram.types.message.Message.delete:6 +#: aiogram.types.message.Message.delete_reply_markup:6 +#: aiogram.types.message.Message.edit_caption:6 +#: aiogram.types.message.Message.edit_live_location:6 +#: aiogram.types.message.Message.edit_media:6 +#: aiogram.types.message.Message.edit_reply_markup:6 +#: aiogram.types.message.Message.edit_text:6 +#: aiogram.types.message.Message.pin:6 aiogram.types.message.Message.react:6 #: aiogram.types.message.Message.reply:6 #: aiogram.types.message.Message.reply_animation:6 #: aiogram.types.message.Message.reply_audio:6 @@ -576,18 +670,42 @@ msgstr "" #: aiogram.types.message.Message.reply_invoice:6 #: aiogram.types.message.Message.reply_location:6 #: aiogram.types.message.Message.reply_media_group:6 +#: aiogram.types.message.Message.reply_paid_media:6 #: aiogram.types.message.Message.reply_photo:6 #: aiogram.types.message.Message.reply_poll:6 #: aiogram.types.message.Message.reply_sticker:6 #: aiogram.types.message.Message.reply_venue:6 #: aiogram.types.message.Message.reply_video:6 #: aiogram.types.message.Message.reply_video_note:6 -#: aiogram.types.message.Message.reply_voice:6 of -msgid ":code:`reply_to_message_id`" +#: aiogram.types.message.Message.reply_voice:6 +#: aiogram.types.message.Message.stop_live_location:6 +#: aiogram.types.message.Message.unpin:6 of +msgid ":code:`business_connection_id`" msgstr "" -#: aiogram.types.message.Message.answer_animation:7 -#: aiogram.types.message.Message.reply_animation:8 of +#: aiogram.types.message.Message.reply:7 +#: aiogram.types.message.Message.reply_animation:7 +#: aiogram.types.message.Message.reply_audio:7 +#: aiogram.types.message.Message.reply_contact:7 +#: aiogram.types.message.Message.reply_dice:7 +#: aiogram.types.message.Message.reply_document:7 +#: aiogram.types.message.Message.reply_game:7 +#: aiogram.types.message.Message.reply_invoice:7 +#: aiogram.types.message.Message.reply_location:7 +#: aiogram.types.message.Message.reply_media_group:7 +#: aiogram.types.message.Message.reply_paid_media:7 +#: aiogram.types.message.Message.reply_photo:7 +#: aiogram.types.message.Message.reply_poll:7 +#: aiogram.types.message.Message.reply_sticker:7 +#: aiogram.types.message.Message.reply_venue:7 +#: aiogram.types.message.Message.reply_video:7 +#: aiogram.types.message.Message.reply_video_note:7 +#: aiogram.types.message.Message.reply_voice:7 of +msgid ":code:`reply_parameters`" +msgstr "" + +#: aiogram.types.message.Message.answer_animation:8 +#: aiogram.types.message.Message.reply_animation:9 of msgid "" "Use this method to send animation files (GIF or H.264/MPEG-4 AVC video " "without sound). On success, the sent " @@ -596,61 +714,17 @@ msgid "" " the future." msgstr "" -#: aiogram.types.message.Message.answer_animation:9 -#: aiogram.types.message.Message.reply_animation:10 of +#: aiogram.types.message.Message.answer_animation:10 +#: aiogram.types.message.Message.reply_animation:11 of msgid "Source: https://core.telegram.org/bots/api#sendanimation" msgstr "" -#: aiogram.types.message.Message.answer -#: aiogram.types.message.Message.answer_animation -#: aiogram.types.message.Message.answer_audio -#: aiogram.types.message.Message.answer_contact -#: aiogram.types.message.Message.answer_dice -#: aiogram.types.message.Message.answer_document -#: aiogram.types.message.Message.answer_game -#: aiogram.types.message.Message.answer_invoice -#: aiogram.types.message.Message.answer_location -#: aiogram.types.message.Message.answer_media_group -#: aiogram.types.message.Message.answer_photo -#: aiogram.types.message.Message.answer_poll -#: aiogram.types.message.Message.answer_sticker -#: aiogram.types.message.Message.answer_venue -#: aiogram.types.message.Message.answer_video -#: aiogram.types.message.Message.answer_video_note -#: aiogram.types.message.Message.answer_voice -#: aiogram.types.message.Message.copy_to -#: aiogram.types.message.Message.delete_reply_markup -#: aiogram.types.message.Message.edit_caption -#: aiogram.types.message.Message.edit_live_location -#: aiogram.types.message.Message.edit_media -#: aiogram.types.message.Message.edit_reply_markup -#: aiogram.types.message.Message.edit_text -#: aiogram.types.message.Message.forward aiogram.types.message.Message.get_url -#: aiogram.types.message.Message.pin aiogram.types.message.Message.react -#: aiogram.types.message.Message.reply -#: aiogram.types.message.Message.reply_animation -#: aiogram.types.message.Message.reply_audio -#: aiogram.types.message.Message.reply_contact -#: aiogram.types.message.Message.reply_dice -#: aiogram.types.message.Message.reply_document -#: aiogram.types.message.Message.reply_game -#: aiogram.types.message.Message.reply_invoice -#: aiogram.types.message.Message.reply_location -#: aiogram.types.message.Message.reply_media_group -#: aiogram.types.message.Message.reply_photo -#: aiogram.types.message.Message.reply_poll -#: aiogram.types.message.Message.reply_sticker -#: aiogram.types.message.Message.reply_venue -#: aiogram.types.message.Message.reply_video -#: aiogram.types.message.Message.reply_video_note -#: aiogram.types.message.Message.reply_voice -#: aiogram.types.message.Message.send_copy -#: aiogram.types.message.Message.stop_live_location of +#: ../../api/types/message.rst msgid "Parameters" msgstr "" -#: aiogram.types.message.Message.answer_animation:11 -#: aiogram.types.message.Message.reply_animation:12 of +#: aiogram.types.message.Message.answer_animation:12 +#: aiogram.types.message.Message.reply_animation:13 of msgid "" "Animation to send. Pass a file_id as String to send an animation that " "exists on the Telegram servers (recommended), pass an HTTP URL as a " @@ -659,31 +733,31 @@ msgid "" "Sending Files » `" msgstr "" -#: aiogram.types.message.Message.answer_animation:12 -#: aiogram.types.message.Message.reply_animation:13 of -msgid "Duration of sent animation in seconds" -msgstr "" - #: aiogram.types.message.Message.answer_animation:13 #: aiogram.types.message.Message.reply_animation:14 of -msgid "Animation width" +msgid "Duration of sent animation in seconds" msgstr "" #: aiogram.types.message.Message.answer_animation:14 #: aiogram.types.message.Message.reply_animation:15 of -msgid "Animation height" +msgid "Animation width" msgstr "" #: aiogram.types.message.Message.answer_animation:15 -#: aiogram.types.message.Message.answer_audio:19 -#: aiogram.types.message.Message.answer_document:12 -#: aiogram.types.message.Message.answer_video:15 -#: aiogram.types.message.Message.answer_video_note:14 -#: aiogram.types.message.Message.reply_animation:16 -#: aiogram.types.message.Message.reply_audio:20 -#: aiogram.types.message.Message.reply_document:13 -#: aiogram.types.message.Message.reply_video:16 -#: aiogram.types.message.Message.reply_video_note:15 of +#: aiogram.types.message.Message.reply_animation:16 of +msgid "Animation height" +msgstr "" + +#: aiogram.types.message.Message.answer_animation:16 +#: aiogram.types.message.Message.answer_audio:20 +#: aiogram.types.message.Message.answer_document:13 +#: aiogram.types.message.Message.answer_video:16 +#: aiogram.types.message.Message.answer_video_note:15 +#: aiogram.types.message.Message.reply_animation:17 +#: aiogram.types.message.Message.reply_audio:21 +#: aiogram.types.message.Message.reply_document:14 +#: aiogram.types.message.Message.reply_video:17 +#: aiogram.types.message.Message.reply_video_note:16 of msgid "" "Thumbnail of the file sent; can be ignored if thumbnail generation for " "the file is supported server-side. The thumbnail should be in JPEG format" @@ -695,196 +769,183 @@ msgid "" "information on Sending Files » `" msgstr "" -#: aiogram.types.message.Message.answer_animation:16 -#: aiogram.types.message.Message.reply_animation:17 of +#: aiogram.types.message.Message.answer_animation:17 +#: aiogram.types.message.Message.reply_animation:18 of msgid "" "Animation caption (may also be used when resending animation by " "*file_id*), 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.message.Message.answer_animation:17 -#: aiogram.types.message.Message.reply_animation:18 of +#: aiogram.types.message.Message.answer_animation:18 +#: aiogram.types.message.Message.reply_animation:19 of msgid "" "Mode for parsing entities in the animation caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.types.message.Message.answer_animation:18 -#: aiogram.types.message.Message.answer_audio:15 -#: aiogram.types.message.Message.answer_document:15 -#: aiogram.types.message.Message.answer_photo:14 -#: aiogram.types.message.Message.answer_video:18 -#: aiogram.types.message.Message.answer_voice:14 -#: aiogram.types.message.Message.edit_caption:14 -#: aiogram.types.message.Message.reply_animation:19 -#: aiogram.types.message.Message.reply_audio:16 -#: aiogram.types.message.Message.reply_document:16 -#: aiogram.types.message.Message.reply_photo:15 -#: aiogram.types.message.Message.reply_video:19 -#: aiogram.types.message.Message.reply_voice:15 of +#: aiogram.types.message.Message.answer_animation:19 +#: aiogram.types.message.Message.answer_audio:16 +#: aiogram.types.message.Message.answer_document:16 +#: aiogram.types.message.Message.answer_paid_media:17 +#: aiogram.types.message.Message.answer_photo:15 +#: aiogram.types.message.Message.answer_video:21 +#: aiogram.types.message.Message.answer_voice:15 +#: aiogram.types.message.Message.edit_caption:15 +#: aiogram.types.message.Message.reply_animation:20 +#: aiogram.types.message.Message.reply_audio:17 +#: aiogram.types.message.Message.reply_document:17 +#: aiogram.types.message.Message.reply_paid_media:18 +#: aiogram.types.message.Message.reply_photo:16 +#: aiogram.types.message.Message.reply_video:22 +#: aiogram.types.message.Message.reply_voice:16 of msgid "" "A JSON-serialized list of special entities that appear in the caption, " "which can be specified instead of *parse_mode*" msgstr "" -#: aiogram.types.message.Message.answer_animation:19 -#: aiogram.types.message.Message.reply_animation:20 of +#: aiogram.types.message.Message.answer_animation:20 +#: aiogram.types.message.Message.answer_paid_media:18 +#: aiogram.types.message.Message.answer_photo:16 +#: aiogram.types.message.Message.answer_video:22 +#: aiogram.types.message.Message.reply_animation:21 +#: aiogram.types.message.Message.reply_paid_media:19 +#: aiogram.types.message.Message.reply_photo:17 +#: aiogram.types.message.Message.reply_video:23 of +msgid "Pass :code:`True`, if the caption must be shown above the message media" +msgstr "" + +#: aiogram.types.message.Message.answer_animation:21 +#: aiogram.types.message.Message.reply_animation:22 of msgid "" "Pass :code:`True` if the animation needs to be covered with a spoiler " "animation" msgstr "" -#: aiogram.types.message.Message.answer:15 -#: aiogram.types.message.Message.answer_animation:20 -#: aiogram.types.message.Message.answer_audio:20 -#: aiogram.types.message.Message.answer_contact:15 -#: aiogram.types.message.Message.answer_dice:12 -#: aiogram.types.message.Message.answer_document:17 -#: aiogram.types.message.Message.answer_game:12 -#: aiogram.types.message.Message.answer_invoice:32 -#: aiogram.types.message.Message.answer_location:17 -#: aiogram.types.message.Message.answer_photo:16 -#: aiogram.types.message.Message.answer_poll:23 -#: aiogram.types.message.Message.answer_sticker:13 -#: aiogram.types.message.Message.answer_venue:19 -#: aiogram.types.message.Message.answer_video:21 -#: aiogram.types.message.Message.answer_video_note:15 -#: aiogram.types.message.Message.answer_voice:16 -#: aiogram.types.message.Message.copy_to:16 -#: aiogram.types.message.Message.forward:13 -#: aiogram.types.message.Message.reply:16 -#: aiogram.types.message.Message.reply_animation:21 -#: aiogram.types.message.Message.reply_audio:21 -#: aiogram.types.message.Message.reply_contact:16 -#: aiogram.types.message.Message.reply_dice:13 -#: aiogram.types.message.Message.reply_document:18 -#: aiogram.types.message.Message.reply_game:13 -#: aiogram.types.message.Message.reply_invoice:33 -#: aiogram.types.message.Message.reply_location:18 -#: aiogram.types.message.Message.reply_photo:17 -#: aiogram.types.message.Message.reply_poll:24 -#: aiogram.types.message.Message.reply_sticker:14 -#: aiogram.types.message.Message.reply_venue:20 -#: aiogram.types.message.Message.reply_video:22 -#: aiogram.types.message.Message.reply_video_note:16 -#: aiogram.types.message.Message.reply_voice:17 of +#: aiogram.types.message.Message.answer:16 +#: aiogram.types.message.Message.answer_animation:22 +#: aiogram.types.message.Message.answer_audio:21 +#: aiogram.types.message.Message.answer_contact:16 +#: aiogram.types.message.Message.answer_dice:13 +#: aiogram.types.message.Message.answer_document:18 +#: aiogram.types.message.Message.answer_game:13 +#: aiogram.types.message.Message.answer_invoice:33 +#: aiogram.types.message.Message.answer_location:18 +#: aiogram.types.message.Message.answer_paid_media:19 +#: aiogram.types.message.Message.answer_photo:18 +#: aiogram.types.message.Message.answer_poll:26 +#: aiogram.types.message.Message.answer_sticker:14 +#: aiogram.types.message.Message.answer_venue:20 +#: aiogram.types.message.Message.answer_video:25 +#: aiogram.types.message.Message.answer_video_note:16 +#: aiogram.types.message.Message.answer_voice:17 +#: aiogram.types.message.Message.copy_to:18 +#: aiogram.types.message.Message.forward:14 +#: aiogram.types.message.Message.reply:17 +#: aiogram.types.message.Message.reply_animation:23 +#: aiogram.types.message.Message.reply_audio:22 +#: aiogram.types.message.Message.reply_contact:17 +#: aiogram.types.message.Message.reply_dice:14 +#: aiogram.types.message.Message.reply_document:19 +#: aiogram.types.message.Message.reply_game:14 +#: aiogram.types.message.Message.reply_invoice:34 +#: aiogram.types.message.Message.reply_location:19 +#: aiogram.types.message.Message.reply_paid_media:20 +#: aiogram.types.message.Message.reply_photo:19 +#: aiogram.types.message.Message.reply_poll:27 +#: aiogram.types.message.Message.reply_sticker:15 +#: aiogram.types.message.Message.reply_venue:21 +#: aiogram.types.message.Message.reply_video:26 +#: aiogram.types.message.Message.reply_video_note:17 +#: aiogram.types.message.Message.reply_voice:18 of msgid "" "Sends the message `silently `_. Users will receive a notification with no sound." msgstr "" -#: aiogram.types.message.Message.answer:16 -#: aiogram.types.message.Message.answer_animation:21 -#: aiogram.types.message.Message.answer_audio:21 -#: aiogram.types.message.Message.answer_contact:16 -#: aiogram.types.message.Message.answer_document:18 -#: aiogram.types.message.Message.answer_game:13 -#: aiogram.types.message.Message.answer_invoice:33 -#: aiogram.types.message.Message.answer_location:18 -#: aiogram.types.message.Message.answer_photo:17 -#: aiogram.types.message.Message.answer_poll:24 -#: aiogram.types.message.Message.answer_sticker:14 -#: aiogram.types.message.Message.answer_venue:20 -#: aiogram.types.message.Message.answer_video:22 -#: aiogram.types.message.Message.answer_video_note:16 -#: aiogram.types.message.Message.answer_voice:17 -#: aiogram.types.message.Message.copy_to:17 -#: aiogram.types.message.Message.reply:17 -#: aiogram.types.message.Message.reply_animation:22 -#: aiogram.types.message.Message.reply_audio:22 -#: aiogram.types.message.Message.reply_contact:17 -#: aiogram.types.message.Message.reply_document:19 -#: aiogram.types.message.Message.reply_game:14 -#: aiogram.types.message.Message.reply_invoice:34 -#: aiogram.types.message.Message.reply_location:19 -#: aiogram.types.message.Message.reply_photo:18 -#: aiogram.types.message.Message.reply_poll:25 -#: aiogram.types.message.Message.reply_sticker:15 -#: aiogram.types.message.Message.reply_venue:21 -#: aiogram.types.message.Message.reply_video:23 -#: aiogram.types.message.Message.reply_video_note:17 -#: aiogram.types.message.Message.reply_voice:18 of -msgid "Protects the contents of the sent message from forwarding and saving" -msgstr "" - #: aiogram.types.message.Message.answer:17 -#: aiogram.types.message.Message.answer_animation:22 +#: aiogram.types.message.Message.answer_animation:23 #: aiogram.types.message.Message.answer_audio:22 #: aiogram.types.message.Message.answer_contact:17 -#: aiogram.types.message.Message.answer_dice:14 #: aiogram.types.message.Message.answer_document:19 #: aiogram.types.message.Message.answer_game:14 #: aiogram.types.message.Message.answer_invoice:34 #: aiogram.types.message.Message.answer_location:19 -#: aiogram.types.message.Message.answer_media_group:14 -#: aiogram.types.message.Message.answer_photo:18 -#: aiogram.types.message.Message.answer_poll:25 +#: aiogram.types.message.Message.answer_paid_media:20 +#: aiogram.types.message.Message.answer_photo:19 +#: aiogram.types.message.Message.answer_poll:27 #: aiogram.types.message.Message.answer_sticker:15 #: aiogram.types.message.Message.answer_venue:21 -#: aiogram.types.message.Message.answer_video:23 +#: aiogram.types.message.Message.answer_video:26 #: aiogram.types.message.Message.answer_video_note:17 #: aiogram.types.message.Message.answer_voice:18 -#: aiogram.types.message.Message.copy_to:18 +#: aiogram.types.message.Message.copy_to:19 #: aiogram.types.message.Message.reply:18 -#: aiogram.types.message.Message.reply_animation:23 +#: aiogram.types.message.Message.reply_animation:24 #: aiogram.types.message.Message.reply_audio:23 #: aiogram.types.message.Message.reply_contact:18 -#: aiogram.types.message.Message.reply_dice:15 #: aiogram.types.message.Message.reply_document:20 #: aiogram.types.message.Message.reply_game:15 #: aiogram.types.message.Message.reply_invoice:35 #: aiogram.types.message.Message.reply_location:20 -#: aiogram.types.message.Message.reply_media_group:15 -#: aiogram.types.message.Message.reply_photo:19 -#: aiogram.types.message.Message.reply_poll:26 +#: aiogram.types.message.Message.reply_paid_media:21 +#: aiogram.types.message.Message.reply_photo:20 +#: aiogram.types.message.Message.reply_poll:28 #: aiogram.types.message.Message.reply_sticker:16 #: aiogram.types.message.Message.reply_venue:22 -#: aiogram.types.message.Message.reply_video:24 +#: aiogram.types.message.Message.reply_video:27 #: aiogram.types.message.Message.reply_video_note:18 #: aiogram.types.message.Message.reply_voice:19 of -msgid "Description of the message to reply to" +msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" #: aiogram.types.message.Message.answer:18 -#: aiogram.types.message.Message.answer_animation:23 +#: aiogram.types.message.Message.answer_animation:24 #: aiogram.types.message.Message.answer_audio:23 #: aiogram.types.message.Message.answer_contact:18 #: aiogram.types.message.Message.answer_dice:15 #: aiogram.types.message.Message.answer_document:20 +#: aiogram.types.message.Message.answer_game:15 +#: aiogram.types.message.Message.answer_invoice:35 #: aiogram.types.message.Message.answer_location:20 -#: aiogram.types.message.Message.answer_photo:19 -#: aiogram.types.message.Message.answer_poll:26 +#: aiogram.types.message.Message.answer_media_group:15 +#: aiogram.types.message.Message.answer_paid_media:21 +#: aiogram.types.message.Message.answer_photo:20 +#: aiogram.types.message.Message.answer_poll:28 #: aiogram.types.message.Message.answer_sticker:16 #: aiogram.types.message.Message.answer_venue:22 -#: aiogram.types.message.Message.answer_video:24 +#: aiogram.types.message.Message.answer_video:27 #: aiogram.types.message.Message.answer_video_note:18 #: aiogram.types.message.Message.answer_voice:19 -#: aiogram.types.message.Message.copy_to:19 +#: aiogram.types.message.Message.copy_to:20 #: aiogram.types.message.Message.reply:19 -#: aiogram.types.message.Message.reply_animation:24 +#: aiogram.types.message.Message.reply_animation:25 #: aiogram.types.message.Message.reply_audio:24 #: aiogram.types.message.Message.reply_contact:19 #: aiogram.types.message.Message.reply_dice:16 #: aiogram.types.message.Message.reply_document:21 +#: aiogram.types.message.Message.reply_game:16 +#: aiogram.types.message.Message.reply_invoice:36 #: aiogram.types.message.Message.reply_location:21 -#: aiogram.types.message.Message.reply_photo:20 -#: aiogram.types.message.Message.reply_poll:27 +#: aiogram.types.message.Message.reply_media_group:16 +#: aiogram.types.message.Message.reply_paid_media:22 +#: aiogram.types.message.Message.reply_photo:21 +#: aiogram.types.message.Message.reply_poll:29 #: aiogram.types.message.Message.reply_sticker:17 #: aiogram.types.message.Message.reply_venue:23 -#: aiogram.types.message.Message.reply_video:25 +#: aiogram.types.message.Message.reply_video:28 #: aiogram.types.message.Message.reply_video_note:19 #: aiogram.types.message.Message.reply_voice:20 of msgid "" -"Additional interface options. A JSON-serialized object for an `inline " -"keyboard `_, " -"`custom reply keyboard " -"`_, instructions to " -"remove reply keyboard or to force a reply from the user." +"Pass :code:`True` to allow up to 1000 messages per second, ignoring " +"`broadcasting limits `_ for a fee of 0.1 " +"Telegram Stars per message. The relevant Stars will be withdrawn from the" +" bot's balance" msgstr "" #: aiogram.types.message.Message.answer:19 -#: aiogram.types.message.Message.answer_animation:24 +#: aiogram.types.message.Message.answer_animation:25 #: aiogram.types.message.Message.answer_audio:24 #: aiogram.types.message.Message.answer_contact:19 #: aiogram.types.message.Message.answer_dice:16 @@ -892,17 +953,16 @@ msgstr "" #: aiogram.types.message.Message.answer_game:16 #: aiogram.types.message.Message.answer_invoice:36 #: aiogram.types.message.Message.answer_location:21 -#: aiogram.types.message.Message.answer_media_group:15 -#: aiogram.types.message.Message.answer_photo:20 -#: aiogram.types.message.Message.answer_poll:27 +#: aiogram.types.message.Message.answer_media_group:16 +#: aiogram.types.message.Message.answer_photo:21 +#: aiogram.types.message.Message.answer_poll:29 #: aiogram.types.message.Message.answer_sticker:17 #: aiogram.types.message.Message.answer_venue:23 -#: aiogram.types.message.Message.answer_video:25 +#: aiogram.types.message.Message.answer_video:28 #: aiogram.types.message.Message.answer_video_note:19 #: aiogram.types.message.Message.answer_voice:20 -#: aiogram.types.message.Message.copy_to:20 #: aiogram.types.message.Message.reply:20 -#: aiogram.types.message.Message.reply_animation:25 +#: aiogram.types.message.Message.reply_animation:26 #: aiogram.types.message.Message.reply_audio:25 #: aiogram.types.message.Message.reply_contact:20 #: aiogram.types.message.Message.reply_dice:17 @@ -910,75 +970,109 @@ msgstr "" #: aiogram.types.message.Message.reply_game:17 #: aiogram.types.message.Message.reply_invoice:37 #: aiogram.types.message.Message.reply_location:22 -#: aiogram.types.message.Message.reply_media_group:16 -#: aiogram.types.message.Message.reply_photo:21 -#: aiogram.types.message.Message.reply_poll:28 +#: aiogram.types.message.Message.reply_media_group:17 +#: aiogram.types.message.Message.reply_photo:22 +#: aiogram.types.message.Message.reply_poll:30 #: aiogram.types.message.Message.reply_sticker:18 #: aiogram.types.message.Message.reply_venue:24 -#: aiogram.types.message.Message.reply_video:26 +#: aiogram.types.message.Message.reply_video:29 #: aiogram.types.message.Message.reply_video_note:20 #: aiogram.types.message.Message.reply_voice:21 of msgid "" +"Unique identifier of the message effect to be added to the message; for " +"private chats only" +msgstr "" + +#: aiogram.types.message.Message.answer:21 +#: aiogram.types.message.Message.answer_animation:27 +#: aiogram.types.message.Message.answer_audio:26 +#: aiogram.types.message.Message.answer_contact:21 +#: aiogram.types.message.Message.answer_dice:18 +#: aiogram.types.message.Message.answer_document:23 +#: aiogram.types.message.Message.answer_location:23 +#: aiogram.types.message.Message.answer_paid_media:23 +#: aiogram.types.message.Message.answer_photo:23 +#: aiogram.types.message.Message.answer_poll:31 +#: aiogram.types.message.Message.answer_sticker:19 +#: aiogram.types.message.Message.answer_venue:25 +#: aiogram.types.message.Message.answer_video:30 +#: aiogram.types.message.Message.answer_video_note:21 +#: aiogram.types.message.Message.answer_voice:22 +#: aiogram.types.message.Message.copy_to:22 +#: aiogram.types.message.Message.reply:21 +#: aiogram.types.message.Message.reply_animation:27 +#: aiogram.types.message.Message.reply_audio:26 +#: aiogram.types.message.Message.reply_contact:21 +#: aiogram.types.message.Message.reply_dice:18 +#: aiogram.types.message.Message.reply_document:23 +#: aiogram.types.message.Message.reply_location:23 +#: aiogram.types.message.Message.reply_paid_media:23 +#: aiogram.types.message.Message.reply_photo:23 +#: aiogram.types.message.Message.reply_poll:31 +#: aiogram.types.message.Message.reply_sticker:19 +#: aiogram.types.message.Message.reply_venue:25 +#: aiogram.types.message.Message.reply_video:30 +#: aiogram.types.message.Message.reply_video_note:21 +#: aiogram.types.message.Message.reply_voice:22 of +msgid "" +"Additional interface options. A JSON-serialized object for an `inline " +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove a reply keyboard or to force a reply from the user" +msgstr "" + +#: aiogram.types.message.Message.answer:22 +#: aiogram.types.message.Message.answer_animation:28 +#: aiogram.types.message.Message.answer_audio:27 +#: aiogram.types.message.Message.answer_contact:22 +#: aiogram.types.message.Message.answer_dice:19 +#: aiogram.types.message.Message.answer_document:24 +#: aiogram.types.message.Message.answer_game:19 +#: aiogram.types.message.Message.answer_invoice:39 +#: aiogram.types.message.Message.answer_location:24 +#: aiogram.types.message.Message.answer_media_group:18 +#: aiogram.types.message.Message.answer_photo:24 +#: aiogram.types.message.Message.answer_poll:32 +#: aiogram.types.message.Message.answer_sticker:20 +#: aiogram.types.message.Message.answer_venue:26 +#: aiogram.types.message.Message.answer_video:31 +#: aiogram.types.message.Message.answer_video_note:22 +#: aiogram.types.message.Message.answer_voice:23 +#: aiogram.types.message.Message.copy_to:23 +#: aiogram.types.message.Message.reply:22 +#: aiogram.types.message.Message.reply_animation:28 +#: aiogram.types.message.Message.reply_audio:27 +#: aiogram.types.message.Message.reply_contact:22 +#: aiogram.types.message.Message.reply_dice:19 +#: aiogram.types.message.Message.reply_document:24 +#: aiogram.types.message.Message.reply_game:19 +#: aiogram.types.message.Message.reply_invoice:39 +#: aiogram.types.message.Message.reply_location:24 +#: aiogram.types.message.Message.reply_media_group:18 +#: aiogram.types.message.Message.reply_photo:24 +#: aiogram.types.message.Message.reply_poll:32 +#: aiogram.types.message.Message.reply_sticker:20 +#: aiogram.types.message.Message.reply_venue:26 +#: aiogram.types.message.Message.reply_video:31 +#: aiogram.types.message.Message.reply_video_note:22 +#: aiogram.types.message.Message.reply_voice:23 of +msgid "" "Pass :code:`True` if the message should be sent even if the specified " "replied-to message is not found" msgstr "" -#: aiogram.types.message.Message.answer -#: aiogram.types.message.Message.answer_animation -#: aiogram.types.message.Message.answer_audio -#: aiogram.types.message.Message.answer_contact -#: aiogram.types.message.Message.answer_dice -#: aiogram.types.message.Message.answer_document -#: aiogram.types.message.Message.answer_game -#: aiogram.types.message.Message.answer_invoice -#: aiogram.types.message.Message.answer_location -#: aiogram.types.message.Message.answer_media_group -#: aiogram.types.message.Message.answer_photo -#: aiogram.types.message.Message.answer_poll -#: aiogram.types.message.Message.answer_sticker -#: aiogram.types.message.Message.answer_venue -#: aiogram.types.message.Message.answer_video -#: aiogram.types.message.Message.answer_video_note -#: aiogram.types.message.Message.answer_voice -#: aiogram.types.message.Message.copy_to aiogram.types.message.Message.delete -#: aiogram.types.message.Message.delete_reply_markup -#: aiogram.types.message.Message.edit_caption -#: aiogram.types.message.Message.edit_live_location -#: aiogram.types.message.Message.edit_media -#: aiogram.types.message.Message.edit_reply_markup -#: aiogram.types.message.Message.edit_text -#: aiogram.types.message.Message.forward aiogram.types.message.Message.get_url -#: aiogram.types.message.Message.pin aiogram.types.message.Message.react -#: aiogram.types.message.Message.reply -#: aiogram.types.message.Message.reply_animation -#: aiogram.types.message.Message.reply_audio -#: aiogram.types.message.Message.reply_contact -#: aiogram.types.message.Message.reply_dice -#: aiogram.types.message.Message.reply_document -#: aiogram.types.message.Message.reply_game -#: aiogram.types.message.Message.reply_invoice -#: aiogram.types.message.Message.reply_location -#: aiogram.types.message.Message.reply_media_group -#: aiogram.types.message.Message.reply_photo -#: aiogram.types.message.Message.reply_poll -#: aiogram.types.message.Message.reply_sticker -#: aiogram.types.message.Message.reply_venue -#: aiogram.types.message.Message.reply_video -#: aiogram.types.message.Message.reply_video_note -#: aiogram.types.message.Message.reply_voice -#: aiogram.types.message.Message.send_copy -#: aiogram.types.message.Message.stop_live_location -#: aiogram.types.message.Message.unpin of +#: ../../api/types/message.rst msgid "Returns" msgstr "" -#: aiogram.types.message.Message.answer_animation:26 -#: aiogram.types.message.Message.reply_animation:26 of +#: aiogram.types.message.Message.answer_animation:30 +#: aiogram.types.message.Message.reply_animation:29 of msgid "instance of method :class:`aiogram.methods.send_animation.SendAnimation`" msgstr "" -#: aiogram.types.message.Message.answer:21 -#: aiogram.types.message.Message.answer_animation:25 +#: aiogram.types.message.Message.answer:20 +#: aiogram.types.message.Message.answer_animation:26 #: aiogram.types.message.Message.answer_audio:25 #: aiogram.types.message.Message.answer_contact:20 #: aiogram.types.message.Message.answer_dice:17 @@ -986,14 +1080,36 @@ msgstr "" #: aiogram.types.message.Message.answer_game:17 #: aiogram.types.message.Message.answer_invoice:37 #: aiogram.types.message.Message.answer_location:22 -#: aiogram.types.message.Message.answer_photo:21 -#: aiogram.types.message.Message.answer_poll:28 +#: aiogram.types.message.Message.answer_media_group:17 +#: aiogram.types.message.Message.answer_paid_media:22 +#: aiogram.types.message.Message.answer_photo:22 +#: aiogram.types.message.Message.answer_poll:30 #: aiogram.types.message.Message.answer_sticker:18 #: aiogram.types.message.Message.answer_venue:24 -#: aiogram.types.message.Message.answer_video:26 +#: aiogram.types.message.Message.answer_video:29 #: aiogram.types.message.Message.answer_video_note:20 #: aiogram.types.message.Message.answer_voice:21 #: aiogram.types.message.Message.copy_to:21 of +msgid "Description of the message to reply to" +msgstr "" + +#: aiogram.types.message.Message.answer:24 +#: aiogram.types.message.Message.answer_animation:29 +#: aiogram.types.message.Message.answer_audio:28 +#: aiogram.types.message.Message.answer_contact:23 +#: aiogram.types.message.Message.answer_dice:20 +#: aiogram.types.message.Message.answer_document:25 +#: aiogram.types.message.Message.answer_game:20 +#: aiogram.types.message.Message.answer_invoice:40 +#: aiogram.types.message.Message.answer_location:25 +#: aiogram.types.message.Message.answer_photo:25 +#: aiogram.types.message.Message.answer_poll:33 +#: aiogram.types.message.Message.answer_sticker:21 +#: aiogram.types.message.Message.answer_venue:27 +#: aiogram.types.message.Message.answer_video:32 +#: aiogram.types.message.Message.answer_video_note:23 +#: aiogram.types.message.Message.answer_voice:24 +#: aiogram.types.message.Message.copy_to:24 of msgid "If the message is a reply, ID of the original message" msgstr "" @@ -1004,8 +1120,8 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_audio:7 -#: aiogram.types.message.Message.reply_audio:8 of +#: aiogram.types.message.Message.answer_audio:8 +#: aiogram.types.message.Message.reply_audio:9 of msgid "" "Use this method to send audio files, if you want Telegram clients to " "display them in the music player. Your audio must be in the .MP3 or .M4A " @@ -1015,13 +1131,13 @@ msgid "" "the :class:`aiogram.methods.send_voice.SendVoice` method instead." msgstr "" -#: aiogram.types.message.Message.answer_audio:10 -#: aiogram.types.message.Message.reply_audio:11 of +#: aiogram.types.message.Message.answer_audio:11 +#: aiogram.types.message.Message.reply_audio:12 of msgid "Source: https://core.telegram.org/bots/api#sendaudio" msgstr "" -#: aiogram.types.message.Message.answer_audio:12 -#: aiogram.types.message.Message.reply_audio:13 of +#: aiogram.types.message.Message.answer_audio:13 +#: aiogram.types.message.Message.reply_audio:14 of msgid "" "Audio file to send. Pass a file_id as String to send an audio file that " "exists on the Telegram servers (recommended), pass an HTTP URL as a " @@ -1030,36 +1146,36 @@ msgid "" "Files » `" msgstr "" -#: aiogram.types.message.Message.answer_audio:13 -#: aiogram.types.message.Message.reply_audio:14 of +#: aiogram.types.message.Message.answer_audio:14 +#: aiogram.types.message.Message.reply_audio:15 of msgid "Audio caption, 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.message.Message.answer_audio:14 -#: aiogram.types.message.Message.reply_audio:15 of +#: aiogram.types.message.Message.answer_audio:15 +#: aiogram.types.message.Message.reply_audio:16 of msgid "" "Mode for parsing entities in the audio caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.message.Message.answer_audio:16 -#: aiogram.types.message.Message.reply_audio:17 of -msgid "Duration of the audio in seconds" -msgstr "" - #: aiogram.types.message.Message.answer_audio:17 #: aiogram.types.message.Message.reply_audio:18 of -msgid "Performer" +msgid "Duration of the audio in seconds" msgstr "" #: aiogram.types.message.Message.answer_audio:18 #: aiogram.types.message.Message.reply_audio:19 of +msgid "Performer" +msgstr "" + +#: aiogram.types.message.Message.answer_audio:19 +#: aiogram.types.message.Message.reply_audio:20 of msgid "Track name" msgstr "" -#: aiogram.types.message.Message.answer_audio:26 -#: aiogram.types.message.Message.reply_audio:26 of +#: aiogram.types.message.Message.answer_audio:29 +#: aiogram.types.message.Message.reply_audio:28 of msgid "instance of method :class:`aiogram.methods.send_audio.SendAudio`" msgstr "" @@ -1070,42 +1186,42 @@ msgid "" "will automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_contact:7 -#: aiogram.types.message.Message.reply_contact:8 of +#: aiogram.types.message.Message.answer_contact:8 +#: aiogram.types.message.Message.reply_contact:9 of msgid "" "Use this method to send phone contacts. On success, the sent " ":class:`aiogram.types.message.Message` is returned." msgstr "" -#: aiogram.types.message.Message.answer_contact:9 -#: aiogram.types.message.Message.reply_contact:10 of +#: aiogram.types.message.Message.answer_contact:10 +#: aiogram.types.message.Message.reply_contact:11 of msgid "Source: https://core.telegram.org/bots/api#sendcontact" msgstr "" -#: aiogram.types.message.Message.answer_contact:11 -#: aiogram.types.message.Message.reply_contact:12 of -msgid "Contact's phone number" -msgstr "" - #: aiogram.types.message.Message.answer_contact:12 #: aiogram.types.message.Message.reply_contact:13 of -msgid "Contact's first name" +msgid "Contact's phone number" msgstr "" #: aiogram.types.message.Message.answer_contact:13 #: aiogram.types.message.Message.reply_contact:14 of -msgid "Contact's last name" +msgid "Contact's first name" msgstr "" #: aiogram.types.message.Message.answer_contact:14 #: aiogram.types.message.Message.reply_contact:15 of +msgid "Contact's last name" +msgstr "" + +#: aiogram.types.message.Message.answer_contact:15 +#: aiogram.types.message.Message.reply_contact:16 of msgid "" "Additional data about the contact in the form of a `vCard " "`_, 0-2048 bytes" msgstr "" -#: aiogram.types.message.Message.answer_contact:21 -#: aiogram.types.message.Message.reply_contact:21 of +#: aiogram.types.message.Message.answer_contact:24 +#: aiogram.types.message.Message.reply_contact:23 of msgid "instance of method :class:`aiogram.methods.send_contact.SendContact`" msgstr "" @@ -1116,8 +1232,8 @@ msgid "" "will automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_document:7 -#: aiogram.types.message.Message.reply_document:8 of +#: aiogram.types.message.Message.answer_document:8 +#: aiogram.types.message.Message.reply_document:9 of msgid "" "Use this method to send general files. On success, the sent " ":class:`aiogram.types.message.Message` is returned. Bots can currently " @@ -1125,13 +1241,13 @@ msgid "" "in the future." msgstr "" -#: aiogram.types.message.Message.answer_document:9 -#: aiogram.types.message.Message.reply_document:10 of +#: aiogram.types.message.Message.answer_document:10 +#: aiogram.types.message.Message.reply_document:11 of msgid "Source: https://core.telegram.org/bots/api#senddocument" msgstr "" -#: aiogram.types.message.Message.answer_document:11 -#: aiogram.types.message.Message.reply_document:12 of +#: aiogram.types.message.Message.answer_document:12 +#: aiogram.types.message.Message.reply_document:13 of msgid "" "File to send. Pass a file_id as String to send a file that exists on the " "Telegram servers (recommended), pass an HTTP URL as a String for Telegram" @@ -1139,30 +1255,30 @@ msgid "" "/form-data. :ref:`More information on Sending Files » `" msgstr "" -#: aiogram.types.message.Message.answer_document:13 -#: aiogram.types.message.Message.reply_document:14 of +#: aiogram.types.message.Message.answer_document:14 +#: aiogram.types.message.Message.reply_document:15 of msgid "" "Document caption (may also be used when resending documents by " "*file_id*), 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.message.Message.answer_document:14 -#: aiogram.types.message.Message.reply_document:15 of +#: aiogram.types.message.Message.answer_document:15 +#: aiogram.types.message.Message.reply_document:16 of msgid "" "Mode for parsing entities in the document caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.types.message.Message.answer_document:16 -#: aiogram.types.message.Message.reply_document:17 of +#: aiogram.types.message.Message.answer_document:17 +#: aiogram.types.message.Message.reply_document:18 of msgid "" "Disables automatic server-side content type detection for files uploaded " "using multipart/form-data" msgstr "" -#: aiogram.types.message.Message.answer_document:23 -#: aiogram.types.message.Message.reply_document:23 of +#: aiogram.types.message.Message.answer_document:26 +#: aiogram.types.message.Message.reply_document:25 of msgid "instance of method :class:`aiogram.methods.send_document.SendDocument`" msgstr "" @@ -1173,27 +1289,27 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_game:7 -#: aiogram.types.message.Message.reply_game:8 of +#: aiogram.types.message.Message.answer_game:8 +#: aiogram.types.message.Message.reply_game:9 of msgid "" "Use this method to send a game. On success, the sent " ":class:`aiogram.types.message.Message` is returned." msgstr "" -#: aiogram.types.message.Message.answer_game:9 -#: aiogram.types.message.Message.reply_game:10 of +#: aiogram.types.message.Message.answer_game:10 +#: aiogram.types.message.Message.reply_game:11 of msgid "Source: https://core.telegram.org/bots/api#sendgame" msgstr "" -#: aiogram.types.message.Message.answer_game:11 -#: aiogram.types.message.Message.reply_game:12 of +#: aiogram.types.message.Message.answer_game:12 +#: aiogram.types.message.Message.reply_game:13 of msgid "" "Short name of the game, serves as the unique identifier for the game. Set" " up your games via `@BotFather `_." msgstr "" -#: aiogram.types.message.Message.answer_game:15 -#: aiogram.types.message.Message.reply_game:16 of +#: aiogram.types.message.Message.answer_game:18 +#: aiogram.types.message.Message.reply_game:18 of msgid "" "A JSON-serialized object for an `inline keyboard " "`_. If empty, " @@ -1201,8 +1317,8 @@ msgid "" "button must launch the game." msgstr "" -#: aiogram.types.message.Message.answer_game:18 -#: aiogram.types.message.Message.reply_game:18 of +#: aiogram.types.message.Message.answer_game:21 +#: aiogram.types.message.Message.reply_game:20 of msgid "instance of method :class:`aiogram.methods.send_game.SendGame`" msgstr "" @@ -1213,70 +1329,75 @@ msgid "" "will automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_invoice:7 -#: aiogram.types.message.Message.reply_invoice:8 of +#: aiogram.types.message.Message.answer_invoice:8 +#: aiogram.types.message.Message.reply_invoice:9 of msgid "" "Use this method to send invoices. On success, the sent " ":class:`aiogram.types.message.Message` is returned." msgstr "" -#: aiogram.types.message.Message.answer_invoice:9 -#: aiogram.types.message.Message.reply_invoice:10 of +#: aiogram.types.message.Message.answer_invoice:10 +#: aiogram.types.message.Message.reply_invoice:11 of msgid "Source: https://core.telegram.org/bots/api#sendinvoice" msgstr "" -#: aiogram.types.message.Message.answer_invoice:11 -#: aiogram.types.message.Message.reply_invoice:12 of -msgid "Product name, 1-32 characters" -msgstr "" - #: aiogram.types.message.Message.answer_invoice:12 #: aiogram.types.message.Message.reply_invoice:13 of -msgid "Product description, 1-255 characters" +msgid "Product name, 1-32 characters" msgstr "" #: aiogram.types.message.Message.answer_invoice:13 #: aiogram.types.message.Message.reply_invoice:14 of -msgid "" -"Bot-defined invoice payload, 1-128 bytes. This will not be displayed to " -"the user, use for your internal processes." +msgid "Product description, 1-255 characters" msgstr "" #: aiogram.types.message.Message.answer_invoice:14 #: aiogram.types.message.Message.reply_invoice:15 of msgid "" -"Payment provider token, obtained via `@BotFather " -"`_" +"Bot-defined invoice payload, 1-128 bytes. This will not be displayed to " +"the user, use it for your internal processes." msgstr "" #: aiogram.types.message.Message.answer_invoice:15 #: aiogram.types.message.Message.reply_invoice:16 of msgid "" "Three-letter ISO 4217 currency code, see `more on currencies " -"`_" +"`_. Pass " +"'XTR' for payments in `Telegram Stars `_." msgstr "" #: aiogram.types.message.Message.answer_invoice:16 #: aiogram.types.message.Message.reply_invoice:17 of msgid "" "Price breakdown, a JSON-serialized list of components (e.g. product " -"price, tax, discount, delivery cost, delivery tax, bonus, etc.)" +"price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must " +"contain exactly one item for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.message.Message.answer_invoice:17 #: aiogram.types.message.Message.reply_invoice:18 of msgid "" +"Payment provider token, obtained via `@BotFather " +"`_. Pass an empty string for payments in " +"`Telegram Stars `_." +msgstr "" + +#: aiogram.types.message.Message.answer_invoice:18 +#: aiogram.types.message.Message.reply_invoice:19 of +msgid "" "The maximum accepted amount for tips in the *smallest units* of the " "currency (integer, **not** float/double). For example, for a maximum tip " "of :code:`US$ 1.45` pass :code:`max_tip_amount = 145`. See the *exp* " "parameter in `currencies.json " "`_, it shows the" " number of digits past the decimal point for each currency (2 for the " -"majority of currencies). Defaults to 0" +"majority of currencies). Defaults to 0. Not supported for payments in " +"`Telegram Stars `_." msgstr "" -#: aiogram.types.message.Message.answer_invoice:18 -#: aiogram.types.message.Message.reply_invoice:19 of +#: aiogram.types.message.Message.answer_invoice:19 +#: aiogram.types.message.Message.reply_invoice:20 of msgid "" "A JSON-serialized array of suggested amounts of tips in the *smallest " "units* of the currency (integer, **not** float/double). At most 4 " @@ -1285,8 +1406,8 @@ msgid "" "*max_tip_amount*." msgstr "" -#: aiogram.types.message.Message.answer_invoice:19 -#: aiogram.types.message.Message.reply_invoice:20 of +#: aiogram.types.message.Message.answer_invoice:20 +#: aiogram.types.message.Message.reply_invoice:21 of msgid "" "Unique deep-linking parameter. If left empty, **forwarded copies** of the" " sent message will have a *Pay* button, allowing multiple users to pay " @@ -1296,82 +1417,94 @@ msgid "" "as the start parameter" msgstr "" -#: aiogram.types.message.Message.answer_invoice:20 -#: aiogram.types.message.Message.reply_invoice:21 of +#: aiogram.types.message.Message.answer_invoice:21 +#: aiogram.types.message.Message.reply_invoice:22 of msgid "" "JSON-serialized data about the invoice, which will be shared with the " "payment provider. A detailed description of required fields should be " "provided by the payment provider." msgstr "" -#: aiogram.types.message.Message.answer_invoice:21 -#: aiogram.types.message.Message.reply_invoice:22 of +#: aiogram.types.message.Message.answer_invoice:22 +#: aiogram.types.message.Message.reply_invoice:23 of msgid "" "URL of the product photo for the invoice. Can be a photo of the goods or " "a marketing image for a service. People like it better when they see what" " they are paying for." msgstr "" -#: aiogram.types.message.Message.answer_invoice:22 -#: aiogram.types.message.Message.reply_invoice:23 of -msgid "Photo size in bytes" -msgstr "" - #: aiogram.types.message.Message.answer_invoice:23 #: aiogram.types.message.Message.reply_invoice:24 of -msgid "Photo width" +msgid "Photo size in bytes" msgstr "" #: aiogram.types.message.Message.answer_invoice:24 #: aiogram.types.message.Message.reply_invoice:25 of -msgid "Photo height" +msgid "Photo width" msgstr "" #: aiogram.types.message.Message.answer_invoice:25 #: aiogram.types.message.Message.reply_invoice:26 of -msgid "" -"Pass :code:`True` if you require the user's full name to complete the " -"order" +msgid "Photo height" msgstr "" #: aiogram.types.message.Message.answer_invoice:26 #: aiogram.types.message.Message.reply_invoice:27 of msgid "" -"Pass :code:`True` if you require the user's phone number to complete the " -"order" +"Pass :code:`True` if you require the user's full name to complete the " +"order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.message.Message.answer_invoice:27 #: aiogram.types.message.Message.reply_invoice:28 of msgid "" -"Pass :code:`True` if you require the user's email address to complete the" -" order" +"Pass :code:`True` if you require the user's phone number to complete the " +"order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.message.Message.answer_invoice:28 #: aiogram.types.message.Message.reply_invoice:29 of msgid "" -"Pass :code:`True` if you require the user's shipping address to complete " -"the order" +"Pass :code:`True` if you require the user's email address to complete the" +" order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.message.Message.answer_invoice:29 #: aiogram.types.message.Message.reply_invoice:30 of -msgid "Pass :code:`True` if the user's phone number should be sent to provider" +msgid "" +"Pass :code:`True` if you require the user's shipping address to complete " +"the order. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.message.Message.answer_invoice:30 #: aiogram.types.message.Message.reply_invoice:31 of -msgid "Pass :code:`True` if the user's email address should be sent to provider" +msgid "" +"Pass :code:`True` if the user's phone number should be sent to the " +"provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" #: aiogram.types.message.Message.answer_invoice:31 #: aiogram.types.message.Message.reply_invoice:32 of -msgid "Pass :code:`True` if the final price depends on the shipping method" +msgid "" +"Pass :code:`True` if the user's email address should be sent to the " +"provider. Ignored for payments in `Telegram Stars " +"`_." msgstr "" -#: aiogram.types.message.Message.answer_invoice:35 -#: aiogram.types.message.Message.reply_invoice:36 of +#: aiogram.types.message.Message.answer_invoice:32 +#: aiogram.types.message.Message.reply_invoice:33 of +msgid "" +"Pass :code:`True` if the final price depends on the shipping method. " +"Ignored for payments in `Telegram Stars `_." +msgstr "" + +#: aiogram.types.message.Message.answer_invoice:38 +#: aiogram.types.message.Message.reply_invoice:38 of msgid "" "A JSON-serialized object for an `inline keyboard " "`_. If empty, " @@ -1379,8 +1512,8 @@ msgid "" "first button must be a Pay button." msgstr "" -#: aiogram.types.message.Message.answer_invoice:38 -#: aiogram.types.message.Message.reply_invoice:38 of +#: aiogram.types.message.Message.answer_invoice:41 +#: aiogram.types.message.Message.reply_invoice:40 of msgid "instance of method :class:`aiogram.methods.send_invoice.SendInvoice`" msgstr "" @@ -1391,59 +1524,60 @@ msgid "" "will automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_location:7 -#: aiogram.types.message.Message.reply_location:8 of +#: aiogram.types.message.Message.answer_location:8 +#: aiogram.types.message.Message.reply_location:9 of msgid "" "Use this method to send point on the map. On success, the sent " ":class:`aiogram.types.message.Message` is returned." msgstr "" -#: aiogram.types.message.Message.answer_location:9 -#: aiogram.types.message.Message.reply_location:10 of +#: aiogram.types.message.Message.answer_location:10 +#: aiogram.types.message.Message.reply_location:11 of msgid "Source: https://core.telegram.org/bots/api#sendlocation" msgstr "" -#: aiogram.types.message.Message.answer_location:11 -#: aiogram.types.message.Message.reply_location:12 of -msgid "Latitude of the location" -msgstr "" - #: aiogram.types.message.Message.answer_location:12 #: aiogram.types.message.Message.reply_location:13 of -msgid "Longitude of the location" +msgid "Latitude of the location" msgstr "" #: aiogram.types.message.Message.answer_location:13 -#: aiogram.types.message.Message.edit_live_location:14 #: aiogram.types.message.Message.reply_location:14 of -msgid "The radius of uncertainty for the location, measured in meters; 0-1500" +msgid "Longitude of the location" msgstr "" #: aiogram.types.message.Message.answer_location:14 +#: aiogram.types.message.Message.edit_live_location:16 #: aiogram.types.message.Message.reply_location:15 of -msgid "" -"Period in seconds for which the location will be updated (see `Live " -"Locations `_, should be between" -" 60 and 86400." +msgid "The radius of uncertainty for the location, measured in meters; 0-1500" msgstr "" #: aiogram.types.message.Message.answer_location:15 #: aiogram.types.message.Message.reply_location:16 of msgid "" -"For live locations, a direction in which the user is moving, in degrees. " -"Must be between 1 and 360 if specified." +"Period in seconds during which the location will be updated (see `Live " +"Locations `_, should be between" +" 60 and 86400, or 0x7FFFFFFF for live locations that can be edited " +"indefinitely." msgstr "" #: aiogram.types.message.Message.answer_location:16 #: aiogram.types.message.Message.reply_location:17 of msgid "" +"For live locations, a direction in which the user is moving, in degrees. " +"Must be between 1 and 360 if specified." +msgstr "" + +#: aiogram.types.message.Message.answer_location:17 +#: aiogram.types.message.Message.reply_location:18 of +msgid "" "For live locations, a maximum distance for proximity alerts about " "approaching another chat member, in meters. Must be between 1 and 100000 " "if specified." msgstr "" -#: aiogram.types.message.Message.answer_location:23 -#: aiogram.types.message.Message.reply_location:23 of +#: aiogram.types.message.Message.answer_location:26 +#: aiogram.types.message.Message.reply_location:25 of msgid "instance of method :class:`aiogram.methods.send_location.SendLocation`" msgstr "" @@ -1455,8 +1589,8 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_media_group:7 -#: aiogram.types.message.Message.reply_media_group:8 of +#: aiogram.types.message.Message.answer_media_group:8 +#: aiogram.types.message.Message.reply_media_group:9 of msgid "" "Use this method to send a group of photos, videos, documents or audios as" " an album. Documents and audio files can be only grouped in an album with" @@ -1465,38 +1599,38 @@ msgid "" "returned." msgstr "" -#: aiogram.types.message.Message.answer_media_group:9 -#: aiogram.types.message.Message.reply_media_group:10 of +#: aiogram.types.message.Message.answer_media_group:10 +#: aiogram.types.message.Message.reply_media_group:11 of msgid "Source: https://core.telegram.org/bots/api#sendmediagroup" msgstr "" -#: aiogram.types.message.Message.answer_media_group:11 -#: aiogram.types.message.Message.reply_media_group:12 of -msgid "" -"A JSON-serialized array describing messages to be sent, must include 2-10" -" items" -msgstr "" - #: aiogram.types.message.Message.answer_media_group:12 #: aiogram.types.message.Message.reply_media_group:13 of msgid "" -"Sends messages `silently `_. Users will receive a notification with no sound." +"A JSON-serialized array describing messages to be sent, must include 2-10" +" items" msgstr "" #: aiogram.types.message.Message.answer_media_group:13 #: aiogram.types.message.Message.reply_media_group:14 of +msgid "" +"Sends messages `silently `_. Users will receive a notification with no sound." +msgstr "" + +#: aiogram.types.message.Message.answer_media_group:14 +#: aiogram.types.message.Message.reply_media_group:15 of msgid "Protects the contents of the sent messages from forwarding and saving" msgstr "" -#: aiogram.types.message.Message.answer_media_group:17 -#: aiogram.types.message.Message.reply_media_group:17 of +#: aiogram.types.message.Message.answer_media_group:20 +#: aiogram.types.message.Message.reply_media_group:19 of msgid "" "instance of method " ":class:`aiogram.methods.send_media_group.SendMediaGroup`" msgstr "" -#: aiogram.types.message.Message.answer_media_group:16 of +#: aiogram.types.message.Message.answer_media_group:19 of msgid "If the messages are a reply, ID of the original message" msgstr "" @@ -1507,54 +1641,54 @@ msgid "" "will automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer:7 aiogram.types.message.Message.reply:8 +#: aiogram.types.message.Message.answer:8 aiogram.types.message.Message.reply:9 #: of msgid "" "Use this method to send text messages. On success, the sent " ":class:`aiogram.types.message.Message` is returned." msgstr "" -#: aiogram.types.message.Message.answer:9 -#: aiogram.types.message.Message.reply:10 of +#: aiogram.types.message.Message.answer:10 +#: aiogram.types.message.Message.reply:11 of msgid "Source: https://core.telegram.org/bots/api#sendmessage" msgstr "" -#: aiogram.types.message.Message.answer:11 -#: aiogram.types.message.Message.reply:12 of -msgid "Text of the message to be sent, 1-4096 characters after entities parsing" -msgstr "" - #: aiogram.types.message.Message.answer:12 -#: aiogram.types.message.Message.edit_text:13 #: aiogram.types.message.Message.reply:13 of -msgid "" -"Mode for parsing entities in the message text. See `formatting options " -"`_ for more " -"details." +msgid "Text of the message to be sent, 1-4096 characters after entities parsing" msgstr "" #: aiogram.types.message.Message.answer:13 #: aiogram.types.message.Message.edit_text:14 #: aiogram.types.message.Message.reply:14 of msgid "" -"A JSON-serialized list of special entities that appear in message text, " -"which can be specified instead of *parse_mode*" +"Mode for parsing entities in the message text. See `formatting options " +"`_ for more " +"details." msgstr "" #: aiogram.types.message.Message.answer:14 #: aiogram.types.message.Message.edit_text:15 #: aiogram.types.message.Message.reply:15 of +msgid "" +"A JSON-serialized list of special entities that appear in message text, " +"which can be specified instead of *parse_mode*" +msgstr "" + +#: aiogram.types.message.Message.answer:15 +#: aiogram.types.message.Message.edit_text:16 +#: aiogram.types.message.Message.reply:16 of msgid "Link preview generation options for the message" msgstr "" -#: aiogram.types.message.Message.answer:20 -#: aiogram.types.message.Message.edit_text:17 -#: aiogram.types.message.Message.reply:21 of +#: aiogram.types.message.Message.answer:23 +#: aiogram.types.message.Message.edit_text:18 +#: aiogram.types.message.Message.reply:23 of msgid "Disables link previews for links in this message" msgstr "" -#: aiogram.types.message.Message.answer:22 -#: aiogram.types.message.Message.reply:22 of +#: aiogram.types.message.Message.answer:25 +#: aiogram.types.message.Message.reply:24 of msgid "instance of method :class:`aiogram.methods.send_message.SendMessage`" msgstr "" @@ -1565,20 +1699,20 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_photo:7 -#: aiogram.types.message.Message.reply_photo:8 of +#: aiogram.types.message.Message.answer_photo:8 +#: aiogram.types.message.Message.reply_photo:9 of msgid "" "Use this method to send photos. On success, the sent " ":class:`aiogram.types.message.Message` is returned." msgstr "" -#: aiogram.types.message.Message.answer_photo:9 -#: aiogram.types.message.Message.reply_photo:10 of +#: aiogram.types.message.Message.answer_photo:10 +#: aiogram.types.message.Message.reply_photo:11 of msgid "Source: https://core.telegram.org/bots/api#sendphoto" msgstr "" -#: aiogram.types.message.Message.answer_photo:11 -#: aiogram.types.message.Message.reply_photo:12 of +#: aiogram.types.message.Message.answer_photo:12 +#: aiogram.types.message.Message.reply_photo:13 of msgid "" "Photo to send. Pass a file_id as String to send a photo that exists on " "the Telegram servers (recommended), pass an HTTP URL as a String for " @@ -1589,30 +1723,30 @@ msgid "" "files>`" msgstr "" -#: aiogram.types.message.Message.answer_photo:12 -#: aiogram.types.message.Message.reply_photo:13 of +#: aiogram.types.message.Message.answer_photo:13 +#: aiogram.types.message.Message.reply_photo:14 of msgid "" "Photo caption (may also be used when resending photos by *file_id*), " "0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.message.Message.answer_photo:13 -#: aiogram.types.message.Message.reply_photo:14 of +#: aiogram.types.message.Message.answer_photo:14 +#: aiogram.types.message.Message.reply_photo:15 of msgid "" "Mode for parsing entities in the photo caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.message.Message.answer_photo:15 -#: aiogram.types.message.Message.reply_photo:16 of +#: aiogram.types.message.Message.answer_photo:17 +#: aiogram.types.message.Message.reply_photo:18 of msgid "" "Pass :code:`True` if the photo needs to be covered with a spoiler " "animation" msgstr "" -#: aiogram.types.message.Message.answer_photo:22 -#: aiogram.types.message.Message.reply_photo:22 of +#: aiogram.types.message.Message.answer_photo:26 +#: aiogram.types.message.Message.reply_photo:25 of msgid "instance of method :class:`aiogram.methods.send_photo.SendPhoto`" msgstr "" @@ -1623,101 +1757,114 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_poll:7 -#: aiogram.types.message.Message.reply_poll:8 of +#: aiogram.types.message.Message.answer_poll:8 +#: aiogram.types.message.Message.reply_poll:9 of msgid "" "Use this method to send a native poll. On success, the sent " ":class:`aiogram.types.message.Message` is returned." msgstr "" -#: aiogram.types.message.Message.answer_poll:9 -#: aiogram.types.message.Message.reply_poll:10 of +#: aiogram.types.message.Message.answer_poll:10 +#: aiogram.types.message.Message.reply_poll:11 of msgid "Source: https://core.telegram.org/bots/api#sendpoll" msgstr "" -#: aiogram.types.message.Message.answer_poll:11 -#: aiogram.types.message.Message.reply_poll:12 of -msgid "Poll question, 1-300 characters" -msgstr "" - #: aiogram.types.message.Message.answer_poll:12 #: aiogram.types.message.Message.reply_poll:13 of -msgid "" -"A JSON-serialized list of answer options, 2-10 strings 1-100 characters " -"each" +msgid "Poll question, 1-300 characters" msgstr "" #: aiogram.types.message.Message.answer_poll:13 #: aiogram.types.message.Message.reply_poll:14 of -msgid ":code:`True`, if the poll needs to be anonymous, defaults to :code:`True`" +msgid "A JSON-serialized list of 2-10 answer options" msgstr "" #: aiogram.types.message.Message.answer_poll:14 #: aiogram.types.message.Message.reply_poll:15 of -msgid "Poll type, 'quiz' or 'regular', defaults to 'regular'" +msgid "" +"Mode for parsing entities in the question. See `formatting options " +"`_ for more " +"details. Currently, only custom emoji entities are allowed" msgstr "" #: aiogram.types.message.Message.answer_poll:15 #: aiogram.types.message.Message.reply_poll:16 of msgid "" -":code:`True`, if the poll allows multiple answers, ignored for polls in " -"quiz mode, defaults to :code:`False`" +"A JSON-serialized list of special entities that appear in the poll " +"question. It can be specified instead of *question_parse_mode*" msgstr "" #: aiogram.types.message.Message.answer_poll:16 #: aiogram.types.message.Message.reply_poll:17 of +msgid ":code:`True`, if the poll needs to be anonymous, defaults to :code:`True`" +msgstr "" + +#: aiogram.types.message.Message.answer_poll:17 +#: aiogram.types.message.Message.reply_poll:18 of +msgid "Poll type, 'quiz' or 'regular', defaults to 'regular'" +msgstr "" + +#: aiogram.types.message.Message.answer_poll:18 +#: aiogram.types.message.Message.reply_poll:19 of +msgid "" +":code:`True`, if the poll allows multiple answers, ignored for polls in " +"quiz mode, defaults to :code:`False`" +msgstr "" + +#: aiogram.types.message.Message.answer_poll:19 +#: aiogram.types.message.Message.reply_poll:20 of msgid "" "0-based identifier of the correct answer option, required for polls in " "quiz mode" msgstr "" -#: aiogram.types.message.Message.answer_poll:17 -#: aiogram.types.message.Message.reply_poll:18 of +#: aiogram.types.message.Message.answer_poll:20 +#: aiogram.types.message.Message.reply_poll:21 of msgid "" "Text that is shown when a user chooses an incorrect answer or taps on the" " lamp icon in a quiz-style poll, 0-200 characters with at most 2 line " "feeds after entities parsing" msgstr "" -#: aiogram.types.message.Message.answer_poll:18 -#: aiogram.types.message.Message.reply_poll:19 of +#: aiogram.types.message.Message.answer_poll:21 +#: aiogram.types.message.Message.reply_poll:22 of msgid "" "Mode for parsing entities in the explanation. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.message.Message.answer_poll:19 -#: aiogram.types.message.Message.reply_poll:20 of +#: aiogram.types.message.Message.answer_poll:22 +#: aiogram.types.message.Message.reply_poll:23 of msgid "" "A JSON-serialized list of special entities that appear in the poll " -"explanation, which can be specified instead of *parse_mode*" +"explanation. It can be specified instead of *explanation_parse_mode*" msgstr "" -#: aiogram.types.message.Message.answer_poll:20 -#: aiogram.types.message.Message.reply_poll:21 of +#: aiogram.types.message.Message.answer_poll:23 +#: aiogram.types.message.Message.reply_poll:24 of msgid "" "Amount of time in seconds the poll will be active after creation, 5-600. " "Can't be used together with *close_date*." msgstr "" -#: aiogram.types.message.Message.answer_poll:21 -#: aiogram.types.message.Message.reply_poll:22 of +#: aiogram.types.message.Message.answer_poll:24 +#: aiogram.types.message.Message.reply_poll:25 of msgid "" "Point in time (Unix timestamp) when the poll will be automatically " "closed. Must be at least 5 and no more than 600 seconds in the future. " "Can't be used together with *open_period*." msgstr "" -#: aiogram.types.message.Message.answer_poll:22 -#: aiogram.types.message.Message.reply_poll:23 of +#: aiogram.types.message.Message.answer_poll:25 +#: aiogram.types.message.Message.reply_poll:26 of msgid "" "Pass :code:`True` if the poll needs to be immediately closed. This can be" " useful for poll preview." msgstr "" -#: aiogram.types.message.Message.answer_poll:29 -#: aiogram.types.message.Message.reply_poll:29 of +#: aiogram.types.message.Message.answer_poll:34 +#: aiogram.types.message.Message.reply_poll:33 of msgid "instance of method :class:`aiogram.methods.send_poll.SendPoll`" msgstr "" @@ -1728,21 +1875,21 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_dice:7 -#: aiogram.types.message.Message.reply_dice:8 of +#: aiogram.types.message.Message.answer_dice:8 +#: aiogram.types.message.Message.reply_dice:9 of msgid "" "Use this method to send an animated emoji that will display a random " "value. On success, the sent :class:`aiogram.types.message.Message` is " "returned." msgstr "" -#: aiogram.types.message.Message.answer_dice:9 -#: aiogram.types.message.Message.reply_dice:10 of +#: aiogram.types.message.Message.answer_dice:10 +#: aiogram.types.message.Message.reply_dice:11 of msgid "Source: https://core.telegram.org/bots/api#senddice" msgstr "" -#: aiogram.types.message.Message.answer_dice:11 -#: aiogram.types.message.Message.reply_dice:12 of +#: aiogram.types.message.Message.answer_dice:12 +#: aiogram.types.message.Message.reply_dice:13 of msgid "" "Emoji on which the dice throw animation is based. Currently, must be one " "of '🎲', '🎯', '🏀', '⚽', '🎳', or '🎰'. Dice can have values 1-6 for '🎲', '🎯'" @@ -1750,13 +1897,13 @@ msgid "" "to '🎲'" msgstr "" -#: aiogram.types.message.Message.answer_dice:13 -#: aiogram.types.message.Message.reply_dice:14 of +#: aiogram.types.message.Message.answer_dice:14 +#: aiogram.types.message.Message.reply_dice:15 of msgid "Protects the contents of the sent message from forwarding" msgstr "" -#: aiogram.types.message.Message.answer_dice:18 -#: aiogram.types.message.Message.reply_dice:18 of +#: aiogram.types.message.Message.answer_dice:21 +#: aiogram.types.message.Message.reply_dice:20 of msgid "instance of method :class:`aiogram.methods.send_dice.SendDice`" msgstr "" @@ -1767,8 +1914,8 @@ msgid "" "will automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_sticker:7 -#: aiogram.types.message.Message.reply_sticker:8 of +#: aiogram.types.message.Message.answer_sticker:8 +#: aiogram.types.message.Message.reply_sticker:9 of msgid "" "Use this method to send static .WEBP, `animated " "`_ .TGS, or `video " @@ -1777,29 +1924,29 @@ msgid "" "returned." msgstr "" -#: aiogram.types.message.Message.answer_sticker:9 -#: aiogram.types.message.Message.reply_sticker:10 of +#: aiogram.types.message.Message.answer_sticker:10 +#: aiogram.types.message.Message.reply_sticker:11 of msgid "Source: https://core.telegram.org/bots/api#sendsticker" msgstr "" -#: aiogram.types.message.Message.answer_sticker:11 -#: aiogram.types.message.Message.reply_sticker:12 of -msgid "" -"Sticker to send. Pass a file_id as String to send a file that exists on " -"the Telegram servers (recommended), pass an HTTP URL as a String for " -"Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP " -"or .TGS sticker using multipart/form-data. :ref:`More information on " -"Sending Files » `. Video stickers can only be sent by a " -"file_id. Animated stickers can't be sent via an HTTP URL." -msgstr "" - #: aiogram.types.message.Message.answer_sticker:12 #: aiogram.types.message.Message.reply_sticker:13 of +msgid "" +"Sticker to send. Pass a file_id as String to send a file that exists on " +"the Telegram servers (recommended), pass an HTTP URL as a String for " +"Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP," +" .TGS, or .WEBM sticker using multipart/form-data. :ref:`More information" +" on Sending Files » `. Video and animated stickers can't " +"be sent via an HTTP URL." +msgstr "" + +#: aiogram.types.message.Message.answer_sticker:13 +#: aiogram.types.message.Message.reply_sticker:14 of msgid "Emoji associated with the sticker; only for just uploaded stickers" msgstr "" -#: aiogram.types.message.Message.answer_sticker:19 -#: aiogram.types.message.Message.reply_sticker:19 of +#: aiogram.types.message.Message.answer_sticker:22 +#: aiogram.types.message.Message.reply_sticker:21 of msgid "instance of method :class:`aiogram.methods.send_sticker.SendSticker`" msgstr "" @@ -1810,65 +1957,65 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_venue:7 -#: aiogram.types.message.Message.reply_venue:8 of +#: aiogram.types.message.Message.answer_venue:8 +#: aiogram.types.message.Message.reply_venue:9 of msgid "" "Use this method to send information about a venue. On success, the sent " ":class:`aiogram.types.message.Message` is returned." msgstr "" -#: aiogram.types.message.Message.answer_venue:9 -#: aiogram.types.message.Message.reply_venue:10 of +#: aiogram.types.message.Message.answer_venue:10 +#: aiogram.types.message.Message.reply_venue:11 of msgid "Source: https://core.telegram.org/bots/api#sendvenue" msgstr "" -#: aiogram.types.message.Message.answer_venue:11 -#: aiogram.types.message.Message.reply_venue:12 of -msgid "Latitude of the venue" -msgstr "" - #: aiogram.types.message.Message.answer_venue:12 #: aiogram.types.message.Message.reply_venue:13 of -msgid "Longitude of the venue" +msgid "Latitude of the venue" msgstr "" #: aiogram.types.message.Message.answer_venue:13 #: aiogram.types.message.Message.reply_venue:14 of -msgid "Name of the venue" +msgid "Longitude of the venue" msgstr "" #: aiogram.types.message.Message.answer_venue:14 #: aiogram.types.message.Message.reply_venue:15 of -msgid "Address of the venue" +msgid "Name of the venue" msgstr "" #: aiogram.types.message.Message.answer_venue:15 #: aiogram.types.message.Message.reply_venue:16 of -msgid "Foursquare identifier of the venue" +msgid "Address of the venue" msgstr "" #: aiogram.types.message.Message.answer_venue:16 #: aiogram.types.message.Message.reply_venue:17 of +msgid "Foursquare identifier of the venue" +msgstr "" + +#: aiogram.types.message.Message.answer_venue:17 +#: aiogram.types.message.Message.reply_venue:18 of msgid "" "Foursquare type of the venue, if known. (For example, " "'arts_entertainment/default', 'arts_entertainment/aquarium' or " "'food/icecream'.)" msgstr "" -#: aiogram.types.message.Message.answer_venue:17 -#: aiogram.types.message.Message.reply_venue:18 of +#: aiogram.types.message.Message.answer_venue:18 +#: aiogram.types.message.Message.reply_venue:19 of msgid "Google Places identifier of the venue" msgstr "" -#: aiogram.types.message.Message.answer_venue:18 -#: aiogram.types.message.Message.reply_venue:19 of +#: aiogram.types.message.Message.answer_venue:19 +#: aiogram.types.message.Message.reply_venue:20 of msgid "" "Google Places type of the venue. (See `supported types " "`_.)" msgstr "" -#: aiogram.types.message.Message.answer_venue:25 -#: aiogram.types.message.Message.reply_venue:25 of +#: aiogram.types.message.Message.answer_venue:28 +#: aiogram.types.message.Message.reply_venue:27 of msgid "instance of method :class:`aiogram.methods.send_venue.SendVenue`" msgstr "" @@ -1879,8 +2026,8 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_video:7 -#: aiogram.types.message.Message.reply_video:8 of +#: aiogram.types.message.Message.answer_video:8 +#: aiogram.types.message.Message.reply_video:9 of msgid "" "Use this method to send video files, Telegram clients support MPEG4 " "videos (other formats may be sent as " @@ -1890,13 +2037,13 @@ msgid "" " future." msgstr "" -#: aiogram.types.message.Message.answer_video:9 -#: aiogram.types.message.Message.reply_video:10 of +#: aiogram.types.message.Message.answer_video:10 +#: aiogram.types.message.Message.reply_video:11 of msgid "Source: https://core.telegram.org/bots/api#sendvideo" msgstr "" -#: aiogram.types.message.Message.answer_video:11 -#: aiogram.types.message.Message.reply_video:12 of +#: aiogram.types.message.Message.answer_video:12 +#: aiogram.types.message.Message.reply_video:13 of msgid "" "Video to send. Pass a file_id as String to send a video that exists on " "the Telegram servers (recommended), pass an HTTP URL as a String for " @@ -1905,52 +2052,68 @@ msgid "" "files>`" msgstr "" -#: aiogram.types.message.Message.answer_video:12 -#: aiogram.types.message.Message.answer_video_note:12 -#: aiogram.types.message.Message.reply_video:13 -#: aiogram.types.message.Message.reply_video_note:13 of -msgid "Duration of sent video in seconds" -msgstr "" - #: aiogram.types.message.Message.answer_video:13 -#: aiogram.types.message.Message.reply_video:14 of -msgid "Video width" +#: aiogram.types.message.Message.answer_video_note:13 +#: aiogram.types.message.Message.reply_video:14 +#: aiogram.types.message.Message.reply_video_note:14 of +msgid "Duration of sent video in seconds" msgstr "" #: aiogram.types.message.Message.answer_video:14 #: aiogram.types.message.Message.reply_video:15 of +msgid "Video width" +msgstr "" + +#: aiogram.types.message.Message.answer_video:15 +#: aiogram.types.message.Message.reply_video:16 of msgid "Video height" msgstr "" -#: aiogram.types.message.Message.answer_video:16 -#: aiogram.types.message.Message.reply_video:17 of +#: aiogram.types.message.Message.answer_video:17 +#: aiogram.types.message.Message.reply_video:18 of +msgid "" +"Cover for the video in the message. Pass a file_id to send a file that " +"exists on the Telegram servers (recommended), pass an HTTP URL for " +"Telegram to get a file from the Internet, or pass " +"'attach://' to upload a new one using multipart/form-" +"data under name. :ref:`More information on Sending " +"Files » `" +msgstr "" + +#: aiogram.types.message.Message.answer_video:18 +#: aiogram.types.message.Message.reply_video:19 of +msgid "Start timestamp for the video in the message" +msgstr "" + +#: aiogram.types.message.Message.answer_video:19 +#: aiogram.types.message.Message.reply_video:20 of msgid "" "Video caption (may also be used when resending videos by *file_id*), " "0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.message.Message.answer_video:17 -#: aiogram.types.message.Message.reply_video:18 of +#: aiogram.types.message.Message.answer_video:20 +#: aiogram.types.message.Message.reply_video:21 of msgid "" "Mode for parsing entities in the video caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.message.Message.answer_video:19 -#: aiogram.types.message.Message.reply_video:20 of +#: aiogram.types.message.Message.answer_video:23 +#: aiogram.types.message.Message.reply_video:24 of msgid "" "Pass :code:`True` if the video needs to be covered with a spoiler " "animation" msgstr "" -#: aiogram.types.message.Message.answer_video:20 -#: aiogram.types.message.Message.reply_video:21 of +#: aiogram.types.message.Message.answer_video:24 +#: aiogram.types.message.Message.reply_video:25 of msgid "Pass :code:`True` if the uploaded video is suitable for streaming" msgstr "" -#: aiogram.types.message.Message.answer_video:27 -#: aiogram.types.message.Message.reply_video:27 of +#: aiogram.types.message.Message.answer_video:33 +#: aiogram.types.message.Message.reply_video:32 of msgid "instance of method :class:`aiogram.methods.send_video.SendVideo`" msgstr "" @@ -1962,8 +2125,8 @@ msgid "" " fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_video_note:7 -#: aiogram.types.message.Message.reply_video_note:8 of +#: aiogram.types.message.Message.answer_video_note:8 +#: aiogram.types.message.Message.reply_video_note:9 of msgid "" "As of `v.4.0 `_, " "Telegram clients support rounded square MPEG4 videos of up to 1 minute " @@ -1971,13 +2134,13 @@ msgid "" ":class:`aiogram.types.message.Message` is returned." msgstr "" -#: aiogram.types.message.Message.answer_video_note:9 -#: aiogram.types.message.Message.reply_video_note:10 of +#: aiogram.types.message.Message.answer_video_note:10 +#: aiogram.types.message.Message.reply_video_note:11 of msgid "Source: https://core.telegram.org/bots/api#sendvideonote" msgstr "" -#: aiogram.types.message.Message.answer_video_note:11 -#: aiogram.types.message.Message.reply_video_note:12 of +#: aiogram.types.message.Message.answer_video_note:12 +#: aiogram.types.message.Message.reply_video_note:13 of msgid "" "Video note to send. Pass a file_id as String to send a video note that " "exists on the Telegram servers (recommended) or upload a new video using " @@ -1985,13 +2148,13 @@ msgid "" "files>`. Sending video notes by a URL is currently unsupported" msgstr "" -#: aiogram.types.message.Message.answer_video_note:13 -#: aiogram.types.message.Message.reply_video_note:14 of +#: aiogram.types.message.Message.answer_video_note:14 +#: aiogram.types.message.Message.reply_video_note:15 of msgid "Video width and height, i.e. diameter of the video message" msgstr "" -#: aiogram.types.message.Message.answer_video_note:21 -#: aiogram.types.message.Message.reply_video_note:21 of +#: aiogram.types.message.Message.answer_video_note:24 +#: aiogram.types.message.Message.reply_video_note:23 of msgid "instance of method :class:`aiogram.methods.send_video_note.SendVideoNote`" msgstr "" @@ -2002,26 +2165,27 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.answer_voice:7 -#: aiogram.types.message.Message.reply_voice:8 of +#: aiogram.types.message.Message.answer_voice:8 +#: aiogram.types.message.Message.reply_voice:9 of msgid "" "Use this method to send audio files, if you want Telegram clients to " "display the file as a playable voice message. For this to work, your " -"audio must be in an .OGG file encoded with OPUS (other formats may be " -"sent as :class:`aiogram.types.audio.Audio` or " +"audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in" +" .M4A format (other formats may be sent as " +":class:`aiogram.types.audio.Audio` or " ":class:`aiogram.types.document.Document`). On success, the sent " ":class:`aiogram.types.message.Message` is returned. Bots can currently " "send voice messages of up to 50 MB in size, this limit may be changed in " "the future." msgstr "" -#: aiogram.types.message.Message.answer_voice:9 -#: aiogram.types.message.Message.reply_voice:10 of +#: aiogram.types.message.Message.answer_voice:10 +#: aiogram.types.message.Message.reply_voice:11 of msgid "Source: https://core.telegram.org/bots/api#sendvoice" msgstr "" -#: aiogram.types.message.Message.answer_voice:11 -#: aiogram.types.message.Message.reply_voice:12 of +#: aiogram.types.message.Message.answer_voice:12 +#: aiogram.types.message.Message.reply_voice:13 of msgid "" "Audio file to send. Pass a file_id as String to send a file that exists " "on the Telegram servers (recommended), pass an HTTP URL as a String for " @@ -2030,26 +2194,26 @@ msgid "" "files>`" msgstr "" -#: aiogram.types.message.Message.answer_voice:12 -#: aiogram.types.message.Message.reply_voice:13 of +#: aiogram.types.message.Message.answer_voice:13 +#: aiogram.types.message.Message.reply_voice:14 of msgid "Voice message caption, 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.message.Message.answer_voice:13 -#: aiogram.types.message.Message.reply_voice:14 of +#: aiogram.types.message.Message.answer_voice:14 +#: aiogram.types.message.Message.reply_voice:15 of msgid "" "Mode for parsing entities in the voice message caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.types.message.Message.answer_voice:15 -#: aiogram.types.message.Message.reply_voice:16 of +#: aiogram.types.message.Message.answer_voice:16 +#: aiogram.types.message.Message.reply_voice:17 of msgid "Duration of the voice message in seconds" msgstr "" -#: aiogram.types.message.Message.answer_voice:22 -#: aiogram.types.message.Message.reply_voice:22 of +#: aiogram.types.message.Message.answer_voice:25 +#: aiogram.types.message.Message.reply_voice:24 of msgid "instance of method :class:`aiogram.methods.send_voice.SendVoice`" msgstr "" @@ -2097,11 +2261,11 @@ msgstr "" #: aiogram.types.message.Message.copy_to:7 of msgid "" -"Use this method to copy messages of any kind. Service messages, giveaway " -"messages, giveaway winners messages, and invoice messages can't be " -"copied. A quiz :class:`aiogram.methods.poll.Poll` can be copied only if " -"the value of the field *correct_option_id* is known to the bot. The " -"method is analogous to the method " +"Use this method to copy messages of any kind. Service messages, paid " +"media messages, giveaway messages, giveaway winners messages, and invoice" +" messages can't be copied. A quiz :class:`aiogram.methods.poll.Poll` can " +"be copied only if the value of the field *correct_option_id* is known to " +"the bot. The method is analogous to the method " ":class:`aiogram.methods.forward_message.ForwardMessage`, but the copied " "message doesn't have a link to the original message. Returns the " ":class:`aiogram.types.message_id.MessageId` of the sent message on " @@ -2127,25 +2291,35 @@ msgid "" msgstr "" #: aiogram.types.message.Message.copy_to:13 of +msgid "New start timestamp for the copied video in the message" +msgstr "" + +#: aiogram.types.message.Message.copy_to:14 of msgid "" "New caption for media, 0-1024 characters after entities parsing. If not " "specified, the original caption is kept" msgstr "" -#: aiogram.types.message.Message.copy_to:14 of +#: aiogram.types.message.Message.copy_to:15 of msgid "" "Mode for parsing entities in the new caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.types.message.Message.copy_to:15 of +#: aiogram.types.message.Message.copy_to:16 of msgid "" "A JSON-serialized list of special entities that appear in the new " "caption, which can be specified instead of *parse_mode*" msgstr "" -#: aiogram.types.message.Message.copy_to:22 of +#: aiogram.types.message.Message.copy_to:17 of +msgid "" +"Pass :code:`True`, if the caption must be shown above the message media. " +"Ignored if a new caption isn't specified." +msgstr "" + +#: aiogram.types.message.Message.copy_to:25 of msgid "instance of method :class:`aiogram.methods.copy_message.CopyMessage`" msgstr "" @@ -2156,44 +2330,46 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.edit_text:7 of +#: aiogram.types.message.Message.edit_text:8 of msgid "" "Use this method to edit text and `game " "`_ messages. On success, if the" " edited message is not an inline message, the edited " ":class:`aiogram.types.message.Message` is returned, otherwise " -":code:`True` is returned." +":code:`True` is returned. Note that business messages that were not sent " +"by the bot and do not contain an inline keyboard can only be edited " +"within **48 hours** from the time they were sent." msgstr "" -#: aiogram.types.message.Message.edit_text:9 of +#: aiogram.types.message.Message.edit_text:10 of msgid "Source: https://core.telegram.org/bots/api#editmessagetext" msgstr "" -#: aiogram.types.message.Message.edit_text:11 of +#: aiogram.types.message.Message.edit_text:12 of msgid "New text of the message, 1-4096 characters after entities parsing" msgstr "" -#: aiogram.types.message.Message.delete_reply_markup:12 -#: aiogram.types.message.Message.edit_caption:11 -#: aiogram.types.message.Message.edit_live_location:13 -#: aiogram.types.message.Message.edit_media:12 -#: aiogram.types.message.Message.edit_reply_markup:11 -#: aiogram.types.message.Message.edit_text:12 -#: aiogram.types.message.Message.stop_live_location:11 of +#: aiogram.types.message.Message.delete_reply_markup:13 +#: aiogram.types.message.Message.edit_caption:12 +#: aiogram.types.message.Message.edit_live_location:14 +#: aiogram.types.message.Message.edit_media:13 +#: aiogram.types.message.Message.edit_reply_markup:12 +#: aiogram.types.message.Message.edit_text:13 +#: aiogram.types.message.Message.stop_live_location:12 of msgid "" "Required if *chat_id* and *message_id* are not specified. Identifier of " "the inline message" msgstr "" -#: aiogram.types.message.Message.edit_caption:15 -#: aiogram.types.message.Message.edit_reply_markup:12 -#: aiogram.types.message.Message.edit_text:16 of +#: aiogram.types.message.Message.edit_caption:17 +#: aiogram.types.message.Message.edit_reply_markup:13 +#: aiogram.types.message.Message.edit_text:17 of msgid "" "A JSON-serialized object for an `inline keyboard " "`_." msgstr "" -#: aiogram.types.message.Message.edit_text:18 of +#: aiogram.types.message.Message.edit_text:19 of msgid "" "instance of method " ":class:`aiogram.methods.edit_message_text.EditMessageText`" @@ -2217,11 +2393,15 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#forwardmessage" msgstr "" -#: aiogram.types.message.Message.forward:14 of -msgid "Protects the contents of the forwarded message from forwarding and saving" +#: aiogram.types.message.Message.forward:13 of +msgid "New start timestamp for the forwarded video in the message" msgstr "" #: aiogram.types.message.Message.forward:15 of +msgid "Protects the contents of the forwarded message from forwarding and saving" +msgstr "" + +#: aiogram.types.message.Message.forward:16 of msgid "instance of method :class:`aiogram.methods.forward_message.ForwardMessage`" msgstr "" @@ -2232,35 +2412,38 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.edit_media:7 of +#: aiogram.types.message.Message.edit_media:8 of msgid "" "Use this method to edit animation, audio, document, photo, or video " -"messages. If a message is part of a message album, then it can be edited " -"only to an audio for audio albums, only to a document for document albums" -" and to a photo or a video otherwise. When an inline message is edited, a" -" new file can't be uploaded; use a previously uploaded file via its " -"file_id or specify a URL. On success, if the edited message is not an " -"inline message, the edited :class:`aiogram.types.message.Message` is " -"returned, otherwise :code:`True` is returned." +"messages, or to add media to text messages. If a message is part of a " +"message album, then it can be edited only to an audio for audio albums, " +"only to a document for document albums and to a photo or a video " +"otherwise. When an inline message is edited, a new file can't be " +"uploaded; use a previously uploaded file via its file_id or specify a " +"URL. On success, if the edited message is not an inline message, the " +"edited :class:`aiogram.types.message.Message` is returned, otherwise " +":code:`True` is returned. Note that business messages that were not sent " +"by the bot and do not contain an inline keyboard can only be edited " +"within **48 hours** from the time they were sent." msgstr "" -#: aiogram.types.message.Message.edit_media:9 of +#: aiogram.types.message.Message.edit_media:10 of msgid "Source: https://core.telegram.org/bots/api#editmessagemedia" msgstr "" -#: aiogram.types.message.Message.edit_media:11 of +#: aiogram.types.message.Message.edit_media:12 of msgid "A JSON-serialized object for a new media content of the message" msgstr "" -#: aiogram.types.message.Message.edit_live_location:17 -#: aiogram.types.message.Message.edit_media:13 -#: aiogram.types.message.Message.stop_live_location:12 of +#: aiogram.types.message.Message.edit_live_location:19 +#: aiogram.types.message.Message.edit_media:14 +#: aiogram.types.message.Message.stop_live_location:13 of msgid "" "A JSON-serialized object for a new `inline keyboard " "`_." msgstr "" -#: aiogram.types.message.Message.edit_media:14 of +#: aiogram.types.message.Message.edit_media:15 of msgid "" "instance of method " ":class:`aiogram.methods.edit_message_media.EditMessageMedia`" @@ -2274,28 +2457,30 @@ msgid "" " will automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.delete_reply_markup:8 -#: aiogram.types.message.Message.edit_reply_markup:7 of +#: aiogram.types.message.Message.delete_reply_markup:9 +#: aiogram.types.message.Message.edit_reply_markup:8 of msgid "" "Use this method to edit only the reply markup of messages. On success, if" " the edited message is not an inline message, the edited " ":class:`aiogram.types.message.Message` is returned, otherwise " -":code:`True` is returned." +":code:`True` is returned. Note that business messages that were not sent " +"by the bot and do not contain an inline keyboard can only be edited " +"within **48 hours** from the time they were sent." msgstr "" -#: aiogram.types.message.Message.delete_reply_markup:10 -#: aiogram.types.message.Message.edit_reply_markup:9 of +#: aiogram.types.message.Message.delete_reply_markup:11 +#: aiogram.types.message.Message.edit_reply_markup:10 of msgid "Source: https://core.telegram.org/bots/api#editmessagereplymarkup" msgstr "" -#: aiogram.types.message.Message.delete_reply_markup:13 -#: aiogram.types.message.Message.edit_reply_markup:13 of +#: aiogram.types.message.Message.delete_reply_markup:14 +#: aiogram.types.message.Message.edit_reply_markup:14 of msgid "" "instance of method " ":class:`aiogram.methods.edit_message_reply_markup.EditMessageReplyMarkup`" msgstr "" -#: aiogram.types.message.Message.delete_reply_markup:6 of +#: aiogram.types.message.Message.delete_reply_markup:7 of msgid ":code:`reply_markup`" msgstr "" @@ -2306,7 +2491,7 @@ msgid "" " will automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.edit_live_location:7 of +#: aiogram.types.message.Message.edit_live_location:8 of msgid "" "Use this method to edit live location messages. A location can be edited " "until its *live_period* expires or editing is explicitly disabled by a " @@ -2317,31 +2502,41 @@ msgid "" ":code:`True` is returned." msgstr "" -#: aiogram.types.message.Message.edit_live_location:9 of +#: aiogram.types.message.Message.edit_live_location:10 of msgid "Source: https://core.telegram.org/bots/api#editmessagelivelocation" msgstr "" -#: aiogram.types.message.Message.edit_live_location:11 of +#: aiogram.types.message.Message.edit_live_location:12 of msgid "Latitude of new location" msgstr "" -#: aiogram.types.message.Message.edit_live_location:12 of +#: aiogram.types.message.Message.edit_live_location:13 of msgid "Longitude of new location" msgstr "" #: aiogram.types.message.Message.edit_live_location:15 of msgid "" +"New period in seconds during which the location can be updated, starting " +"from the message send date. If 0x7FFFFFFF is specified, then the location" +" can be updated forever. Otherwise, the new value must not exceed the " +"current *live_period* by more than a day, and the live location " +"expiration date must remain within the next 90 days. If not specified, " +"then *live_period* remains unchanged" +msgstr "" + +#: aiogram.types.message.Message.edit_live_location:17 of +msgid "" "Direction in which the user is moving, in degrees. Must be between 1 and " "360 if specified." msgstr "" -#: aiogram.types.message.Message.edit_live_location:16 of +#: aiogram.types.message.Message.edit_live_location:18 of msgid "" "The maximum distance for proximity alerts about approaching another chat " "member, in meters. Must be between 1 and 100000 if specified." msgstr "" -#: aiogram.types.message.Message.edit_live_location:18 of +#: aiogram.types.message.Message.edit_live_location:20 of msgid "" "instance of method " ":class:`aiogram.methods.edit_message_live_location.EditMessageLiveLocation`" @@ -2354,7 +2549,7 @@ msgid "" " will automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.stop_live_location:7 of +#: aiogram.types.message.Message.stop_live_location:8 of msgid "" "Use this method to stop updating a live location message before " "*live_period* expires. On success, if the message is not an inline " @@ -2362,11 +2557,11 @@ msgid "" "otherwise :code:`True` is returned." msgstr "" -#: aiogram.types.message.Message.stop_live_location:9 of +#: aiogram.types.message.Message.stop_live_location:10 of msgid "Source: https://core.telegram.org/bots/api#stopmessagelivelocation" msgstr "" -#: aiogram.types.message.Message.stop_live_location:13 of +#: aiogram.types.message.Message.stop_live_location:14 of msgid "" "instance of method " ":class:`aiogram.methods.stop_message_live_location.StopMessageLiveLocation`" @@ -2379,23 +2574,25 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.edit_caption:7 of +#: aiogram.types.message.Message.edit_caption:8 of msgid "" "Use this method to edit captions of messages. On success, if the edited " "message is not an inline message, the edited " ":class:`aiogram.types.message.Message` is returned, otherwise " -":code:`True` is returned." +":code:`True` is returned. Note that business messages that were not sent " +"by the bot and do not contain an inline keyboard can only be edited " +"within **48 hours** from the time they were sent." msgstr "" -#: aiogram.types.message.Message.edit_caption:9 of +#: aiogram.types.message.Message.edit_caption:10 of msgid "Source: https://core.telegram.org/bots/api#editmessagecaption" msgstr "" -#: aiogram.types.message.Message.edit_caption:12 of +#: aiogram.types.message.Message.edit_caption:13 of msgid "New caption of the message, 0-1024 characters after entities parsing" msgstr "" -#: aiogram.types.message.Message.edit_caption:13 of +#: aiogram.types.message.Message.edit_caption:14 of msgid "" "Mode for parsing entities in the message caption. See `formatting options" " `_ for more " @@ -2404,6 +2601,12 @@ msgstr "" #: aiogram.types.message.Message.edit_caption:16 of msgid "" +"Pass :code:`True`, if the caption must be shown above the message media. " +"Supported only for animation, photo and video messages." +msgstr "" + +#: aiogram.types.message.Message.edit_caption:18 of +msgid "" "instance of method " ":class:`aiogram.methods.edit_message_caption.EditMessageCaption`" msgstr "" @@ -2414,65 +2617,65 @@ msgid "" " will automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.delete:7 of +#: aiogram.types.message.Message.delete:8 of msgid "" "Use this method to delete a message, including service messages, with the" " following limitations:" msgstr "" -#: aiogram.types.message.Message.delete:9 of +#: aiogram.types.message.Message.delete:10 of msgid "A message can only be deleted if it was sent less than 48 hours ago." msgstr "" -#: aiogram.types.message.Message.delete:11 of +#: aiogram.types.message.Message.delete:12 of msgid "" "Service messages about a supergroup, channel, or forum topic creation " "can't be deleted." msgstr "" -#: aiogram.types.message.Message.delete:13 of +#: aiogram.types.message.Message.delete:14 of msgid "" "A dice message in a private chat can only be deleted if it was sent more " "than 24 hours ago." msgstr "" -#: aiogram.types.message.Message.delete:15 of +#: aiogram.types.message.Message.delete:16 of msgid "" "Bots can delete outgoing messages in private chats, groups, and " "supergroups." msgstr "" -#: aiogram.types.message.Message.delete:17 of +#: aiogram.types.message.Message.delete:18 of msgid "Bots can delete incoming messages in private chats." msgstr "" -#: aiogram.types.message.Message.delete:19 of +#: aiogram.types.message.Message.delete:20 of msgid "" "Bots granted *can_post_messages* permissions can delete outgoing messages" " in channels." msgstr "" -#: aiogram.types.message.Message.delete:21 of +#: aiogram.types.message.Message.delete:22 of msgid "" "If the bot is an administrator of a group, it can delete any message " "there." msgstr "" -#: aiogram.types.message.Message.delete:23 of +#: aiogram.types.message.Message.delete:24 of msgid "" "If the bot has *can_delete_messages* permission in a supergroup or a " "channel, it can delete any message there." msgstr "" -#: aiogram.types.message.Message.delete:25 of +#: aiogram.types.message.Message.delete:26 of msgid "Returns :code:`True` on success." msgstr "" -#: aiogram.types.message.Message.delete:27 of +#: aiogram.types.message.Message.delete:28 of msgid "Source: https://core.telegram.org/bots/api#deletemessage" msgstr "" -#: aiogram.types.message.Message.delete:29 of +#: aiogram.types.message.Message.delete:30 of msgid "instance of method :class:`aiogram.methods.delete_message.DeleteMessage`" msgstr "" @@ -2483,7 +2686,7 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.pin:7 of +#: aiogram.types.message.Message.pin:8 of msgid "" "Use this method to add a message to the list of pinned messages in a " "chat. If the chat is not a private chat, the bot must be an administrator" @@ -2492,18 +2695,18 @@ msgid "" "right in a channel. Returns :code:`True` on success." msgstr "" -#: aiogram.types.message.Message.pin:9 of +#: aiogram.types.message.Message.pin:10 of msgid "Source: https://core.telegram.org/bots/api#pinchatmessage" msgstr "" -#: aiogram.types.message.Message.pin:11 of +#: aiogram.types.message.Message.pin:12 of msgid "" "Pass :code:`True` if it is not necessary to send a notification to all " "chat members about the new pinned message. Notifications are always " "disabled in channels and private chats." msgstr "" -#: aiogram.types.message.Message.pin:12 of +#: aiogram.types.message.Message.pin:13 of msgid "" "instance of method " ":class:`aiogram.methods.pin_chat_message.PinChatMessage`" @@ -2516,7 +2719,7 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.unpin:7 of +#: aiogram.types.message.Message.unpin:8 of msgid "" "Use this method to remove a message from the list of pinned messages in a" " chat. If the chat is not a private chat, the bot must be an " @@ -2526,11 +2729,11 @@ msgid "" ":code:`True` on success." msgstr "" -#: aiogram.types.message.Message.unpin:9 of +#: aiogram.types.message.Message.unpin:10 of msgid "Source: https://core.telegram.org/bots/api#unpinchatmessage" msgstr "" -#: aiogram.types.message.Message.unpin:11 of +#: aiogram.types.message.Message.unpin:12 of msgid "" "instance of method " ":class:`aiogram.methods.unpin_chat_message.UnpinChatMessage`" @@ -2549,6 +2752,12 @@ msgid "if set, a private URL is returned even for a public chat" msgstr "" #: aiogram.types.message.Message.get_url:6 of +msgid "" +"if set, adds chat thread id to URL and returns like " +"https://t.me/username/thread_id/message_id" +msgstr "" + +#: aiogram.types.message.Message.get_url:7 of msgid "string with full message URL" msgstr "" @@ -2559,36 +2768,95 @@ msgid "" "automatically fill method attributes:" msgstr "" -#: aiogram.types.message.Message.react:7 of +#: aiogram.types.message.Message.react:8 of msgid "" "Use this method to change the chosen reactions on a message. Service " -"messages can't be reacted to. Automatically forwarded messages from a " -"channel to its discussion group have the same available reactions as " -"messages in the channel. Returns :code:`True` on success." +"messages of some types can't be reacted to. Automatically forwarded " +"messages from a channel to its discussion group have the same available " +"reactions as messages in the channel. Bots can't use paid reactions. " +"Returns :code:`True` on success." msgstr "" -#: aiogram.types.message.Message.react:9 of +#: aiogram.types.message.Message.react:10 of msgid "Source: https://core.telegram.org/bots/api#setmessagereaction" msgstr "" -#: aiogram.types.message.Message.react:11 of -msgid "" -"New list of reaction types to set on the message. Currently, as non-" -"premium users, bots can set up to one reaction per message. A custom " -"emoji reaction can be used if it is either already present on the message" -" or explicitly allowed by chat administrators." -msgstr "" - #: aiogram.types.message.Message.react:12 of -msgid "Pass :code:`True` to set the reaction with a big animation" +msgid "" +"A JSON-serialized list of reaction types to set on the message. " +"Currently, as non-premium users, bots can set up to one reaction per " +"message. A custom emoji reaction can be used if it is either already " +"present on the message or explicitly allowed by chat administrators. Paid" +" reactions can't be used by bots." msgstr "" #: aiogram.types.message.Message.react:13 of +msgid "Pass :code:`True` to set the reaction with a big animation" +msgstr "" + +#: aiogram.types.message.Message.react:14 of msgid "" "instance of method " ":class:`aiogram.methods.set_message_reaction.SetMessageReaction`" msgstr "" +#: aiogram.types.message.Message.answer_paid_media:1 +#: aiogram.types.message.Message.reply_paid_media:1 of +msgid "" +"Shortcut for method " +":class:`aiogram.methods.send_paid_media.SendPaidMedia` will automatically" +" fill method attributes:" +msgstr "" + +#: aiogram.types.message.Message.answer_paid_media:8 +#: aiogram.types.message.Message.reply_paid_media:9 of +msgid "" +"Use this method to send paid media. On success, the sent " +":class:`aiogram.types.message.Message` is returned." +msgstr "" + +#: aiogram.types.message.Message.answer_paid_media:10 +#: aiogram.types.message.Message.reply_paid_media:11 of +msgid "Source: https://core.telegram.org/bots/api#sendpaidmedia" +msgstr "" + +#: aiogram.types.message.Message.answer_paid_media:12 +#: aiogram.types.message.Message.reply_paid_media:13 of +msgid "" +"The number of Telegram Stars that must be paid to buy access to the " +"media; 1-2500" +msgstr "" + +#: aiogram.types.message.Message.answer_paid_media:13 +#: aiogram.types.message.Message.reply_paid_media:14 of +msgid "A JSON-serialized array describing the media to be sent; up to 10 items" +msgstr "" + +#: aiogram.types.message.Message.answer_paid_media:14 +#: aiogram.types.message.Message.reply_paid_media:15 of +msgid "" +"Bot-defined paid media payload, 0-128 bytes. This will not be displayed " +"to the user, use it for your internal processes." +msgstr "" + +#: aiogram.types.message.Message.answer_paid_media:15 +#: aiogram.types.message.Message.reply_paid_media:16 of +msgid "Media caption, 0-1024 characters after entities parsing" +msgstr "" + +#: aiogram.types.message.Message.answer_paid_media:16 +#: aiogram.types.message.Message.reply_paid_media:17 of +msgid "" +"Mode for parsing entities in the media caption. See `formatting options " +"`_ for more " +"details." +msgstr "" + +#: aiogram.types.message.Message.answer_paid_media:24 +#: aiogram.types.message.Message.reply_paid_media:24 of +msgid "instance of method :class:`aiogram.methods.send_paid_media.SendPaidMedia`" +msgstr "" + #~ msgid "Reply with animation" #~ msgstr "" @@ -2785,3 +3053,263 @@ msgstr "" #~ "be forwarded. On success, the sent " #~ ":class:`aiogram.types.message.Message` is returned." #~ msgstr "" + +#~ msgid "Unique message identifier inside this chat" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Sender of the message; empty" +#~ " for messages sent to channels. For" +#~ " backward compatibility, the field contains" +#~ " a fake sender user in non-" +#~ "channel chats, if the message was " +#~ "sent on behalf of a chat." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Sender of the message, sent" +#~ " on behalf of a chat. For " +#~ "example, the channel itself for channel" +#~ " posts, the supergroup itself for " +#~ "messages from anonymous group administrators," +#~ " the linked channel for messages " +#~ "automatically forwarded to the discussion " +#~ "group. For backward compatibility, the " +#~ "field *from* contains a fake sender " +#~ "user in non-channel chats, if the" +#~ " message was sent on behalf of " +#~ "a chat." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Caption for the animation, " +#~ "audio, document, photo, video or voice" +#~ msgstr "" + +#~ msgid ":code:`reply_to_message_id`" +#~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, `custom reply keyboard " +#~ "`_, " +#~ "instructions to remove reply keyboard or" +#~ " to force a reply from the " +#~ "user." +#~ msgstr "" + +#~ msgid "" +#~ "Bot-defined invoice payload, 1-128 " +#~ "bytes. This will not be displayed " +#~ "to the user, use for your internal" +#~ " processes." +#~ msgstr "" + +#~ msgid "" +#~ "Payment provider token, obtained via " +#~ "`@BotFather `_" +#~ msgstr "" + +#~ msgid "" +#~ "Three-letter ISO 4217 currency code, " +#~ "see `more on currencies " +#~ "`_" +#~ msgstr "" + +#~ msgid "" +#~ "Price breakdown, a JSON-serialized list" +#~ " of components (e.g. product price, " +#~ "tax, discount, delivery cost, delivery " +#~ "tax, bonus, etc.)" +#~ msgstr "" + +#~ msgid "" +#~ "The maximum accepted amount for tips " +#~ "in the *smallest units* of the " +#~ "currency (integer, **not** float/double). For" +#~ " example, for a maximum tip of " +#~ ":code:`US$ 1.45` pass :code:`max_tip_amount =" +#~ " 145`. See the *exp* parameter in " +#~ "`currencies.json " +#~ "`_, it" +#~ " shows the number of digits past " +#~ "the decimal point for each currency " +#~ "(2 for the majority of currencies). " +#~ "Defaults to 0" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's full name to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's phone number to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's email address to complete the " +#~ "order" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if you require the " +#~ "user's shipping address to complete the" +#~ " order" +#~ msgstr "" + +#~ msgid "Pass :code:`True` if the user's phone number should be sent to provider" +#~ msgstr "" + +#~ msgid "" +#~ "Pass :code:`True` if the user's email" +#~ " address should be sent to provider" +#~ msgstr "" + +#~ msgid "Pass :code:`True` if the final price depends on the shipping method" +#~ msgstr "" + +#~ msgid "" +#~ "Period in seconds for which the " +#~ "location will be updated (see `Live " +#~ "Locations `_," +#~ " should be between 60 and 86400." +#~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized list of answer " +#~ "options, 2-10 strings 1-100 characters " +#~ "each" +#~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized list of special " +#~ "entities that appear in the poll " +#~ "explanation, which can be specified " +#~ "instead of *parse_mode*" +#~ msgstr "" + +#~ msgid "" +#~ "Sticker to send. Pass a file_id as" +#~ " String to send a file that " +#~ "exists on the Telegram servers " +#~ "(recommended), pass an HTTP URL as " +#~ "a String for Telegram to get a " +#~ ".WEBP sticker from the Internet, or " +#~ "upload a new .WEBP or .TGS sticker" +#~ " using multipart/form-data. :ref:`More " +#~ "information on Sending Files » " +#~ "`. Video stickers can only" +#~ " be sent by a file_id. Animated " +#~ "stickers can't be sent via an HTTP" +#~ " URL." +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to send audio " +#~ "files, if you want Telegram clients " +#~ "to display the file as a playable" +#~ " voice message. For this to work, " +#~ "your audio must be in an .OGG " +#~ "file encoded with OPUS (other formats" +#~ " may be sent as " +#~ ":class:`aiogram.types.audio.Audio` or " +#~ ":class:`aiogram.types.document.Document`). On success, " +#~ "the sent :class:`aiogram.types.message.Message` is" +#~ " returned. Bots can currently send " +#~ "voice messages of up to 50 MB " +#~ "in size, this limit may be changed" +#~ " in the future." +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to copy messages " +#~ "of any kind. Service messages, giveaway" +#~ " messages, giveaway winners messages, and" +#~ " invoice messages can't be copied. A" +#~ " quiz :class:`aiogram.methods.poll.Poll` can be" +#~ " copied only if the value of " +#~ "the field *correct_option_id* is known " +#~ "to the bot. The method is " +#~ "analogous to the method " +#~ ":class:`aiogram.methods.forward_message.ForwardMessage`, but " +#~ "the copied message doesn't have a " +#~ "link to the original message. Returns" +#~ " the :class:`aiogram.types.message_id.MessageId` of " +#~ "the sent message on success." +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to edit text and" +#~ " `game `_ " +#~ "messages. On success, if the edited " +#~ "message is not an inline message, " +#~ "the edited :class:`aiogram.types.message.Message` is" +#~ " returned, otherwise :code:`True` is " +#~ "returned." +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to edit animation, " +#~ "audio, document, photo, or video " +#~ "messages. If a message is part of" +#~ " a message album, then it can " +#~ "be edited only to an audio for " +#~ "audio albums, only to a document " +#~ "for document albums and to a photo" +#~ " or a video otherwise. When an " +#~ "inline message is edited, a new " +#~ "file can't be uploaded; use a " +#~ "previously uploaded file via its file_id" +#~ " or specify a URL. On success, " +#~ "if the edited message is not an" +#~ " inline message, the edited " +#~ ":class:`aiogram.types.message.Message` is returned, " +#~ "otherwise :code:`True` is returned." +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to edit only the" +#~ " reply markup of messages. On " +#~ "success, if the edited message is " +#~ "not an inline message, the edited " +#~ ":class:`aiogram.types.message.Message` is returned, " +#~ "otherwise :code:`True` is returned." +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to edit captions " +#~ "of messages. On success, if the " +#~ "edited message is not an inline " +#~ "message, the edited " +#~ ":class:`aiogram.types.message.Message` is returned, " +#~ "otherwise :code:`True` is returned." +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to change the " +#~ "chosen reactions on a message. Service" +#~ " messages can't be reacted to. " +#~ "Automatically forwarded messages from a " +#~ "channel to its discussion group have " +#~ "the same available reactions as messages" +#~ " in the channel. Returns :code:`True` " +#~ "on success." +#~ msgstr "" + +#~ msgid "" +#~ "New list of reaction types to set" +#~ " on the message. Currently, as " +#~ "non-premium users, bots can set up" +#~ " to one reaction per message. A " +#~ "custom emoji reaction can be used " +#~ "if it is either already present on" +#~ " the message or explicitly allowed by" +#~ " chat administrators." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/message_entity.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/message_entity.po index db1cb80e..6003aee6 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/message_entity.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/message_entity.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -34,14 +34,16 @@ msgstr "" #: ../../docstring aiogram.types.message_entity.MessageEntity.type:1 of msgid "" "Type of the entity. Currently, can be 'mention' (:code:`@username`), " -"'hashtag' (:code:`#hashtag`), 'cashtag' (:code:`$USD`), 'bot_command' " +"'hashtag' (:code:`#hashtag` or :code:`#hashtag@chatusername`), 'cashtag' " +"(:code:`$USD` or :code:`$USD@chatusername`), 'bot_command' " "(:code:`/start@jobs_bot`), 'url' (:code:`https://telegram.org`), 'email' " "(:code:`do-not-reply@telegram.org`), 'phone_number' " "(:code:`+1-212-555-0123`), 'bold' (**bold text**), 'italic' (*italic " "text*), 'underline' (underlined text), 'strikethrough' (strikethrough " "text), 'spoiler' (spoiler message), 'blockquote' (block quotation), " -"'code' (monowidth string), 'pre' (monowidth block), 'text_link' (for " -"clickable text URLs), 'text_mention' (for users `without usernames " +"'expandable_blockquote' (collapsed-by-default block quotation), 'code' " +"(monowidth string), 'pre' (monowidth block), 'text_link' (for clickable " +"text URLs), 'text_mention' (for users `without usernames " "`_), 'custom_emoji' (for " "inline custom emoji stickers)" msgstr "" @@ -105,3 +107,23 @@ msgstr "" #~ "mentions>`_), 'custom_emoji' (for inline " #~ "custom emoji stickers)" #~ msgstr "" + +#~ msgid "" +#~ "Type of the entity. Currently, can " +#~ "be 'mention' (:code:`@username`), 'hashtag' " +#~ "(:code:`#hashtag`), 'cashtag' (:code:`$USD`), " +#~ "'bot_command' (:code:`/start@jobs_bot`), 'url' " +#~ "(:code:`https://telegram.org`), 'email' (:code:`do-" +#~ "not-reply@telegram.org`), 'phone_number' " +#~ "(:code:`+1-212-555-0123`), 'bold' (**bold text**)," +#~ " 'italic' (*italic text*), 'underline' " +#~ "(underlined text), 'strikethrough' (strikethrough" +#~ " text), 'spoiler' (spoiler message), " +#~ "'blockquote' (block quotation), 'code' " +#~ "(monowidth string), 'pre' (monowidth block)," +#~ " 'text_link' (for clickable text URLs), " +#~ "'text_mention' (for users `without usernames" +#~ " `_), " +#~ "'custom_emoji' (for inline custom emoji " +#~ "stickers)" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/message_id.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/message_id.po index fd2da80c..3af35158 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/message_id.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/message_id.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/message_id.rst:3 msgid "MessageId" @@ -30,5 +30,13 @@ msgid "Source: https://core.telegram.org/bots/api#messageid" msgstr "" #: ../../docstring aiogram.types.message_id.MessageId.message_id:1 of -msgid "Unique message identifier" +msgid "" +"Unique message identifier. In specific instances (e.g., message " +"containing a video sent to a big chat), the server might automatically " +"schedule a message instead of sending it immediately. In such cases, this" +" field will be 0 and the relevant message will be unusable until it is " +"actually sent" msgstr "" + +#~ msgid "Unique message identifier" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media.po new file mode 100644 index 00000000..93c9b9ef --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media.po @@ -0,0 +1,45 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/paid_media.rst:3 +msgid "PaidMedia" +msgstr "" + +#: aiogram.types.paid_media.PaidMedia:1 of +msgid "This object describes paid media. Currently, it can be one of" +msgstr "" + +#: aiogram.types.paid_media.PaidMedia:3 of +msgid ":class:`aiogram.types.paid_media_preview.PaidMediaPreview`" +msgstr "" + +#: aiogram.types.paid_media.PaidMedia:4 of +msgid ":class:`aiogram.types.paid_media_photo.PaidMediaPhoto`" +msgstr "" + +#: aiogram.types.paid_media.PaidMedia:5 of +msgid ":class:`aiogram.types.paid_media_video.PaidMediaVideo`" +msgstr "" + +#: aiogram.types.paid_media.PaidMedia:7 of +msgid "Source: https://core.telegram.org/bots/api#paidmedia" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_info.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_info.po new file mode 100644 index 00000000..9758db21 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_info.po @@ -0,0 +1,41 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/paid_media_info.rst:3 +msgid "PaidMediaInfo" +msgstr "" + +#: aiogram.types.paid_media_info.PaidMediaInfo:1 of +msgid "Describes the paid media added to a message." +msgstr "" + +#: aiogram.types.paid_media_info.PaidMediaInfo:3 of +msgid "Source: https://core.telegram.org/bots/api#paidmediainfo" +msgstr "" + +#: ../../docstring aiogram.types.paid_media_info.PaidMediaInfo.star_count:1 of +msgid "The number of Telegram Stars that must be paid to buy access to the media" +msgstr "" + +#: ../../docstring aiogram.types.paid_media_info.PaidMediaInfo.paid_media:1 of +msgid "Information about the paid media" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_photo.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_photo.po new file mode 100644 index 00000000..bc7c63c6 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_photo.po @@ -0,0 +1,41 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/paid_media_photo.rst:3 +msgid "PaidMediaPhoto" +msgstr "" + +#: aiogram.types.paid_media_photo.PaidMediaPhoto:1 of +msgid "The paid media is a photo." +msgstr "" + +#: aiogram.types.paid_media_photo.PaidMediaPhoto:3 of +msgid "Source: https://core.telegram.org/bots/api#paidmediaphoto" +msgstr "" + +#: ../../docstring aiogram.types.paid_media_photo.PaidMediaPhoto.type:1 of +msgid "Type of the paid media, always 'photo'" +msgstr "" + +#: ../../docstring aiogram.types.paid_media_photo.PaidMediaPhoto.photo:1 of +msgid "The photo" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_preview.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_preview.po new file mode 100644 index 00000000..aa69616e --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_preview.po @@ -0,0 +1,51 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/paid_media_preview.rst:3 +msgid "PaidMediaPreview" +msgstr "" + +#: aiogram.types.paid_media_preview.PaidMediaPreview:1 of +msgid "The paid media isn't available before the payment." +msgstr "" + +#: aiogram.types.paid_media_preview.PaidMediaPreview:3 of +msgid "Source: https://core.telegram.org/bots/api#paidmediapreview" +msgstr "" + +#: ../../docstring aiogram.types.paid_media_preview.PaidMediaPreview.type:1 of +msgid "Type of the paid media, always 'preview'" +msgstr "" + +#: ../../docstring aiogram.types.paid_media_preview.PaidMediaPreview.width:1 of +msgid "*Optional*. Media width as defined by the sender" +msgstr "" + +#: ../../docstring aiogram.types.paid_media_preview.PaidMediaPreview.height:1 +#: of +msgid "*Optional*. Media height as defined by the sender" +msgstr "" + +#: ../../docstring aiogram.types.paid_media_preview.PaidMediaPreview.duration:1 +#: of +msgid "*Optional*. Duration of the media in seconds as defined by the sender" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_purchased.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_purchased.po new file mode 100644 index 00000000..f6886b47 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_purchased.po @@ -0,0 +1,44 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/paid_media_purchased.rst:3 +msgid "PaidMediaPurchased" +msgstr "" + +#: aiogram.types.paid_media_purchased.PaidMediaPurchased:1 of +msgid "This object contains information about a paid media purchase." +msgstr "" + +#: aiogram.types.paid_media_purchased.PaidMediaPurchased:3 of +msgid "Source: https://core.telegram.org/bots/api#paidmediapurchased" +msgstr "" + +#: ../../docstring +#: aiogram.types.paid_media_purchased.PaidMediaPurchased.from_user:1 of +msgid "User who purchased the media" +msgstr "" + +#: ../../docstring +#: aiogram.types.paid_media_purchased.PaidMediaPurchased.paid_media_payload:1 +#: of +msgid "Bot-specified paid media payload" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_video.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_video.po new file mode 100644 index 00000000..25ec20ac --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/paid_media_video.po @@ -0,0 +1,41 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/paid_media_video.rst:3 +msgid "PaidMediaVideo" +msgstr "" + +#: aiogram.types.paid_media_video.PaidMediaVideo:1 of +msgid "The paid media is a video." +msgstr "" + +#: aiogram.types.paid_media_video.PaidMediaVideo:3 of +msgid "Source: https://core.telegram.org/bots/api#paidmediavideo" +msgstr "" + +#: ../../docstring aiogram.types.paid_media_video.PaidMediaVideo.type:1 of +msgid "Type of the paid media, always 'video'" +msgstr "" + +#: ../../docstring aiogram.types.paid_media_video.PaidMediaVideo.video:1 of +msgid "The video" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/poll.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/poll.po index 34ce17a6..2f29a679 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/poll.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/poll.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/poll.rst:3 msgid "Poll" @@ -61,6 +61,12 @@ msgstr "" msgid ":code:`True`, if the poll allows multiple answers" msgstr "" +#: ../../docstring aiogram.types.poll.Poll.question_entities:1 of +msgid "" +"*Optional*. Special entities that appear in the *question*. Currently, " +"only custom emoji entities are allowed in poll questions" +msgstr "" + #: ../../docstring aiogram.types.poll.Poll.correct_option_id:1 of msgid "" "*Optional*. 0-based identifier of the correct answer option. Available " diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/poll_option.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/poll_option.po index 27ecd197..e6b4c3bc 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/poll_option.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/poll_option.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/poll_option.rst:3 msgid "PollOption" @@ -36,3 +36,9 @@ msgstr "" #: ../../docstring aiogram.types.poll_option.PollOption.voter_count:1 of msgid "Number of users that voted for this option" msgstr "" + +#: ../../docstring aiogram.types.poll_option.PollOption.text_entities:1 of +msgid "" +"*Optional*. Special entities that appear in the option *text*. Currently," +" only custom emoji entities are allowed in poll option texts" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/pre_checkout_query.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/pre_checkout_query.po index 59009813..d0034254 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/pre_checkout_query.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/pre_checkout_query.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-06 16:52+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/pre_checkout_query.rst:3 msgid "PreCheckoutQuery" @@ -42,7 +42,8 @@ msgstr "" #: of msgid "" "Three-letter ISO 4217 `currency `_ code" +"#supported-currencies>`_ code, or 'XTR' for payments in `Telegram Stars " +"`_" msgstr "" #: ../../docstring @@ -58,7 +59,7 @@ msgstr "" #: ../../docstring #: aiogram.types.pre_checkout_query.PreCheckoutQuery.invoice_payload:1 of -msgid "Bot specified invoice payload" +msgid "Bot-specified invoice payload" msgstr "" #: ../../docstring @@ -96,7 +97,7 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#answerprecheckoutquery" msgstr "" -#: aiogram.types.pre_checkout_query.PreCheckoutQuery.answer of +#: ../../api/types/pre_checkout_query.rst msgid "Parameters" msgstr "" @@ -117,7 +118,7 @@ msgid "" " user." msgstr "" -#: aiogram.types.pre_checkout_query.PreCheckoutQuery.answer of +#: ../../api/types/pre_checkout_query.rst msgid "Returns" msgstr "" @@ -126,3 +127,12 @@ msgid "" "instance of method " ":class:`aiogram.methods.answer_pre_checkout_query.AnswerPreCheckoutQuery`" msgstr "" + +#~ msgid "" +#~ "Three-letter ISO 4217 `currency " +#~ "`_" +#~ " code" +#~ msgstr "" + +#~ msgid "Bot specified invoice payload" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/prepared_inline_message.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/prepared_inline_message.po new file mode 100644 index 00000000..2dae0a46 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/prepared_inline_message.po @@ -0,0 +1,46 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/prepared_inline_message.rst:3 +msgid "PreparedInlineMessage" +msgstr "" + +#: aiogram.types.prepared_inline_message.PreparedInlineMessage:1 of +msgid "Describes an inline message to be sent by a user of a Mini App." +msgstr "" + +#: aiogram.types.prepared_inline_message.PreparedInlineMessage:3 of +msgid "Source: https://core.telegram.org/bots/api#preparedinlinemessage" +msgstr "" + +#: ../../docstring +#: aiogram.types.prepared_inline_message.PreparedInlineMessage.id:1 of +msgid "Unique identifier of the prepared message" +msgstr "" + +#: ../../docstring +#: aiogram.types.prepared_inline_message.PreparedInlineMessage.expiration_date:1 +#: of +msgid "" +"Expiration date of the prepared message, in Unix time. Expired prepared " +"messages can no longer be used" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/reaction_type.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/reaction_type.po index 5ec39eb1..bf4000d0 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/reaction_type.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/reaction_type.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -36,6 +36,10 @@ msgstr "" msgid ":class:`aiogram.types.reaction_type_custom_emoji.ReactionTypeCustomEmoji`" msgstr "" -#: aiogram.types.reaction_type.ReactionType:6 of +#: aiogram.types.reaction_type.ReactionType:5 of +msgid ":class:`aiogram.types.reaction_type_paid.ReactionTypePaid`" +msgstr "" + +#: aiogram.types.reaction_type.ReactionType:7 of msgid "Source: https://core.telegram.org/bots/api#reactiontype" msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/reaction_type_paid.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/reaction_type_paid.po new file mode 100644 index 00000000..0e095220 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/reaction_type_paid.po @@ -0,0 +1,37 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/reaction_type_paid.rst:3 +msgid "ReactionTypePaid" +msgstr "" + +#: aiogram.types.reaction_type_paid.ReactionTypePaid:1 of +msgid "The reaction is paid." +msgstr "" + +#: aiogram.types.reaction_type_paid.ReactionTypePaid:3 of +msgid "Source: https://core.telegram.org/bots/api#reactiontypepaid" +msgstr "" + +#: ../../docstring aiogram.types.reaction_type_paid.ReactionTypePaid.type:1 of +msgid "Type of the reaction, always 'paid'" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/refunded_payment.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/refunded_payment.po new file mode 100644 index 00000000..3d55596e --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/refunded_payment.po @@ -0,0 +1,68 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/refunded_payment.rst:3 +msgid "RefundedPayment" +msgstr "" + +#: aiogram.types.refunded_payment.RefundedPayment:1 of +msgid "This object contains basic information about a refunded payment." +msgstr "" + +#: aiogram.types.refunded_payment.RefundedPayment:3 of +msgid "Source: https://core.telegram.org/bots/api#refundedpayment" +msgstr "" + +#: ../../docstring aiogram.types.refunded_payment.RefundedPayment.currency:1 of +msgid "" +"Three-letter ISO 4217 `currency `_ code, or 'XTR' for payments in `Telegram Stars " +"`_. Currently, always 'XTR'" +msgstr "" + +#: ../../docstring +#: aiogram.types.refunded_payment.RefundedPayment.total_amount:1 of +msgid "" +"Total refunded price in the *smallest units* of the currency (integer, " +"**not** float/double). For example, for a price of :code:`US$ 1.45`, " +":code:`total_amount = 145`. See the *exp* parameter in `currencies.json " +"`_, it shows the" +" number of digits past the decimal point for each currency (2 for the " +"majority of currencies)." +msgstr "" + +#: ../../docstring +#: aiogram.types.refunded_payment.RefundedPayment.invoice_payload:1 of +msgid "Bot-specified invoice payload" +msgstr "" + +#: ../../docstring +#: aiogram.types.refunded_payment.RefundedPayment.telegram_payment_charge_id:1 +#: of +msgid "Telegram payment identifier" +msgstr "" + +#: ../../docstring +#: aiogram.types.refunded_payment.RefundedPayment.provider_payment_charge_id:1 +#: of +msgid "*Optional*. Provider payment identifier" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_keyboard_markup.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_keyboard_markup.po index 4f2b1f86..082de65b 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_keyboard_markup.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_keyboard_markup.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-30 22:28+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/reply_keyboard_markup.rst:3 msgid "ReplyKeyboardMarkup" @@ -27,7 +27,8 @@ msgid "" "`_ with reply options " "(see `Introduction to bots " "`_ for details and " -"examples)." +"examples). Not supported in channels and for messages sent on behalf of a" +" Telegram Business account." msgstr "" #: aiogram.types.reply_keyboard_markup.ReplyKeyboardMarkup:3 of @@ -83,8 +84,8 @@ msgid "" "*Optional*. Use this parameter if you want to show the keyboard to " "specific users only. Targets: 1) users that are @mentioned in the *text* " "of the :class:`aiogram.types.message.Message` object; 2) if the bot's " -"message is a reply (has *reply_to_message_id*), sender of the original " -"message." +"message is a reply to a message in the same chat and forum topic, sender " +"of the original message." msgstr "" #~ msgid "" @@ -94,3 +95,23 @@ msgstr "" #~ "bots `_ for " #~ "details and examples)." #~ msgstr "" + +#~ msgid "" +#~ "This object represents a `custom " +#~ "keyboard `_" +#~ " with reply options (see `Introduction " +#~ "to bots " +#~ "`_ for " +#~ "details and examples)." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Use this parameter if you" +#~ " want to show the keyboard to " +#~ "specific users only. Targets: 1) users" +#~ " that are @mentioned in the *text*" +#~ " of the :class:`aiogram.types.message.Message` " +#~ "object; 2) if the bot's message is" +#~ " a reply (has *reply_to_message_id*), " +#~ "sender of the original message." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_keyboard_remove.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_keyboard_remove.po index 26e7d05c..c9ec03f4 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_keyboard_remove.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_keyboard_remove.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/reply_keyboard_remove.rst:3 msgid "ReplyKeyboardRemove" @@ -28,7 +28,9 @@ msgid "" "default, custom keyboards are displayed until a new keyboard is sent by a" " bot. An exception is made for one-time keyboards that are hidden " "immediately after the user presses a button (see " -":class:`aiogram.types.reply_keyboard_markup.ReplyKeyboardMarkup`)." +":class:`aiogram.types.reply_keyboard_markup.ReplyKeyboardMarkup`). Not " +"supported in channels and for messages sent on behalf of a Telegram " +"Business account." msgstr "" #: aiogram.types.reply_keyboard_remove.ReplyKeyboardRemove:3 of @@ -50,6 +52,31 @@ msgid "" "*Optional*. Use this parameter if you want to remove the keyboard for " "specific users only. Targets: 1) users that are @mentioned in the *text* " "of the :class:`aiogram.types.message.Message` object; 2) if the bot's " -"message is a reply (has *reply_to_message_id*), sender of the original " -"message." +"message is a reply to a message in the same chat and forum topic, sender " +"of the original message." msgstr "" + +#~ msgid "" +#~ "Upon receiving a message with this " +#~ "object, Telegram clients will remove the" +#~ " current custom keyboard and display " +#~ "the default letter-keyboard. By default," +#~ " custom keyboards are displayed until " +#~ "a new keyboard is sent by a " +#~ "bot. An exception is made for " +#~ "one-time keyboards that are hidden " +#~ "immediately after the user presses a " +#~ "button (see " +#~ ":class:`aiogram.types.reply_keyboard_markup.ReplyKeyboardMarkup`)." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Use this parameter if you" +#~ " want to remove the keyboard for " +#~ "specific users only. Targets: 1) users" +#~ " that are @mentioned in the *text*" +#~ " of the :class:`aiogram.types.message.Message` " +#~ "object; 2) if the bot's message is" +#~ " a reply (has *reply_to_message_id*), " +#~ "sender of the original message." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_parameters.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_parameters.po index 8268c89d..a278dcf0 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_parameters.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/reply_parameters.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -43,7 +43,8 @@ msgstr "" msgid "" "*Optional*. If the message to be replied to is from a different chat, " "unique identifier for the chat or username of the channel (in the format " -":code:`@channelusername`)" +":code:`@channelusername`). Not supported for messages sent on behalf of a" +" business account." msgstr "" #: ../../docstring @@ -51,8 +52,9 @@ msgstr "" #: of msgid "" "*Optional*. Pass :code:`True` if the message should be sent even if the " -"specified message to be replied to is not found; can be used only for " -"replies in the same chat and forum topic." +"specified message to be replied to is not found. Always :code:`False` for" +" replies in another chat or forum topic. Always :code:`True` for messages" +" sent on behalf of a business account." msgstr "" #: ../../docstring aiogram.types.reply_parameters.ReplyParameters.quote:1 of @@ -85,3 +87,20 @@ msgid "" "*Optional*. Position of the quote in the original message in UTF-16 code " "units" msgstr "" + +#~ msgid "" +#~ "*Optional*. If the message to be " +#~ "replied to is from a different " +#~ "chat, unique identifier for the chat " +#~ "or username of the channel (in the" +#~ " format :code:`@channelusername`)" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Pass :code:`True` if the " +#~ "message should be sent even if the" +#~ " specified message to be replied to" +#~ " is not found; can be used only" +#~ " for replies in the same chat " +#~ "and forum topic." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state.po new file mode 100644 index 00000000..87fa31ce --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state.po @@ -0,0 +1,47 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/revenue_withdrawal_state.rst:3 +msgid "RevenueWithdrawalState" +msgstr "" + +#: aiogram.types.revenue_withdrawal_state.RevenueWithdrawalState:1 of +msgid "" +"This object describes the state of a revenue withdrawal operation. " +"Currently, it can be one of" +msgstr "" + +#: aiogram.types.revenue_withdrawal_state.RevenueWithdrawalState:3 of +msgid ":class:`aiogram.types.revenue_withdrawal_state_pending.RevenueWithdrawalStatePending`" +msgstr "" + +#: aiogram.types.revenue_withdrawal_state.RevenueWithdrawalState:4 of +msgid ":class:`aiogram.types.revenue_withdrawal_state_succeeded.RevenueWithdrawalStateSucceeded`" +msgstr "" + +#: aiogram.types.revenue_withdrawal_state.RevenueWithdrawalState:5 of +msgid ":class:`aiogram.types.revenue_withdrawal_state_failed.RevenueWithdrawalStateFailed`" +msgstr "" + +#: aiogram.types.revenue_withdrawal_state.RevenueWithdrawalState:7 of +msgid "Source: https://core.telegram.org/bots/api#revenuewithdrawalstate" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_failed.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_failed.po new file mode 100644 index 00000000..cfca0093 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_failed.po @@ -0,0 +1,41 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/revenue_withdrawal_state_failed.rst:3 +msgid "RevenueWithdrawalStateFailed" +msgstr "" + +#: aiogram.types.revenue_withdrawal_state_failed.RevenueWithdrawalStateFailed:1 +#: of +msgid "The withdrawal failed and the transaction was refunded." +msgstr "" + +#: aiogram.types.revenue_withdrawal_state_failed.RevenueWithdrawalStateFailed:3 +#: of +msgid "Source: https://core.telegram.org/bots/api#revenuewithdrawalstatefailed" +msgstr "" + +#: ../../docstring +#: aiogram.types.revenue_withdrawal_state_failed.RevenueWithdrawalStateFailed.type:1 +#: of +msgid "Type of the state, always 'failed'" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_pending.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_pending.po new file mode 100644 index 00000000..dc9b61af --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_pending.po @@ -0,0 +1,41 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/revenue_withdrawal_state_pending.rst:3 +msgid "RevenueWithdrawalStatePending" +msgstr "" + +#: aiogram.types.revenue_withdrawal_state_pending.RevenueWithdrawalStatePending:1 +#: of +msgid "The withdrawal is in progress." +msgstr "" + +#: aiogram.types.revenue_withdrawal_state_pending.RevenueWithdrawalStatePending:3 +#: of +msgid "Source: https://core.telegram.org/bots/api#revenuewithdrawalstatepending" +msgstr "" + +#: ../../docstring +#: aiogram.types.revenue_withdrawal_state_pending.RevenueWithdrawalStatePending.type:1 +#: of +msgid "Type of the state, always 'pending'" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_succeeded.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_succeeded.po new file mode 100644 index 00000000..353604c8 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/revenue_withdrawal_state_succeeded.po @@ -0,0 +1,53 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/revenue_withdrawal_state_succeeded.rst:3 +msgid "RevenueWithdrawalStateSucceeded" +msgstr "" + +#: aiogram.types.revenue_withdrawal_state_succeeded.RevenueWithdrawalStateSucceeded:1 +#: of +msgid "The withdrawal succeeded." +msgstr "" + +#: aiogram.types.revenue_withdrawal_state_succeeded.RevenueWithdrawalStateSucceeded:3 +#: of +msgid "Source: https://core.telegram.org/bots/api#revenuewithdrawalstatesucceeded" +msgstr "" + +#: ../../docstring +#: aiogram.types.revenue_withdrawal_state_succeeded.RevenueWithdrawalStateSucceeded.type:1 +#: of +msgid "Type of the state, always 'succeeded'" +msgstr "" + +#: ../../docstring +#: aiogram.types.revenue_withdrawal_state_succeeded.RevenueWithdrawalStateSucceeded.date:1 +#: of +msgid "Date the withdrawal was completed in Unix time" +msgstr "" + +#: ../../docstring +#: aiogram.types.revenue_withdrawal_state_succeeded.RevenueWithdrawalStateSucceeded.url:1 +#: of +msgid "An HTTPS URL that can be used to see transaction details" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/shared_user.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/shared_user.po new file mode 100644 index 00000000..3a7e12b6 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/shared_user.po @@ -0,0 +1,66 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/shared_user.rst:3 +msgid "SharedUser" +msgstr "" + +#: aiogram.types.shared_user.SharedUser:1 of +msgid "" +"This object contains information about a user that was shared with the " +"bot using a " +":class:`aiogram.types.keyboard_button_request_users.KeyboardButtonRequestUsers`" +" button." +msgstr "" + +#: aiogram.types.shared_user.SharedUser:3 of +msgid "Source: https://core.telegram.org/bots/api#shareduser" +msgstr "" + +#: ../../docstring aiogram.types.shared_user.SharedUser.user_id:1 of +msgid "" +"Identifier of the shared user. This number may have more than 32 " +"significant bits and some programming languages may have " +"difficulty/silent defects in interpreting it. But it has at most 52 " +"significant bits, so 64-bit integers or double-precision float types are " +"safe for storing these identifiers. The bot may not have access to the " +"user and could be unable to use this identifier, unless the user is " +"already known to the bot by some other means." +msgstr "" + +#: ../../docstring aiogram.types.shared_user.SharedUser.first_name:1 of +msgid "*Optional*. First name of the user, if the name was requested by the bot" +msgstr "" + +#: ../../docstring aiogram.types.shared_user.SharedUser.last_name:1 of +msgid "*Optional*. Last name of the user, if the name was requested by the bot" +msgstr "" + +#: ../../docstring aiogram.types.shared_user.SharedUser.username:1 of +msgid "*Optional*. Username of the user, if the username was requested by the bot" +msgstr "" + +#: ../../docstring aiogram.types.shared_user.SharedUser.photo:1 of +msgid "" +"*Optional*. Available sizes of the chat photo, if the photo was requested" +" by the bot" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/shipping_query.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/shipping_query.po index b17b8c63..68672cf7 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/shipping_query.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/shipping_query.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-06 16:52+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/shipping_query.rst:3 msgid "ShippingQuery" @@ -39,7 +39,7 @@ msgstr "" #: ../../docstring aiogram.types.shipping_query.ShippingQuery.invoice_payload:1 #: of -msgid "Bot specified invoice payload" +msgid "Bot-specified invoice payload" msgstr "" #: ../../docstring @@ -71,7 +71,7 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#answershippingquery" msgstr "" -#: aiogram.types.shipping_query.ShippingQuery.answer of +#: ../../api/types/shipping_query.rst msgid "Parameters" msgstr "" @@ -91,12 +91,12 @@ msgstr "" #: aiogram.types.shipping_query.ShippingQuery.answer:12 of msgid "" "Required if *ok* is :code:`False`. Error message in human readable form " -"that explains why it is impossible to complete the order (e.g. \"Sorry, " +"that explains why it is impossible to complete the order (e.g. 'Sorry, " "delivery to your desired address is unavailable'). Telegram will display " "this message to the user." msgstr "" -#: aiogram.types.shipping_query.ShippingQuery.answer of +#: ../../api/types/shipping_query.rst msgid "Returns" msgstr "" @@ -105,3 +105,16 @@ msgid "" "instance of method " ":class:`aiogram.methods.answer_shipping_query.AnswerShippingQuery`" msgstr "" + +#~ msgid "Bot specified invoice payload" +#~ msgstr "" + +#~ msgid "" +#~ "Required if *ok* is :code:`False`. Error" +#~ " message in human readable form that" +#~ " explains why it is impossible to " +#~ "complete the order (e.g. \"Sorry, " +#~ "delivery to your desired address is " +#~ "unavailable'). Telegram will display this " +#~ "message to the user." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/star_transaction.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/star_transaction.po new file mode 100644 index 00000000..85efb121 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/star_transaction.po @@ -0,0 +1,75 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/star_transaction.rst:3 +msgid "StarTransaction" +msgstr "" + +#: aiogram.types.star_transaction.StarTransaction:1 of +msgid "" +"Describes a Telegram Star transaction. Note that if the buyer initiates a" +" chargeback with the payment provider from whom they acquired Stars " +"(e.g., Apple, Google) following this transaction, the refunded Stars will" +" be deducted from the bot's balance. This is outside of Telegram's " +"control." +msgstr "" + +#: aiogram.types.star_transaction.StarTransaction:3 of +msgid "Source: https://core.telegram.org/bots/api#startransaction" +msgstr "" + +#: ../../docstring aiogram.types.star_transaction.StarTransaction.id:1 of +msgid "" +"Unique identifier of the transaction. Coincides with the identifier of " +"the original transaction for refund transactions. Coincides with " +"*SuccessfulPayment.telegram_payment_charge_id* for successful incoming " +"payments from users." +msgstr "" + +#: ../../docstring aiogram.types.star_transaction.StarTransaction.amount:1 of +msgid "Integer amount of Telegram Stars transferred by the transaction" +msgstr "" + +#: ../../docstring aiogram.types.star_transaction.StarTransaction.date:1 of +msgid "Date the transaction was created in Unix time" +msgstr "" + +#: ../../docstring +#: aiogram.types.star_transaction.StarTransaction.nanostar_amount:1 of +msgid "" +"*Optional*. The number of 1/1000000000 shares of Telegram Stars " +"transferred by the transaction; from 0 to 999999999" +msgstr "" + +#: ../../docstring aiogram.types.star_transaction.StarTransaction.source:1 of +msgid "" +"*Optional*. Source of an incoming transaction (e.g., a user purchasing " +"goods or services, Fragment refunding a failed withdrawal). Only for " +"incoming transactions" +msgstr "" + +#: ../../docstring aiogram.types.star_transaction.StarTransaction.receiver:1 of +msgid "" +"*Optional*. Receiver of an outgoing transaction (e.g., a user for a " +"purchase refund, Fragment for a withdrawal). Only for outgoing " +"transactions" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/star_transactions.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/star_transactions.po new file mode 100644 index 00000000..56b20b93 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/star_transactions.po @@ -0,0 +1,38 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/star_transactions.rst:3 +msgid "StarTransactions" +msgstr "" + +#: aiogram.types.star_transactions.StarTransactions:1 of +msgid "Contains a list of Telegram Star transactions." +msgstr "" + +#: aiogram.types.star_transactions.StarTransactions:3 of +msgid "Source: https://core.telegram.org/bots/api#startransactions" +msgstr "" + +#: ../../docstring +#: aiogram.types.star_transactions.StarTransactions.transactions:1 of +msgid "The list of transactions" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/sticker_set.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/sticker_set.po index 6e76be18..121d9faf 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/sticker_set.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/sticker_set.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/sticker_set.rst:3 msgid "StickerSet" @@ -43,22 +43,27 @@ msgid "" "'custom_emoji'" msgstr "" +#: ../../docstring aiogram.types.sticker_set.StickerSet.stickers:1 of +msgid "List of all set stickers" +msgstr "" + +#: ../../docstring aiogram.types.sticker_set.StickerSet.thumbnail:1 of +msgid "*Optional*. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format" +msgstr "" + #: ../../docstring aiogram.types.sticker_set.StickerSet.is_animated:1 of msgid "" ":code:`True`, if the sticker set contains `animated stickers " "`_" msgstr "" +#: ../../docstring aiogram.types.sticker_set.StickerSet.is_animated:3 +#: aiogram.types.sticker_set.StickerSet.is_video:3 of +msgid "https://core.telegram.org/bots/api-changelog#march-31-2024" +msgstr "" + #: ../../docstring aiogram.types.sticker_set.StickerSet.is_video:1 of msgid "" ":code:`True`, if the sticker set contains `video stickers " "`_" msgstr "" - -#: ../../docstring aiogram.types.sticker_set.StickerSet.stickers:1 of -msgid "List of all set stickers" -msgstr "" - -#: ../../docstring aiogram.types.sticker_set.StickerSet.thumb:1 of -msgid "*Optional*. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format" -msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/story.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/story.po index 92bf0e3a..f940ed4d 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/story.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/story.po @@ -8,25 +8,37 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-26 23:17+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/story.rst:3 msgid "Story" msgstr "" #: aiogram.types.story.Story:1 of -msgid "" -"This object represents a message about a forwarded story in the chat. " -"Currently holds no information." +msgid "This object represents a story." msgstr "" #: aiogram.types.story.Story:3 of msgid "Source: https://core.telegram.org/bots/api#story" msgstr "" + +#: ../../docstring aiogram.types.story.Story.chat:1 of +msgid "Chat that posted the story" +msgstr "" + +#: ../../docstring aiogram.types.story.Story.id:1 of +msgid "Unique identifier for the story in the chat" +msgstr "" + +#~ msgid "" +#~ "This object represents a message about" +#~ " a forwarded story in the chat. " +#~ "Currently holds no information." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/successful_payment.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/successful_payment.po index d6152e59..7082c319 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/successful_payment.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/successful_payment.po @@ -8,21 +8,25 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/successful_payment.rst:3 msgid "SuccessfulPayment" msgstr "" #: aiogram.types.successful_payment.SuccessfulPayment:1 of -msgid "This object contains basic information about a successful payment." +msgid "" +"This object contains basic information about a successful payment. Note " +"that if the buyer initiates a chargeback with the relevant payment " +"provider following this transaction, the funds may be debited from your " +"balance. This is outside of Telegram's control." msgstr "" #: aiogram.types.successful_payment.SuccessfulPayment:3 of @@ -33,7 +37,8 @@ msgstr "" #: aiogram.types.successful_payment.SuccessfulPayment.currency:1 of msgid "" "Three-letter ISO 4217 `currency `_ code" +"#supported-currencies>`_ code, or 'XTR' for payments in `Telegram Stars " +"`_" msgstr "" #: ../../docstring @@ -49,7 +54,7 @@ msgstr "" #: ../../docstring #: aiogram.types.successful_payment.SuccessfulPayment.invoice_payload:1 of -msgid "Bot specified invoice payload" +msgid "Bot-specified invoice payload" msgstr "" #: ../../docstring @@ -64,6 +69,24 @@ msgstr "" msgid "Provider payment identifier" msgstr "" +#: ../../docstring +#: aiogram.types.successful_payment.SuccessfulPayment.subscription_expiration_date:1 +#: of +msgid "" +"*Optional*. Expiration date of the subscription, in Unix time; for " +"recurring payments only" +msgstr "" + +#: ../../docstring +#: aiogram.types.successful_payment.SuccessfulPayment.is_recurring:1 of +msgid "*Optional*. True, if the payment is a recurring payment for a subscription" +msgstr "" + +#: ../../docstring +#: aiogram.types.successful_payment.SuccessfulPayment.is_first_recurring:1 of +msgid "*Optional*. True, if the payment is the first payment for a subscription" +msgstr "" + #: ../../docstring #: aiogram.types.successful_payment.SuccessfulPayment.shipping_option_id:1 of msgid "*Optional*. Identifier of the shipping option chosen by the user" @@ -73,3 +96,15 @@ msgstr "" #: aiogram.types.successful_payment.SuccessfulPayment.order_info:1 of msgid "*Optional*. Order information provided by the user" msgstr "" + +#~ msgid "This object contains basic information about a successful payment." +#~ msgstr "" + +#~ msgid "" +#~ "Three-letter ISO 4217 `currency " +#~ "`_" +#~ " code" +#~ msgstr "" + +#~ msgid "Bot specified invoice payload" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner.po new file mode 100644 index 00000000..553ba900 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner.po @@ -0,0 +1,63 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/transaction_partner.rst:3 +msgid "TransactionPartner" +msgstr "" + +#: aiogram.types.transaction_partner.TransactionPartner:1 of +msgid "" +"This object describes the source of a transaction, or its recipient for " +"outgoing transactions. Currently, it can be one of" +msgstr "" + +#: aiogram.types.transaction_partner.TransactionPartner:3 of +msgid ":class:`aiogram.types.transaction_partner_user.TransactionPartnerUser`" +msgstr "" + +#: aiogram.types.transaction_partner.TransactionPartner:4 of +msgid ":class:`aiogram.types.transaction_partner_chat.TransactionPartnerChat`" +msgstr "" + +#: aiogram.types.transaction_partner.TransactionPartner:5 of +msgid ":class:`aiogram.types.transaction_partner_affiliate_program.TransactionPartnerAffiliateProgram`" +msgstr "" + +#: aiogram.types.transaction_partner.TransactionPartner:6 of +msgid ":class:`aiogram.types.transaction_partner_fragment.TransactionPartnerFragment`" +msgstr "" + +#: aiogram.types.transaction_partner.TransactionPartner:7 of +msgid ":class:`aiogram.types.transaction_partner_telegram_ads.TransactionPartnerTelegramAds`" +msgstr "" + +#: aiogram.types.transaction_partner.TransactionPartner:8 of +msgid ":class:`aiogram.types.transaction_partner_telegram_api.TransactionPartnerTelegramApi`" +msgstr "" + +#: aiogram.types.transaction_partner.TransactionPartner:9 of +msgid ":class:`aiogram.types.transaction_partner_other.TransactionPartnerOther`" +msgstr "" + +#: aiogram.types.transaction_partner.TransactionPartner:11 of +msgid "Source: https://core.telegram.org/bots/api#transactionpartner" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_affiliate_program.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_affiliate_program.po new file mode 100644 index 00000000..936b83f5 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_affiliate_program.po @@ -0,0 +1,59 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/transaction_partner_affiliate_program.rst:3 +msgid "TransactionPartnerAffiliateProgram" +msgstr "" + +#: aiogram.types.transaction_partner_affiliate_program.TransactionPartnerAffiliateProgram:1 +#: of +msgid "" +"Describes the affiliate program that issued the affiliate commission " +"received via this transaction." +msgstr "" + +#: aiogram.types.transaction_partner_affiliate_program.TransactionPartnerAffiliateProgram:3 +#: of +msgid "" +"Source: " +"https://core.telegram.org/bots/api#transactionpartneraffiliateprogram" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_affiliate_program.TransactionPartnerAffiliateProgram.type:1 +#: of +msgid "Type of the transaction partner, always 'affiliate_program'" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_affiliate_program.TransactionPartnerAffiliateProgram.commission_per_mille:1 +#: of +msgid "" +"The number of Telegram Stars received by the bot for each 1000 Telegram " +"Stars received by the affiliate program sponsor from referred users" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_affiliate_program.TransactionPartnerAffiliateProgram.sponsor_user:1 +#: of +msgid "*Optional*. Information about the bot that sponsored the affiliate program" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_chat.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_chat.po new file mode 100644 index 00000000..d4549612 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_chat.po @@ -0,0 +1,48 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/transaction_partner_chat.rst:3 +msgid "TransactionPartnerChat" +msgstr "" + +#: aiogram.types.transaction_partner_chat.TransactionPartnerChat:1 of +msgid "Describes a transaction with a chat." +msgstr "" + +#: aiogram.types.transaction_partner_chat.TransactionPartnerChat:3 of +msgid "Source: https://core.telegram.org/bots/api#transactionpartnerchat" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_chat.TransactionPartnerChat.type:1 of +msgid "Type of the transaction partner, always 'chat'" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_chat.TransactionPartnerChat.chat:1 of +msgid "Information about the chat" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_chat.TransactionPartnerChat.gift:1 of +msgid "*Optional*. The gift sent to the chat by the bot" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_fragment.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_fragment.po new file mode 100644 index 00000000..f9acabfb --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_fragment.po @@ -0,0 +1,45 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/transaction_partner_fragment.rst:3 +msgid "TransactionPartnerFragment" +msgstr "" + +#: aiogram.types.transaction_partner_fragment.TransactionPartnerFragment:1 of +msgid "Describes a withdrawal transaction with Fragment." +msgstr "" + +#: aiogram.types.transaction_partner_fragment.TransactionPartnerFragment:3 of +msgid "Source: https://core.telegram.org/bots/api#transactionpartnerfragment" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_fragment.TransactionPartnerFragment.type:1 +#: of +msgid "Type of the transaction partner, always 'fragment'" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_fragment.TransactionPartnerFragment.withdrawal_state:1 +#: of +msgid "*Optional*. State of the transaction if the transaction is outgoing" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_other.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_other.po new file mode 100644 index 00000000..f16ad04d --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_other.po @@ -0,0 +1,38 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/transaction_partner_other.rst:3 +msgid "TransactionPartnerOther" +msgstr "" + +#: aiogram.types.transaction_partner_other.TransactionPartnerOther:1 of +msgid "Describes a transaction with an unknown source or recipient." +msgstr "" + +#: aiogram.types.transaction_partner_other.TransactionPartnerOther:3 of +msgid "Source: https://core.telegram.org/bots/api#transactionpartnerother" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_other.TransactionPartnerOther.type:1 of +msgid "Type of the transaction partner, always 'other'" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_telegram_ads.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_telegram_ads.po new file mode 100644 index 00000000..a7839c78 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_telegram_ads.po @@ -0,0 +1,41 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/transaction_partner_telegram_ads.rst:3 +msgid "TransactionPartnerTelegramAds" +msgstr "" + +#: aiogram.types.transaction_partner_telegram_ads.TransactionPartnerTelegramAds:1 +#: of +msgid "Describes a withdrawal transaction to the Telegram Ads platform." +msgstr "" + +#: aiogram.types.transaction_partner_telegram_ads.TransactionPartnerTelegramAds:3 +#: of +msgid "Source: https://core.telegram.org/bots/api#transactionpartnertelegramads" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_telegram_ads.TransactionPartnerTelegramAds.type:1 +#: of +msgid "Type of the transaction partner, always 'telegram_ads'" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_telegram_api.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_telegram_api.po new file mode 100644 index 00000000..8159376e --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_telegram_api.po @@ -0,0 +1,51 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/transaction_partner_telegram_api.rst:3 +msgid "TransactionPartnerTelegramApi" +msgstr "" + +#: aiogram.types.transaction_partner_telegram_api.TransactionPartnerTelegramApi:1 +#: of +msgid "" +"Describes a transaction with payment for `paid broadcasting " +"`_." +msgstr "" + +#: aiogram.types.transaction_partner_telegram_api.TransactionPartnerTelegramApi:3 +#: of +msgid "Source: https://core.telegram.org/bots/api#transactionpartnertelegramapi" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_telegram_api.TransactionPartnerTelegramApi.type:1 +#: of +msgid "Type of the transaction partner, always 'telegram_api'" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_telegram_api.TransactionPartnerTelegramApi.request_count:1 +#: of +msgid "" +"The number of successful requests that exceeded regular limits and were " +"therefore billed" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_user.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_user.po new file mode 100644 index 00000000..8269167a --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/transaction_partner_user.po @@ -0,0 +1,79 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../api/types/transaction_partner_user.rst:3 +msgid "TransactionPartnerUser" +msgstr "" + +#: aiogram.types.transaction_partner_user.TransactionPartnerUser:1 of +msgid "Describes a transaction with a user." +msgstr "" + +#: aiogram.types.transaction_partner_user.TransactionPartnerUser:3 of +msgid "Source: https://core.telegram.org/bots/api#transactionpartneruser" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_user.TransactionPartnerUser.type:1 of +msgid "Type of the transaction partner, always 'user'" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_user.TransactionPartnerUser.user:1 of +msgid "Information about the user" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_user.TransactionPartnerUser.affiliate:1 of +msgid "" +"*Optional*. Information about the affiliate that received a commission " +"via this transaction" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_user.TransactionPartnerUser.invoice_payload:1 +#: of +msgid "*Optional*. Bot-specified invoice payload" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_user.TransactionPartnerUser.subscription_period:1 +#: of +msgid "*Optional*. The duration of the paid subscription" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_user.TransactionPartnerUser.paid_media:1 +#: of +msgid "*Optional*. Information about the paid media bought by the user" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_user.TransactionPartnerUser.paid_media_payload:1 +#: of +msgid "*Optional*. Bot-specified paid media payload" +msgstr "" + +#: ../../docstring +#: aiogram.types.transaction_partner_user.TransactionPartnerUser.gift:1 of +msgid "*Optional*. The gift sent to the user by the bot" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/update.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/update.po index bfc9188e..2332b7c2 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/update.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/update.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -40,8 +40,8 @@ msgstr "" #: ../../docstring aiogram.types.update.Update.update_id:1 of msgid "" "The update's unique identifier. Update identifiers start from a certain " -"positive number and increase sequentially. This ID becomes especially " -"handy if you're using `webhooks " +"positive number and increase sequentially. This identifier becomes " +"especially handy if you're using `webhooks " "`_, since it allows you to" " ignore repeated updates or to restore the correct update sequence, " "should they get out of order. If there are no new updates for at least a " @@ -56,7 +56,8 @@ msgstr "" #: ../../docstring aiogram.types.update.Update.edited_message:1 of msgid "" "*Optional*. New version of a message that is known to the bot and was " -"edited" +"edited. This update may at times be triggered by changes to message " +"fields that are either unavailable or not actively used by your bot." msgstr "" #: ../../docstring aiogram.types.update.Update.channel_post:1 of @@ -68,7 +69,26 @@ msgstr "" #: ../../docstring aiogram.types.update.Update.edited_channel_post:1 of msgid "" "*Optional*. New version of a channel post that is known to the bot and " -"was edited" +"was edited. This update may at times be triggered by changes to message " +"fields that are either unavailable or not actively used by your bot." +msgstr "" + +#: ../../docstring aiogram.types.update.Update.business_connection:1 of +msgid "" +"*Optional*. The bot was connected to or disconnected from a business " +"account, or a user edited an existing connection with the bot" +msgstr "" + +#: ../../docstring aiogram.types.update.Update.business_message:1 of +msgid "*Optional*. New message from a connected business account" +msgstr "" + +#: ../../docstring aiogram.types.update.Update.edited_business_message:1 of +msgid "*Optional*. New version of a message from a connected business account" +msgstr "" + +#: ../../docstring aiogram.types.update.Update.deleted_business_messages:1 of +msgid "*Optional*. Messages were deleted from a connected business account" msgstr "" #: ../../docstring aiogram.types.update.Update.message_reaction:1 of @@ -84,7 +104,8 @@ msgid "" "*Optional*. Reactions to a message with anonymous reactions were changed." " The bot must be an administrator in the chat and must explicitly specify" " :code:`\"message_reaction_count\"` in the list of *allowed_updates* to " -"receive these updates." +"receive these updates. The updates are grouped and can be sent with delay" +" up to a few minutes." msgstr "" #: ../../docstring aiogram.types.update.Update.inline_query:1 of @@ -118,10 +139,16 @@ msgid "" "about checkout" msgstr "" +#: ../../docstring aiogram.types.update.Update.purchased_paid_media:1 of +msgid "" +"*Optional*. A user purchased paid media with a non-empty payload sent by " +"the bot in a non-channel chat" +msgstr "" + #: ../../docstring aiogram.types.update.Update.poll:1 of msgid "" -"*Optional*. New poll state. Bots receive only updates about stopped polls" -" and polls, which are sent by the bot" +"*Optional*. New poll state. Bots receive only updates about manually " +"stopped polls and polls, which are sent by the bot" msgstr "" #: ../../docstring aiogram.types.update.Update.poll_answer:1 of @@ -168,7 +195,7 @@ msgstr "" msgid "Detect update type If update type is unknown, raise UpdateTypeLookupError" msgstr "" -#: aiogram.types.update.Update.event_type of +#: ../../api/types/update.rst msgid "Returns" msgstr "" @@ -184,3 +211,49 @@ msgstr "" #~ "'chat_member' in the list of " #~ "*allowed_updates* to receive these updates." #~ msgstr "" + +#~ msgid "" +#~ "The update's unique identifier. Update " +#~ "identifiers start from a certain " +#~ "positive number and increase sequentially. " +#~ "This ID becomes especially handy if " +#~ "you're using `webhooks " +#~ "`_, since " +#~ "it allows you to ignore repeated " +#~ "updates or to restore the correct " +#~ "update sequence, should they get out " +#~ "of order. If there are no new " +#~ "updates for at least a week, then" +#~ " identifier of the next update will" +#~ " be chosen randomly instead of " +#~ "sequentially." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. New version of a message " +#~ "that is known to the bot and " +#~ "was edited" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. New version of a channel " +#~ "post that is known to the bot " +#~ "and was edited" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. Reactions to a message with" +#~ " anonymous reactions were changed. The " +#~ "bot must be an administrator in " +#~ "the chat and must explicitly specify " +#~ ":code:`\"message_reaction_count\"` in the list " +#~ "of *allowed_updates* to receive these " +#~ "updates." +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. New poll state. Bots receive" +#~ " only updates about stopped polls and" +#~ " polls, which are sent by the " +#~ "bot" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/user.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/user.po index b7e590b3..537fe1d8 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/user.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/user.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-23 00:47+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/user.rst:3 msgid "User" @@ -90,6 +90,19 @@ msgid "" "only in :class:`aiogram.methods.get_me.GetMe`." msgstr "" +#: ../../docstring aiogram.types.user.User.can_connect_to_business:1 of +msgid "" +"*Optional*. :code:`True`, if the bot can be connected to a Telegram " +"Business account to receive its messages. Returned only in " +":class:`aiogram.methods.get_me.GetMe`." +msgstr "" + +#: ../../docstring aiogram.types.user.User.has_main_web_app:1 of +msgid "" +"*Optional*. :code:`True`, if the bot has a main Web App. Returned only in" +" :class:`aiogram.methods.get_me.GetMe`." +msgstr "" + #: aiogram.types.user.User.get_profile_photos:1 of msgid "" "Shortcut for method " @@ -111,7 +124,7 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#getuserprofilephotos" msgstr "" -#: aiogram.types.user.User.get_profile_photos of +#: ../../api/types/user.rst msgid "Parameters" msgstr "" @@ -127,7 +140,7 @@ msgid "" "accepted. Defaults to 100." msgstr "" -#: aiogram.types.user.User.get_profile_photos of +#: ../../api/types/user.rst msgid "Returns" msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/users_shared.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/users_shared.po index 3cfb884c..2306458b 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/users_shared.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/users_shared.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: uk_UA\n" @@ -40,6 +40,10 @@ msgstr "" msgid "Identifier of the request" msgstr "" +#: ../../docstring aiogram.types.users_shared.UsersShared.users:1 of +msgid "Information about users shared with the bot." +msgstr "" + #: ../../docstring aiogram.types.users_shared.UsersShared.user_ids:1 of msgid "" "Identifiers of the shared users. These numbers may have more than 32 " @@ -50,3 +54,7 @@ msgid "" "users and could be unable to use these identifiers, unless the users are " "already known to the bot by some other means." msgstr "" + +#: ../../docstring aiogram.types.users_shared.UsersShared.user_ids:3 of +msgid "https://core.telegram.org/bots/api-changelog#march-31-2024" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/video.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/video.po index d3df202b..5da7a7d3 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/video.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/video.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/video.rst:3 msgid "Video" @@ -40,27 +40,37 @@ msgid "" msgstr "" #: ../../docstring aiogram.types.video.Video.width:1 of -msgid "Video width as defined by sender" +msgid "Video width as defined by the sender" msgstr "" #: ../../docstring aiogram.types.video.Video.height:1 of -msgid "Video height as defined by sender" +msgid "Video height as defined by the sender" msgstr "" #: ../../docstring aiogram.types.video.Video.duration:1 of -msgid "Duration of the video in seconds as defined by sender" +msgid "Duration of the video in seconds as defined by the sender" msgstr "" -#: ../../docstring aiogram.types.video.Video.thumb:1 of +#: ../../docstring aiogram.types.video.Video.thumbnail:1 of msgid "*Optional*. Video thumbnail" msgstr "" +#: ../../docstring aiogram.types.video.Video.cover:1 of +msgid "*Optional*. Available sizes of the cover of the video in the message" +msgstr "" + +#: ../../docstring aiogram.types.video.Video.start_timestamp:1 of +msgid "" +"*Optional*. Timestamp in seconds from which the video will play in the " +"message" +msgstr "" + #: ../../docstring aiogram.types.video.Video.file_name:1 of -msgid "*Optional*. Original filename as defined by sender" +msgid "*Optional*. Original filename as defined by the sender" msgstr "" #: ../../docstring aiogram.types.video.Video.mime_type:1 of -msgid "*Optional*. MIME type of the file as defined by sender" +msgid "*Optional*. MIME type of the file as defined by the sender" msgstr "" #: ../../docstring aiogram.types.video.Video.file_size:1 of @@ -70,3 +80,18 @@ msgid "" "it. But it has at most 52 significant bits, so a signed 64-bit integer or" " double-precision float type are safe for storing this value." msgstr "" + +#~ msgid "Video width as defined by sender" +#~ msgstr "" + +#~ msgid "Video height as defined by sender" +#~ msgstr "" + +#~ msgid "Duration of the video in seconds as defined by sender" +#~ msgstr "" + +#~ msgid "*Optional*. Original filename as defined by sender" +#~ msgstr "" + +#~ msgid "*Optional*. MIME type of the file as defined by sender" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/video_note.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/video_note.po index e2a1f689..ea1accb2 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/video_note.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/video_note.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/video_note.rst:3 msgid "VideoNote" @@ -44,18 +44,27 @@ msgstr "" #: ../../docstring aiogram.types.video_note.VideoNote.length:1 of msgid "" -"Video width and height (diameter of the video message) as defined by " +"Video width and height (diameter of the video message) as defined by the " "sender" msgstr "" #: ../../docstring aiogram.types.video_note.VideoNote.duration:1 of -msgid "Duration of the video in seconds as defined by sender" +msgid "Duration of the video in seconds as defined by the sender" msgstr "" -#: ../../docstring aiogram.types.video_note.VideoNote.thumb:1 of +#: ../../docstring aiogram.types.video_note.VideoNote.thumbnail:1 of msgid "*Optional*. Video thumbnail" msgstr "" #: ../../docstring aiogram.types.video_note.VideoNote.file_size:1 of msgid "*Optional*. File size in bytes" msgstr "" + +#~ msgid "" +#~ "Video width and height (diameter of " +#~ "the video message) as defined by " +#~ "sender" +#~ msgstr "" + +#~ msgid "Duration of the video in seconds as defined by sender" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/voice.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/voice.po index 1f0abe93..572000d2 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/voice.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/voice.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/types/voice.rst:3 msgid "Voice" @@ -40,11 +40,11 @@ msgid "" msgstr "" #: ../../docstring aiogram.types.voice.Voice.duration:1 of -msgid "Duration of the audio in seconds as defined by sender" +msgid "Duration of the audio in seconds as defined by the sender" msgstr "" #: ../../docstring aiogram.types.voice.Voice.mime_type:1 of -msgid "*Optional*. MIME type of the file as defined by sender" +msgid "*Optional*. MIME type of the file as defined by the sender" msgstr "" #: ../../docstring aiogram.types.voice.Voice.file_size:1 of @@ -54,3 +54,9 @@ msgid "" "it. But it has at most 52 significant bits, so a signed 64-bit integer or" " double-precision float type are safe for storing this value." msgstr "" + +#~ msgid "Duration of the audio in seconds as defined by sender" +#~ msgstr "" + +#~ msgid "*Optional*. MIME type of the file as defined by sender" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/upload_file.po b/docs/locale/uk_UA/LC_MESSAGES/api/upload_file.po index 693fc1ea..b5ff8ed9 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/upload_file.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/upload_file.po @@ -7,14 +7,14 @@ msgid "" msgstr "" "Project-Id-Version: aiogram\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-07-02 15:10+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: 2022-12-13 21:40+0200\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../api/upload_file.rst:5 msgid "How to upload file?" @@ -77,16 +77,17 @@ msgstr "" "<#upload-from-url>`__" #: ../../api/upload_file.rst:23 -msgid "**Be respectful with Telegram**" +#, fuzzy +msgid "**Be respectful to Telegram**" msgstr "**Поважайте Telegram**" #: ../../api/upload_file.rst:25 #, fuzzy msgid "" -"Instances of `InputFile` are reusable. That's mean you can create " -"instance of InputFile and sent this file multiple times but Telegram does" -" not recommend to do that and when you upload file once just save their " -"`file_id` and use it in next times." +"Instances of `InputFile` are reusable. That means you can create an " +"instance of InputFile and send it multiple times. However, Telegram does " +"not recommend doing this. Instead, once you upload a file, save its " +"`file_id` and reuse that later." msgstr "" "Екземпляри `InputFile` можна використовувати повторно. Це означає, що ви " "можете створити екземпляр InputFile і надіслати цей файл кілька разів, " @@ -94,15 +95,15 @@ msgstr "" " раз, просто збережіть його `file_id` і використовуйте його наступного " "разу." -#: ../../api/upload_file.rst:31 +#: ../../api/upload_file.rst:29 msgid "Upload from file system" msgstr "Відвантаження з файлової системи" -#: ../../api/upload_file.rst:33 +#: ../../api/upload_file.rst:31 msgid "By first step you will need to import InputFile wrapper:" msgstr "Перш за все, вам потрібно буде імпортувати обгортку InputFile:" -#: ../../api/upload_file.rst:39 +#: ../../api/upload_file.rst:37 msgid "Then you can use it:" msgstr "Тепер ви можете використовувати її:" @@ -111,8 +112,7 @@ msgstr "Тепер ви можете використовувати її:" msgid "Represents object for uploading files from filesystem" msgstr "Об’єкт для відвантаження файлів із файлової системи" -#: aiogram.types.input_file.BufferedInputFile.__init__ -#: aiogram.types.input_file.FSInputFile.__init__ of +#: ../../api/upload_file.rst msgid "Parameters" msgstr "Параметри" @@ -133,11 +133,11 @@ msgstr "" msgid "Uploading chunk size" msgstr "Розмір фрагмента відвантаження" -#: ../../api/upload_file.rst:52 +#: ../../api/upload_file.rst:50 msgid "Upload from buffer" msgstr "Відвантаження з буферу" -#: ../../api/upload_file.rst:54 +#: ../../api/upload_file.rst:52 #, fuzzy msgid "" "Files can be also passed from buffer (For example you generate image " @@ -148,11 +148,11 @@ msgstr "" " за допомогою `Pillow `_ і " "хочете надіслати його в Telegram):" -#: ../../api/upload_file.rst:58 ../../api/upload_file.rst:80 +#: ../../api/upload_file.rst:56 ../../api/upload_file.rst:78 msgid "Import wrapper:" msgstr "Імпорт обгортки:" -#: ../../api/upload_file.rst:64 ../../api/upload_file.rst:86 +#: ../../api/upload_file.rst:62 ../../api/upload_file.rst:84 msgid "And then you can use it:" msgstr "Тепер ви можете використовувати її:" @@ -164,11 +164,11 @@ msgstr "Байти" msgid "Filename to be propagated to telegram." msgstr "Ім'я файлу, яке буде передано в telegram." -#: ../../api/upload_file.rst:74 +#: ../../api/upload_file.rst:72 msgid "Upload from url" msgstr "Відвантаження з URL" -#: ../../api/upload_file.rst:76 +#: ../../api/upload_file.rst:74 msgid "" "If you need to upload a file from another server, but the direct link is " "bound to your server's IP, or you want to bypass native `upload limits " diff --git a/docs/locale/uk_UA/LC_MESSAGES/changelog.po b/docs/locale/uk_UA/LC_MESSAGES/changelog.po index 6cd2eb55..a0027709 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/changelog.po +++ b/docs/locale/uk_UA/LC_MESSAGES/changelog.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -21,142 +21,1371 @@ msgstr "" msgid "Changelog" msgstr "" -#: ../../[towncrier-fragments]:2 -msgid "\\ |release| [UNRELEASED DRAFT] (2024-02-16)" +#: ../../../CHANGES.rst:20 +msgid "3.18.0 (2025-02-16)" msgstr "" -#: ../../../CHANGES.rst:23 ../../../CHANGES.rst:43 ../../../CHANGES.rst:117 -#: ../../../CHANGES.rst:206 ../../../CHANGES.rst:264 ../../../CHANGES.rst:306 -#: ../../../CHANGES.rst:469 ../../../CHANGES.rst:569 ../../../CHANGES.rst:629 -#: ../../../CHANGES.rst:680 ../../../CHANGES.rst:753 ../../../CHANGES.rst:794 -#: ../../../CHANGES.rst:832 ../../../CHANGES.rst:880 ../../../CHANGES.rst:956 -#: ../../../CHANGES.rst:989 ../../../CHANGES.rst:1020 -#: ../../[towncrier-fragments]:5 +#: ../../../CHANGES.rst:23 ../../../CHANGES.rst:70 ../../../CHANGES.rst:85 +#: ../../../CHANGES.rst:117 ../../../CHANGES.rst:179 ../../../CHANGES.rst:273 +#: ../../../CHANGES.rst:310 ../../../CHANGES.rst:349 ../../../CHANGES.rst:384 +#: ../../../CHANGES.rst:400 ../../../CHANGES.rst:448 ../../../CHANGES.rst:518 +#: ../../../CHANGES.rst:552 ../../../CHANGES.rst:569 ../../../CHANGES.rst:635 +#: ../../../CHANGES.rst:677 ../../../CHANGES.rst:697 ../../../CHANGES.rst:771 +#: ../../../CHANGES.rst:860 ../../../CHANGES.rst:918 ../../../CHANGES.rst:960 +#: ../../../CHANGES.rst:1123 ../../../CHANGES.rst:1223 +#: ../../../CHANGES.rst:1283 ../../../CHANGES.rst:1334 +#: ../../../CHANGES.rst:1407 ../../../CHANGES.rst:1448 +#: ../../../CHANGES.rst:1486 ../../../CHANGES.rst:1534 +#: ../../../CHANGES.rst:1610 ../../../CHANGES.rst:1643 +#: ../../../CHANGES.rst:1674 msgid "Features" msgstr "" -#: ../../[towncrier-fragments]:7 +#: ../../../CHANGES.rst:25 +msgid "" +"Added full support for the `Bot API 8.3 `_:" +msgstr "" + +#: ../../../CHANGES.rst:27 +msgid "" +"Added the parameter :code:`chat_id` to the method " +":class:`aiogram.methods.send_gift.SendGift`, allowing bots to send gifts " +"to channel chats." +msgstr "" + +#: ../../../CHANGES.rst:28 +msgid "" +"Added the field :code:`can_send_gift` to the class " +":class:`aiogram.types.chat_full_info.ChatFullInfo`." +msgstr "" + +#: ../../../CHANGES.rst:29 +msgid "" +"Added the class " +":class:`aiogram.types.transaction_partner_chat.TransactionPartnerChat` " +"describing transactions with chats." +msgstr "" + +#: ../../../CHANGES.rst:30 +msgid "" +"Added the fields :code:`cover` and :code:`start_timestamp` to the class " +":class:`aiogram.types.video.Video`, containing a message-specific cover " +"and a start timestamp for the video." +msgstr "" + +#: ../../../CHANGES.rst:31 +msgid "" +"Added the parameters :code:`cover` and :code:`start_timestamp` to the " +"method :class:`aiogram.methods.send_video.SendVideo`, allowing bots to " +"specify a cover and a start timestamp for the videos they send." +msgstr "" + +#: ../../../CHANGES.rst:32 +msgid "" +"Added the fields :code:`cover` and :code:`start_timestamp` to the classes" +" :class:`aiogram.types.input_media_video.InputMediaVideo` and " +":class:`aiogram.types.input_paid_media_video.InputPaidMediaVideo`, " +"allowing bots to edit video covers and start timestamps, and specify them" +" for videos in albums and paid media." +msgstr "" + +#: ../../../CHANGES.rst:33 +msgid "" +"Added the parameter :code:`video_start_timestamp` to the methods " +":class:`aiogram.methods.forward_message.ForwardMessage` and " +":class:`aiogram.methods.copy_message.CopyMessage`, allowing bots to " +"change the start timestamp for forwarded and copied videos." +msgstr "" + +#: ../../../CHANGES.rst:34 +msgid "Allowed adding reactions to most types of service messages." +msgstr "" + +#: ../../../CHANGES.rst:35 +msgid "`#1638 `_" +msgstr "" + +#: ../../../CHANGES.rst:39 ../../../CHANGES.rst:96 ../../../CHANGES.rst:226 +#: ../../../CHANGES.rst:263 ../../../CHANGES.rst:297 ../../../CHANGES.rst:363 +#: ../../../CHANGES.rst:438 ../../../CHANGES.rst:482 ../../../CHANGES.rst:527 +#: ../../../CHANGES.rst:590 ../../../CHANGES.rst:624 ../../../CHANGES.rst:658 +#: ../../../CHANGES.rst:707 ../../../CHANGES.rst:761 ../../../CHANGES.rst:782 +#: ../../../CHANGES.rst:794 ../../../CHANGES.rst:815 ../../../CHANGES.rst:884 +#: ../../../CHANGES.rst:929 ../../../CHANGES.rst:999 ../../../CHANGES.rst:1185 +#: ../../../CHANGES.rst:1248 ../../../CHANGES.rst:1297 +#: ../../../CHANGES.rst:1358 ../../../CHANGES.rst:1416 +#: ../../../CHANGES.rst:1462 ../../../CHANGES.rst:1510 +#: ../../../CHANGES.rst:1566 ../../../CHANGES.rst:1651 +#: ../../../CHANGES.rst:1683 +msgid "Bugfixes" +msgstr "" + +#: ../../../CHANGES.rst:41 +msgid "" +"Fixed endless loop while adding buttons to the :code:`KeyboardBuilder`. " +"`#1595 `_" +msgstr "" + +#: ../../../CHANGES.rst:43 +msgid "" +"Change the :code:`Downloadable` protocol to be non-writable to shut up " +"type checking that checks code that uses the :code:`bot.download(...)` " +"method `#1628 `_" +msgstr "" + +#: ../../../CHANGES.rst:45 +msgid "" +"Fix the regex pattern that finds the \"bad characters\" for deeplink " +"payload. `#1630 `_" +msgstr "" + +#: ../../../CHANGES.rst:50 ../../../CHANGES.rst:237 ../../../CHANGES.rst:489 +#: ../../../CHANGES.rst:559 ../../../CHANGES.rst:605 ../../../CHANGES.rst:667 +#: ../../../CHANGES.rst:718 ../../../CHANGES.rst:827 ../../../CHANGES.rst:897 +#: ../../../CHANGES.rst:942 ../../../CHANGES.rst:1027 ../../../CHANGES.rst:1260 +#: ../../../CHANGES.rst:1310 ../../../CHANGES.rst:1690 +msgid "Improved Documentation" +msgstr "" + +#: ../../../CHANGES.rst:52 +msgid "" +"Update :code:`data: Dict[Any, str]` to :code:`data: Dict[str, Any]` " +"`#1634 `_" +msgstr "" + +#: ../../../CHANGES.rst:54 +msgid "" +"Fix small typo in the Scenes documentation `#1640 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:58 ../../../CHANGES.rst:103 ../../../CHANGES.rst:151 +#: ../../../CHANGES.rst:254 ../../../CHANGES.rst:339 ../../../CHANGES.rst:370 +#: ../../../CHANGES.rst:498 ../../../CHANGES.rst:542 ../../../CHANGES.rst:612 +#: ../../../CHANGES.rst:732 ../../../CHANGES.rst:848 ../../../CHANGES.rst:904 +#: ../../../CHANGES.rst:1043 ../../../CHANGES.rst:1194 +#: ../../../CHANGES.rst:1271 ../../../CHANGES.rst:1324 +#: ../../../CHANGES.rst:1375 ../../../CHANGES.rst:1429 +#: ../../../CHANGES.rst:1471 ../../../CHANGES.rst:1517 +#: ../../../CHANGES.rst:1577 ../../../CHANGES.rst:1598 +#: ../../../CHANGES.rst:1621 ../../../CHANGES.rst:1658 +#: ../../../CHANGES.rst:1697 +msgid "Misc" +msgstr "" + +#: ../../../CHANGES.rst:60 +msgid "" +"Removed redundant :code:`Path` to :code:`str` convertion on file " +"download. `#1612 `_" +msgstr "" + +#: ../../../CHANGES.rst:62 +msgid "" +"Increased max :code:`redis` version support from “<5.1.0” to “<5.3.0” " +"`#1631 `_" +msgstr "" + +#: ../../../CHANGES.rst:67 +msgid "3.17.0 (2025-01-02)" +msgstr "" + +#: ../../../CHANGES.rst:72 +msgid "" +"Added full support of the `Bot API 8.2 `_" +msgstr "" + +#: ../../../CHANGES.rst:74 +msgid "" +"Added the methods :class:`aiogram.methods.verify_user.VerifyUser`, " +":class:`aiogram.methods.verify_chat.VerifyChat`, " +":class:`aiogram.methods.remove_user_verification.RemoveUserVerification` " +"and " +":class:`aiogram.methods.remove_chat_verification.RemoveChatVerification`," +" allowing bots to manage verifications on behalf of an organization." +msgstr "" + +#: ../../../CHANGES.rst:75 +msgid "" +"Added the field :code:`upgrade_star_count` to the class " +":class:`aiogram.types.gift.Gift`." +msgstr "" + +#: ../../../CHANGES.rst:76 +msgid "" +"Added the parameter :code:`pay_for_upgrade` to the method " +":class:`aiogram.methods.send_gift.SendGift`." +msgstr "" + +#: ../../../CHANGES.rst:77 +msgid "" +"Removed the field :code:`hide_url` from the class " +":class:`aiogram.types.inline_query_result_article.InlineQueryResultArticle`." +" Pass an empty string as :code:`url` instead." +msgstr "" + +#: ../../../CHANGES.rst:78 +msgid "`#1623 `_" +msgstr "" + +#: ../../../CHANGES.rst:82 +msgid "3.16.0 (2024-12-21)" +msgstr "" + +#: ../../../CHANGES.rst:87 +msgid "" +"Added full support of `Bot API 8.1 `_:" +msgstr "" + +#: ../../../CHANGES.rst:89 +msgid "" +"Added the field :code:`nanostar_amount` to the class " +":class:`aiogram.types.star_transaction.StarTransaction`." +msgstr "" + +#: ../../../CHANGES.rst:90 +msgid "" +"Added the class " +":class:`aiogram.types.transaction_partner_affiliate_program.TransactionPartnerAffiliateProgram`" +" for transactions pertaining to incoming affiliate commissions." +msgstr "" + +#: ../../../CHANGES.rst:91 +msgid "" +"Added the class :class:`aiogram.types.affiliate_info.AffiliateInfo` and " +"the field :code:`affiliate` to the class " +":class:`aiogram.types.transaction_partner_user.TransactionPartnerUser`, " +"allowing bots to identify the relevant affiliate in transactions with an " +"affiliate commission." +msgstr "" + +#: ../../../CHANGES.rst:92 +msgid "`#1617 `_" +msgstr "" + +#: ../../../CHANGES.rst:98 +msgid "" +"Corrected the exception text of " +"`aiogram.methods.base.TelegramMethod.__await__` method. `#1616 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:105 +msgid "" +"Increased max :code:`pydantic` version support from “<2.10” to “<2.11” " +"`#1607 `_" +msgstr "" + +#: ../../../CHANGES.rst:107 +msgid "" +"Fixed closing tag for :code:`tg-emoji` in the " +":class:`aiogram.utils.text_decoration.HtmlDecoration`: use the same " +"constant as for tag opening `#1608 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:109 +msgid "" +"Increased max :code:`aiohttp` version support from “<3.11” to “<3.12” " +"`#1615 `_" +msgstr "" + +#: ../../../CHANGES.rst:114 +msgid "3.15.0 (2024-11-17)" +msgstr "" + +#: ../../../CHANGES.rst:119 +msgid "" +"Added full support for `Bot API 8.0 `_" +msgstr "" + +#: ../../../CHANGES.rst:121 +msgid "" +"Added the parameter :code:`subscription_period` to the method " +":class:`aiogram.methods.create_invoice_link.CreateInvoiceLink` to support" +" the creation of links that are billed periodically." +msgstr "" + +#: ../../../CHANGES.rst:124 +msgid "" +"Added the parameter :code:`business_connection_id` to the method " +":class:`aiogram.methods.create_invoice_link.CreateInvoiceLink` to support" +" the creation of invoice links on behalf of business accounts." +msgstr "" + +#: ../../../CHANGES.rst:127 +msgid "" +"Added the fields :code:`subscription_expiration_date`, " +":code:`is_recurring` and :code:`is_first_recurring` to the class " +":class:`aiogram.types.successful_payment.SuccessfulPayment`." +msgstr "" + +#: ../../../CHANGES.rst:130 +msgid "" +"Added the method " +":class:`aiogram.methods.edit_user_star_subscription.EditUserStarSubscription`." +msgstr "" + +#: ../../../CHANGES.rst:131 +msgid "" +"Added the field :code:`subscription_period` to the class " +":class:`aiogram.types.transaction_partner_user.TransactionPartnerUser`." +msgstr "" + +#: ../../../CHANGES.rst:133 +msgid "" +"Added the method " +":class:`aiogram.methods.set_user_emoji_status.SetUserEmojiStatus`. The " +"user must allow the bot to manage their emoji status." +msgstr "" + +#: ../../../CHANGES.rst:135 +msgid "" +"Added the class " +":class:`aiogram.types.prepared_inline_message.PreparedInlineMessage` and " +"the method " +":class:`aiogram.methods.save_prepared_inline_message.SavePreparedInlineMessage`," +" allowing bots to suggest users send a specific message from a Mini App " +"via the method :class:`aiogram.methods.share_message.ShareMessage`." +msgstr "" + +#: ../../../CHANGES.rst:139 +msgid "" +"Added the classes :class:`aiogram.types.gift.Gift` and " +":class:`aiogram.types.gifts.Gifts` and the method " +":class:`aiogram.methods.get_available_gifts.GetAvailableGifts`, allowing " +"bots to get all gifts available for sending." +msgstr "" + +#: ../../../CHANGES.rst:142 +msgid "" +"Added the field :code:`gift` to the class " +":class:`aiogram.types.transaction_partner_user.TransactionPartnerUser`." +msgstr "" + +#: ../../../CHANGES.rst:144 +msgid "`#1606 `_" +msgstr "" + +#: ../../../CHANGES.rst:148 +msgid "3.14.0 (2024-11-02)" +msgstr "" + +#: ../../../CHANGES.rst:153 +msgid "" +"Checked compatibility with Python 3.13 (added to the CI/CD processes), so" +" now aiogram is totally compatible with it." +msgstr "" + +#: ../../../CHANGES.rst:156 +msgid "" +"Dropped compatibility with Python 3.8 due to this version being `EOL " +"`_." +msgstr "" + +#: ../../../CHANGES.rst:160 +msgid "" +"In some cases you will need to have the installed compiler (Rust or C++) " +"to install some of the dependencies to compile packages from source on " +"`pip install` command." +msgstr "" + +#: ../../../CHANGES.rst:163 +msgid "" +"If you are using Windows, you will need to have the `Visual Studio " +"`_ installed." +msgstr "" + +#: ../../../CHANGES.rst:164 +msgid "" +"If you are using Linux, you will need to have the `build-essential` " +"package installed." +msgstr "" + +#: ../../../CHANGES.rst:165 +msgid "" +"If you are using macOS, you will need to have the `Xcode " +"`_ installed." +msgstr "" + +#: ../../../CHANGES.rst:167 +msgid "" +"When developers of this dependencies will release new versions with " +"precompiled wheels for Windows, Linux and macOS, this action will not be " +"necessary anymore until the next version of the Python interpreter." +msgstr "" + +#: ../../../CHANGES.rst:169 +msgid "`#1589 `_" +msgstr "" + +#: ../../../CHANGES.rst:170 +msgid "" +"Added business_connection_id to the " +":class:`aiogram.types.message.Message` API methods shortcuts." +msgstr "" + +#: ../../../CHANGES.rst:172 +msgid "" +"Integrated the :code:`business_connection_id` attribute into various " +"message manipulation methods, ensuring consistent data handling. This " +"update eliminates the need to pass the :code:`business_connection_id` as " +"a parameter, instead directly accessing it from the instance attributes. " +"`#1586 `_" +msgstr "" + +#: ../../../CHANGES.rst:181 +msgid "" +"Add function ``get_value`` to all built-in storage implementations, " +"``FSMContext`` and ``SceneWizard`` `#1431 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:183 +msgid "" +"Enhanced the inheritance of handlers and actions in :ref:`Scenes " +"`. Refactored to eliminate the copying of previously connected " +"handlers and actions from parent scenes. Now, handlers are dynamically " +"rebuilt based on the current class, properly utilizing class inheritance " +"and enabling handler overrides." +msgstr "" + +#: ../../../CHANGES.rst:187 +msgid "" +"That's mean that you can now override handlers and actions in the child " +"scene, instead of copying and duplicating them. `#1583 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:189 +msgid "" +"Added full support of `Bot API 7.11 `_" +msgstr "" + +#: ../../../CHANGES.rst:191 +msgid "" +"Added the class :class:`aiogram.types.copy_text_button.CopyTextButton` " +"and the field :code:`copy_text` in the class " +":class:`aiogram.types.inline_keyboard_button.InlineKeyboardButton`, " +"allowing bots to send and receive inline buttons that copy arbitrary " +"text." +msgstr "" + +#: ../../../CHANGES.rst:195 +msgid "" +"Added the parameter :code:`allow_paid_broadcast` to the methods " +":class:`aiogram.methods.send_message.SendMessage`, " +":class:`aiogram.methods.send_photo.SendPhoto`, " +":class:`aiogram.methods.send_video.SendVideo`, " +":class:`aiogram.methods.send_animation.SendAnimation`, " +":class:`aiogram.methods.send_audio.SendAudio`, " +":class:`aiogram.methods.send_document.SendDocument`, " +":class:`aiogram.methods.send_paid_media.SendPaidMedia`, " +":class:`aiogram.methods.send_sticker.SendSticker`, " +":class:`aiogram.methods.send_video_note.SendVideoNote`, " +":class:`aiogram.methods.send_voice.SendVoice`, " +":class:`aiogram.methods.send_location.SendLocation`, " +":class:`aiogram.methods.send_venue.SendVenue`, " +":class:`aiogram.methods.send_contact.SendContact`, " +":class:`aiogram.methods.send_poll.SendPoll`, " +":class:`aiogram.methods.send_dice.SendDice`, " +":class:`aiogram.methods.send_invoice.SendInvoice`, " +":class:`aiogram.methods.send_game.SendGame`, " +":class:`aiogram.methods.send_media_group.SendMediaGroup` and " +":class:`aiogram.methods.copy_message.CopyMessage`." +msgstr "" + +#: ../../../CHANGES.rst:215 +msgid "" +"Added the class " +":class:`aiogram.types.transaction_partner_telegram_api.TransactionPartnerTelegramApi`" +" for transactions related to paid broadcasted messages." +msgstr "" + +#: ../../../CHANGES.rst:218 +msgid "" +"Introduced the ability to add media to existing text messages using the " +"method :class:`aiogram.methods.edit_message_media.EditMessageMedia`." +msgstr "" + +#: ../../../CHANGES.rst:220 +msgid "" +"Added support for hashtag and cashtag entities with a specified chat " +"username that opens a search for the relevant tag within the specified " +"chat." +msgstr "" + +#: ../../../CHANGES.rst:222 +msgid "`#1601 `_" +msgstr "" + +#: ../../../CHANGES.rst:228 +msgid "" +"Fix PytestDeprecationWarning thrown by pytest-asyncio when running the " +"tests `#1584 `_" +msgstr "" + +#: ../../../CHANGES.rst:230 +msgid "" +"Fixed customized serialization in the " +":class:`aiogram.filters.callback_data.CallbackData` factory." +msgstr "" + +#: ../../../CHANGES.rst:232 +msgid "" +"From now UUID will have 32 bytes length instead of 36 bytes (with no `-` " +"separators) in the callback data representation. `#1602 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:239 +msgid "" +"Add missing closing tag for bold. `#1599 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:244 +msgid "3.13.1 (2024-09-18)" +msgstr "" + +#: ../../../CHANGES.rst:248 +msgid "" +"**Python 3.8 End of Life**: Python 3.8 will reach its end of life (EOL) " +"soon and will no longer be supported by aiogram in the next releases (1-2" +" months ETA)." +msgstr "" + +#: ../../../CHANGES.rst:251 +msgid "" +"Please upgrade to a newer version of Python to ensure compatibility and " +"receive future updates." +msgstr "" + +#: ../../../CHANGES.rst:256 +msgid "" +"Increase max pydantic version support \"<2.9\" -> \"<2.10\" (only For " +"Python >=3.9) `#1576 `_" +msgstr "" + +#: ../../../CHANGES.rst:258 +msgid "" +"Bump aiofiles version upper bound to <24.2 `#1577 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:265 +msgid "" +"Fixed `Default` object annotation resolution using `pydantic` `#1579 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:270 +msgid "3.13.0 (2024-09-08)" +msgstr "" + +#: ../../../CHANGES.rst:275 +msgid "" +"Added updates about purchased paid media, represented by the class " +":class:`aiogram.types.paid_media_purchased.PaidMediaPurchased` and the " +"field :code:`purchased_paid_media` in the class " +":class:`aiogram.types.update.Update`." +msgstr "" + +#: ../../../CHANGES.rst:279 +msgid "" +"Added the ability to specify a payload in " +":class:`aiogram.methods.send_paid_media.SendPaidMedia` that is received " +"back by the bot in " +":class:`aiogram.types.transaction_partner_user.TransactionPartnerUser` " +"and :code:`purchased_paid_media` updates." +msgstr "" + +#: ../../../CHANGES.rst:283 +msgid "" +"Added the field :code:`prize_star_count` to the classes " +":class:`aiogram.types.giveaway_created.GiveawayCreated`, " +":class:`aiogram.types.giveaway.Giveaway`, " +":class:`aiogram.types.giveaway_winners.GiveawayWinners` and " +":class:`aiogram.types.chat_boost_source_giveaway.ChatBoostSourceGiveaway`." +msgstr "" + +#: ../../../CHANGES.rst:288 +msgid "" +"Added the field :code:`is_star_giveaway` to the class " +":class:`aiogram.types.giveaway_completed.GiveawayCompleted`." +msgstr "" + +#: ../../../CHANGES.rst:290 +msgid "`#1510 `_" +msgstr "" + +#: ../../../CHANGES.rst:291 +msgid "" +"Added missing method aliases such as `.answer()`, `.reply()`, and others " +"to `InaccessibleMessage`. This change ensures consistency and improves " +"usability by aligning the functionality of `InaccessibleMessage` with the" +" `Message` type. `#1574 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:299 +msgid "" +"Fixed link preview options to use global defaults in various types and " +"methods to use global defaults for `link_preview_options`. This change " +"ensures consistency and enhances flexibility in handling link preview " +"options across different components. `#1543 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:307 +msgid "3.12.0 (2024-08-16)" +msgstr "" + +#: ../../../CHANGES.rst:312 +msgid "" +"Added **message_thread_id** parameter to **message.get_url()**. `#1451 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:314 +msgid "" +"Added getting user from `chat_boost` with source `ChatBoostSourcePremium`" +" in `UserContextMiddleware` for `EventContext` `#1474 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:316 +msgid "" +"Added full support of `Bot API 7.8 `_" +msgstr "" + +#: ../../../CHANGES.rst:318 +msgid "Added the ability to send paid media to any chat." +msgstr "" + +#: ../../../CHANGES.rst:319 +msgid "" +"Added the parameter :code:`business_connection_id` to the method " +":class:`aiogram.methods.send_paid_media.SendPaidMedia`, allowing bots to " +"send paid media on behalf of a business account." +msgstr "" + +#: ../../../CHANGES.rst:322 +msgid "" +"Added the field :code:`paid_media` to the class " +":class:`aiogram.types.transaction_partner_user.TransactionPartnerUser` " +"for transactions involving paid media." +msgstr "" + +#: ../../../CHANGES.rst:325 +msgid "" +"Added the method " +":class:`aiogram.methods.create_chat_subscription_invite_link.CreateChatSubscriptionInviteLink`," +" allowing bots to create subscription invite links." +msgstr "" + +#: ../../../CHANGES.rst:328 +msgid "" +"Added the method " +":class:`aiogram.methods.edit_chat_subscription_invite_link.EditChatSubscriptionInviteLink`," +" allowing bots to edit the name of subscription invite links." +msgstr "" + +#: ../../../CHANGES.rst:331 +msgid "" +"Added the field :code:`until_date` to the class " +":class:`aiogram.types.chat_member_member.ChatMemberMember` for members " +"with an active subscription." +msgstr "" + +#: ../../../CHANGES.rst:333 +msgid "" +"Added support for paid reactions and the class " +":class:`aiogram.types.reaction_type_paid.ReactionTypePaid`." +msgstr "" + +#: ../../../CHANGES.rst:335 +msgid "`#1560 `_" +msgstr "" + +#: ../../../CHANGES.rst:341 +msgid "" +"Improved performance of StatesGroup `#1507 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:346 +msgid "3.11.0 (2024-08-09)" +msgstr "" + +#: ../../../CHANGES.rst:351 +msgid "" +"Added full support of `Bot API 7.8 `_" +msgstr "" + +#: ../../../CHANGES.rst:353 +msgid "" +"Added the field :code:`has_main_web_app` to the class " +":class:`aiogram.types.user.User`, which is returned in the response to " +":class:`aiogram.methods.get_me.GetMe`." +msgstr "" + +#: ../../../CHANGES.rst:355 +msgid "" +"Added the parameter :code:`business_connection_id` to the methods " +":class:`aiogram.methods.pin_chat_message.PinChatMessage` and " +":class:`aiogram.methods.unpin_chat_message.UnpinChatMessage`, allowing " +"bots to manage pinned messages on behalf of a business account." +msgstr "" + +#: ../../../CHANGES.rst:359 +msgid "`#1551 `_" +msgstr "" + +#: ../../../CHANGES.rst:365 +msgid "" +"Fixed URL path in the \"Open\" button at the \"demo/sendMessage\" " +"endpoint in the web_app example. `#1546 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:372 +msgid "" +"Added method :func:`aiogram.types.message.Message.as_reply_parameters`. " +"Replaced usage of the argument :code:`reply_to_message_id` with " +":code:`reply_parameters` in all Message reply methods. `#1538 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:376 +msgid "" +"Added `aiohttp v3.10 `_ ` support. `#1548 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:381 +msgid "3.10.0 (2024-07-07)" +msgstr "" + +#: ../../../CHANGES.rst:386 +msgid "" +"Added full support of `Bot API 7.7 `_" +msgstr "" + +#: ../../../CHANGES.rst:388 +msgid "" +"Added the class :class:`aiogram.types.refunded_payment.RefundedPayment`, " +"containing information about a refunded payment." +msgstr "" + +#: ../../../CHANGES.rst:390 +msgid "" +"Added the field :code:`refunded_payment` to the class " +":class:`aiogram.types.message.Message`, describing a service message " +"about a refunded payment." +msgstr "" + +#: ../../../CHANGES.rst:393 +msgid "`#1536 `_" +msgstr "" + +#: ../../../CHANGES.rst:397 +msgid "3.9.0 (2024-07-06)" +msgstr "" + +#: ../../../CHANGES.rst:402 +msgid "" +"Added ChatMember resolution tool and updated 2.x migration guide. `#1525 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:404 +msgid "" +"Added full support of `Bot API 7.6 `_" +msgstr "" + +#: ../../../CHANGES.rst:406 +msgid "Added the classes :class:`aiogram.types.paid_media.PaidMedia`," +msgstr "" + +#: ../../../CHANGES.rst:407 +msgid "" +":class:`aiogram.types.paid_media_info.PaidMediaInfo`, " +":class:`aiogram.types.paid_media_preview.PaidMediaPreview`, " +":class:`aiogram.types.paid_media_photo.PaidMediaPhoto` and " +":class:`aiogram.types.paid_media_video.PaidMediaVideo`, containing " +"information about paid media." +msgstr "" + +#: ../../../CHANGES.rst:412 +msgid "Added the method :class:`aiogram.methods.send_paid_media.SendPaidMedia`" +msgstr "" + +#: ../../../CHANGES.rst:413 +msgid "" +"and the classes :class:`aiogram.types.input_paid_media.InputPaidMedia`, " +":class:`aiogram.types.input_paid_media_photo.InputPaidMediaPhoto` and " +":class:`aiogram.types.input_paid_media_video.InputPaidMediaVideo`, to " +"support sending paid media." +msgstr "" + +#: ../../../CHANGES.rst:417 +msgid "" +"Documented that the methods " +":class:`aiogram.methods.copy_message.CopyMessage`" +msgstr "" + +#: ../../../CHANGES.rst:418 +msgid "" +"and :class:`aiogram.methods.copy_messages.CopyMessages` cannot be used to" +" copy paid media." +msgstr "" + +#: ../../../CHANGES.rst:419 +msgid "Added the field :code:`can_send_paid_media` to the class" +msgstr "" + +#: ../../../CHANGES.rst:420 +msgid ":class:`aiogram.types.chat_full_info.ChatFullInfo`." +msgstr "" + +#: ../../../CHANGES.rst:421 +msgid "Added the field :code:`paid_media` to the classes" +msgstr "" + +#: ../../../CHANGES.rst:422 +msgid "" +":class:`aiogram.types.message.Message` and " +":class:`aiogram.types.external_reply_info.ExternalReplyInfo`." +msgstr "" + +#: ../../../CHANGES.rst:424 +msgid "Added the class" +msgstr "" + +#: ../../../CHANGES.rst:425 +msgid "" +":class:`aiogram.types.transaction_partner_telegram_ads.TransactionPartnerTelegramAds`," +" containing information about Telegram Star transactions involving the " +"Telegram Ads Platform." +msgstr "" + +#: ../../../CHANGES.rst:427 +msgid "Added the field :code:`invoice_payload` to the class" +msgstr "" + +#: ../../../CHANGES.rst:428 +msgid "" +":class:`aiogram.types.transaction_partner_user.TransactionPartnerUser`, " +"containing the bot-specified invoice payload." +msgstr "" + +#: ../../../CHANGES.rst:430 +msgid "Changed the default opening mode for Direct Link Mini Apps." +msgstr "" + +#: ../../../CHANGES.rst:431 +msgid "Added support for launching Web Apps via t.me link in the class" +msgstr "" + +#: ../../../CHANGES.rst:432 +msgid ":class:`aiogram.types.menu_button_web_app.MenuButtonWebApp`." +msgstr "" + +#: ../../../CHANGES.rst:433 +msgid "" +"Added the field :code:`section_separator_color` to the class " +":code:`ThemeParams`." +msgstr "" + +#: ../../../CHANGES.rst:434 +msgid "`#1533 `_" +msgstr "" + +#: ../../../CHANGES.rst:440 +msgid "" +"Fixed event context resolving for the callback query that is coming from " +"the business account `#1520 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:445 +msgid "3.8.0 (2024-06-19)" +msgstr "" + +#: ../../../CHANGES.rst:450 +msgid "" +"Added utility to safely deserialize any Telegram object or method to a " +"JSON-compatible object (dict). (:ref:`>> Read more `)" +" `#1450 `_" +msgstr "" + +#: ../../../CHANGES.rst:453 +msgid "" +"Added full support of `Bot API 7.5 `_" +msgstr "" + +#: ../../../CHANGES.rst:455 +msgid "" +"Added the classes " +":class:`aiogram.types.star_transactions.StarTransactions`," +msgstr "" + +#: ../../../CHANGES.rst:456 +msgid "" +":class:`aiogram.types.star_transaction.StarTransaction`, " +":class:`aiogram.types.transaction_partner.TransactionPartner` and " +":class:`aiogram.types.revenue_withdrawal_state.RevenueWithdrawalState`, " +"containing information about Telegram Star transactions involving the " +"bot." +msgstr "" + +#: ../../../CHANGES.rst:460 +msgid "" +"Added the method " +":class:`aiogram.methods.get_star_transactions.GetStarTransactions`" +msgstr "" + +#: ../../../CHANGES.rst:461 +msgid "" +"that can be used to get the list of all Telegram Star transactions for " +"the bot." +msgstr "" + +#: ../../../CHANGES.rst:462 +msgid "Added support for callback buttons in" +msgstr "" + +#: ../../../CHANGES.rst:463 +msgid "" +":class:`aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup` for " +"messages sent on behalf of a business account." +msgstr "" + +#: ../../../CHANGES.rst:465 +msgid "Added support for callback queries originating from a message sent" +msgstr "" + +#: ../../../CHANGES.rst:466 +msgid "on behalf of a business account." +msgstr "" + +#: ../../../CHANGES.rst:467 +msgid "Added the parameter :code:`business_connection_id` to the methods" +msgstr "" + +#: ../../../CHANGES.rst:468 +msgid "" +":class:`aiogram.methods.edit_message_text.EditMessageText`, " +":class:`aiogram.methods.edit_message_media.EditMessageMedia`, " +":class:`aiogram.methods.edit_message_caption.EditMessageCaption`, " +":class:`aiogram.methods.edit_message_live_location.EditMessageLiveLocation`," +" " +":class:`aiogram.methods.stop_message_live_location.StopMessageLiveLocation`" +" and " +":class:`aiogram.methods.edit_message_reply_markup.EditMessageReplyMarkup`," +" allowing the bot to edit business messages." +msgstr "" + +#: ../../../CHANGES.rst:475 +msgid "Added the parameter :code:`business_connection_id` to the method" +msgstr "" + +#: ../../../CHANGES.rst:476 +msgid "" +":class:`aiogram.methods.stop_poll.StopPoll`, allowing the bot to stop " +"polls it sent on behalf of a business account." +msgstr "" + +#: ../../../CHANGES.rst:478 +msgid "`#1518 `_" +msgstr "" + +#: ../../../CHANGES.rst:484 +msgid "" +"Increased DNS cache ttl setting to aiohttp session as a workaround for " +"DNS resolution issues in aiohttp. `#1500 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:491 +msgid "" +"Fixed MongoStorage section in the documentation by adding extra " +"dependency to ReadTheDocs configuration. `#1501 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:493 +msgid "" +"Added information about dependency changes to the :code:`2.x --> 3.x` " +"migration guide. `#1504 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:500 +msgid "" +"[Only for contributors] Fail redis and mongo tests if incorrect URI " +"provided + some storages tests refactoring" +msgstr "" + +#: ../../../CHANGES.rst:502 +msgid "" +"If incorrect URIs provided to \"--redis\" and/or \"--mongo\" options " +"tests should fail with errors instead of skipping. Otherwise the next " +"scenario is possible:" +msgstr "" + +#: ../../../CHANGES.rst:504 +msgid "developer breaks RedisStorage and/or MongoStorage code" +msgstr "" + +#: ../../../CHANGES.rst:505 +msgid "" +"tests are run with incorrect redis and/or mongo URIsprovided by \"--" +"redis\" and \"--mongo\" options (for example, wrong port specified)" +msgstr "" + +#: ../../../CHANGES.rst:506 +msgid "tests pass because skipping doesn't fail tests run" +msgstr "" + +#: ../../../CHANGES.rst:507 +msgid "" +"developer or reviewer doesn't notice that redis and/or mongo tests were " +"skipped" +msgstr "" + +#: ../../../CHANGES.rst:508 +msgid "broken code gets in codebase" +msgstr "" + +#: ../../../CHANGES.rst:510 +msgid "" +"Also some refactorings done (related with storages and storages tests). " +"`#1510 `_" +msgstr "" + +#: ../../../CHANGES.rst:515 +msgid "3.7.0 (2024-05-31)" +msgstr "" + +#: ../../../CHANGES.rst:520 +msgid "" +"Added new storage :code:`aiogram.fsm.storage.MongoStorage` for Finite " +"State Machine based on Mongo DB (using :code:`motor` library) `#1434 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:522 +msgid "" +"Added full support of `Bot API 7.4 `_ `#1498 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:529 +msgid "" +"Fixed wrong :code:`MarkdownV2` custom emoji parsing in " +":code:`aiogram.utils.text_decorations` `#1496 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:534 ../../../CHANGES.rst:949 ../../../CHANGES.rst:1034 +#: ../../../CHANGES.rst:1317 +msgid "Deprecations and Removals" +msgstr "" + +#: ../../../CHANGES.rst:536 +msgid "" +"Removed deprecated arguments from Bot class :code:`parse_mode`, " +":code:`disable_web_page_preview`, :code:`protect_content` as previously " +"announced in v3.4.0. `#1494 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:544 +msgid "" +"Improved code consistency and readability in code examples by refactoring" +" imports, adjusting the base webhook URL, modifying bot instance " +"initialization to utilize DefaultBotProperties, and updating router " +"message handlers. `#1482 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:549 +msgid "3.6.0 (2024-05-06)" +msgstr "" + +#: ../../../CHANGES.rst:554 +msgid "" +"Added full support of `Bot API 7.3 `_ `#1480 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:561 +msgid "" +"Added telegram objects transformation block in 2.x -> 3.x migration guide" +" `#1412 `_" +msgstr "" + +#: ../../../CHANGES.rst:566 +msgid "3.5.0 (2024-04-23)" +msgstr "" + +#: ../../../CHANGES.rst:571 +msgid "" +"Added **message_thread_id** parameter to **ChatActionSender** class " +"methods. `#1437 `_" +msgstr "" + +#: ../../../CHANGES.rst:573 +msgid "Added context manager interface to Bot instance, from now you can use:" +msgstr "" + +#: ../../../CHANGES.rst:580 +msgid "instead of" +msgstr "" + +#: ../../../CHANGES.rst:586 +msgid "`#1468 `_" +msgstr "" + +#: ../../../CHANGES.rst:592 +msgid "" +"**WebAppUser Class Fields**: Added missing `is_premium`, " +"`added_to_attachment_menu`, and `allows_write_to_pm` fields to " +"`WebAppUser` class to align with the Telegram API." +msgstr "" + +#: ../../../CHANGES.rst:594 +msgid "" +"**WebAppChat Class Implementation**: Introduced the `WebAppChat` class " +"with all its fields (`id`, `type`, `title`, `username`, and `photo_url`) " +"as specified in the Telegram API, which was previously missing from the " +"library." +msgstr "" + +#: ../../../CHANGES.rst:596 +msgid "" +"**WebAppInitData Class Fields**: Included previously omitted fields in " +"the `WebAppInitData` class: `chat`, `chat_type`, `chat_instance`, to " +"match the official documentation for a complete Telegram Web Apps " +"support." +msgstr "" + +#: ../../../CHANGES.rst:597 +msgid "`#1424 `_" +msgstr "" + +#: ../../../CHANGES.rst:598 +msgid "" +"Fixed poll answer FSM context by handling :code:`voter_chat` for " +":code:`poll_answer` event `#1436 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:600 +msgid "" +"Added missing error handling to :code:`_background_feed_update` (when in " +":code:`handle_in_background=True` webhook mode) `#1458 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:607 +msgid "" +"Added WebAppChat class to WebApp docs, updated uk_UA localisation of " +"WebApp docs. `#1433 `_" +msgstr "" + +#: ../../../CHANGES.rst:614 +msgid "" +"Added full support of `Bot API 7.2 `_ `#1444 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:616 +msgid "" +"Loosened pydantic version upper restriction from ``<2.7`` to ``<2.8`` " +"`#1460 `_" +msgstr "" + +#: ../../../CHANGES.rst:621 +msgid "3.4.1 (2024-02-17)" +msgstr "" + +#: ../../../CHANGES.rst:626 +msgid "" +"Fixed JSON serialization of the :code:`LinkPreviewOptions` class while it" +" is passed as bot-wide default options. `#1418 " +"`_" +msgstr "" + +#: ../../../CHANGES.rst:632 +msgid "3.4.0 (2024-02-16)" +msgstr "" + +#: ../../../CHANGES.rst:637 msgid "" "Reworked bot-wide globals like :code:`parse_mode`, " ":code:`disable_web_page_preview`, and others to be more flexible." msgstr "" -#: ../../[towncrier-fragments]:11 +#: ../../../CHANGES.rst:641 msgid "" "Note that the old way of setting these global bot properties is now " "deprecated and will be removed in the next major release." msgstr "" -#: ../../[towncrier-fragments]:12 +#: ../../../CHANGES.rst:642 msgid "`#1392 `_" msgstr "" -#: ../../[towncrier-fragments]:13 +#: ../../../CHANGES.rst:643 msgid "" "A new enum :code:`KeyboardButtonPollTypeType` for " ":code:`KeyboardButtonPollTypeType.type` field has bed added. `#1398 " "`_" msgstr "" -#: ../../../CHANGES.rst:53 ../../../CHANGES.rst:107 ../../../CHANGES.rst:128 -#: ../../../CHANGES.rst:140 ../../../CHANGES.rst:161 ../../../CHANGES.rst:230 -#: ../../../CHANGES.rst:275 ../../../CHANGES.rst:345 ../../../CHANGES.rst:531 -#: ../../../CHANGES.rst:594 ../../../CHANGES.rst:643 ../../../CHANGES.rst:704 -#: ../../../CHANGES.rst:762 ../../../CHANGES.rst:808 ../../../CHANGES.rst:856 -#: ../../../CHANGES.rst:912 ../../../CHANGES.rst:997 ../../../CHANGES.rst:1029 -#: ../../[towncrier-fragments]:18 -msgid "Bugfixes" +#: ../../../CHANGES.rst:645 +msgid "" +"Added full support of `Bot API 7.1 `_" msgstr "" -#: ../../[towncrier-fragments]:20 +#: ../../../CHANGES.rst:647 +msgid "" +"Added support for the administrator rights :code:`can_post_stories`, " +":code:`can_edit_stories`, :code:`can_delete_stories` in supergroups." +msgstr "" + +#: ../../../CHANGES.rst:648 +msgid "" +"Added the class :code:`ChatBoostAdded` and the field :code:`boost_added` " +"to the class :code:`Message` for service messages about a user boosting a" +" chat." +msgstr "" + +#: ../../../CHANGES.rst:649 +msgid "Added the field :code:`sender_boost_count` to the class :code:`Message`." +msgstr "" + +#: ../../../CHANGES.rst:650 +msgid "Added the field :code:`reply_to_story` to the class :code:`Message`." +msgstr "" + +#: ../../../CHANGES.rst:651 +msgid "Added the fields :code:`chat` and :code:`id` to the class :code:`Story`." +msgstr "" + +#: ../../../CHANGES.rst:652 +msgid "Added the field :code:`unrestrict_boost_count` to the class :code:`Chat`." +msgstr "" + +#: ../../../CHANGES.rst:653 +msgid "" +"Added the field :code:`custom_emoji_sticker_set_name` to the class " +":code:`Chat`." +msgstr "" + +#: ../../../CHANGES.rst:654 +msgid "`#1417 `_" +msgstr "" + +#: ../../../CHANGES.rst:660 msgid "" "Update KeyboardBuilder utility, fixed type-hints for button method, " "adjusted limits of the different markup types to real world values. " "`#1399 `_" msgstr "" -#: ../../[towncrier-fragments]:22 +#: ../../../CHANGES.rst:662 msgid "" "Added new :code:`reply_parameters` param to :code:`message.send_copy` " "because it hasn't been added there `#1403 " "`_" msgstr "" -#: ../../../CHANGES.rst:64 ../../../CHANGES.rst:173 ../../../CHANGES.rst:243 -#: ../../../CHANGES.rst:288 ../../../CHANGES.rst:373 ../../../CHANGES.rst:606 -#: ../../../CHANGES.rst:656 ../../../CHANGES.rst:1036 -#: ../../[towncrier-fragments]:27 -msgid "Improved Documentation" -msgstr "" - -#: ../../[towncrier-fragments]:29 +#: ../../../CHANGES.rst:669 msgid "" "Add notion \"Working with plural forms\" in documentation Utils -> " "Translation `#1395 `_" msgstr "" -#: ../../../CHANGES.rst:20 +#: ../../../CHANGES.rst:674 msgid "3.3.0 (2023-12-31)" msgstr "" -#: ../../../CHANGES.rst:25 +#: ../../../CHANGES.rst:679 msgid "" "Added full support of `Bot API 7.0 `_" msgstr "" -#: ../../../CHANGES.rst:27 +#: ../../../CHANGES.rst:681 msgid "Reactions" msgstr "" -#: ../../../CHANGES.rst:28 +#: ../../../CHANGES.rst:682 msgid "Replies 2.0" msgstr "" -#: ../../../CHANGES.rst:29 +#: ../../../CHANGES.rst:683 msgid "Link Preview Customization" msgstr "" -#: ../../../CHANGES.rst:30 +#: ../../../CHANGES.rst:684 msgid "Block Quotation" msgstr "" -#: ../../../CHANGES.rst:31 +#: ../../../CHANGES.rst:685 msgid "Multiple Message Actions" msgstr "" -#: ../../../CHANGES.rst:32 +#: ../../../CHANGES.rst:686 msgid "Requests for multiple users" msgstr "" -#: ../../../CHANGES.rst:33 +#: ../../../CHANGES.rst:687 msgid "Chat Boosts" msgstr "" -#: ../../../CHANGES.rst:34 +#: ../../../CHANGES.rst:688 msgid "Giveaway" msgstr "" -#: ../../../CHANGES.rst:35 +#: ../../../CHANGES.rst:689 msgid "Other changes" msgstr "" -#: ../../../CHANGES.rst:36 +#: ../../../CHANGES.rst:690 msgid "`#1387 `_" msgstr "" -#: ../../../CHANGES.rst:40 +#: ../../../CHANGES.rst:694 msgid "3.2.0 (2023-11-24)" msgstr "" -#: ../../../CHANGES.rst:45 +#: ../../../CHANGES.rst:699 msgid "" "Introduced Scenes feature that helps you to simplify user interactions " "using Finite State Machine. Read more about 👉 :ref:`Scenes `. " "`#1280 `_" msgstr "" -#: ../../../CHANGES.rst:48 +#: ../../../CHANGES.rst:702 msgid "" "Added the new FSM strategy :code:`CHAT_TOPIC`, which sets the state for " "the entire topic in the chat, also works in private messages and regular " @@ -164,321 +1393,312 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:55 +#: ../../../CHANGES.rst:709 msgid "" "Fixed :code:`parse_mode` argument in the in :code:`Message.send_copy` " "shortcut. Disable by default. `#1332 " "`_" msgstr "" -#: ../../../CHANGES.rst:57 +#: ../../../CHANGES.rst:711 msgid "" "Added ability to get handler flags from filters. `#1360 " "`_" msgstr "" -#: ../../../CHANGES.rst:59 +#: ../../../CHANGES.rst:713 msgid "" "Fixed a situation where a :code:`CallbackData` could not be parsed " "without a default value. `#1368 " "`_" msgstr "" -#: ../../../CHANGES.rst:66 +#: ../../../CHANGES.rst:720 msgid "" "Corrected grammatical errors, improved sentence structures, translation " "for migration 2.x-3.x `#1302 " "`_" msgstr "" -#: ../../../CHANGES.rst:68 +#: ../../../CHANGES.rst:722 msgid "" "Minor typo correction, specifically in module naming + some grammar. " "`#1340 `_" msgstr "" -#: ../../../CHANGES.rst:70 +#: ../../../CHANGES.rst:724 msgid "" "Added `CITATION.cff` file for automatic academic citation generation. Now" " you can copy citation from the GitHub page and paste it into your paper." " `#1351 `_" msgstr "" -#: ../../../CHANGES.rst:73 +#: ../../../CHANGES.rst:727 msgid "" "Minor typo correction in middleware docs. `#1353 " "`_" msgstr "" -#: ../../../CHANGES.rst:78 ../../../CHANGES.rst:194 ../../../CHANGES.rst:250 -#: ../../../CHANGES.rst:389 ../../../CHANGES.rst:540 ../../../CHANGES.rst:617 -#: ../../../CHANGES.rst:670 ../../../CHANGES.rst:721 ../../../CHANGES.rst:775 -#: ../../../CHANGES.rst:817 ../../../CHANGES.rst:863 ../../../CHANGES.rst:923 -#: ../../../CHANGES.rst:944 ../../../CHANGES.rst:967 ../../../CHANGES.rst:1004 -#: ../../../CHANGES.rst:1043 -msgid "Misc" -msgstr "" - -#: ../../../CHANGES.rst:80 +#: ../../../CHANGES.rst:734 msgid "" "Fixed ResourceWarning in the tests, reworked :code:`RedisEventsIsolation`" " fixture to use Redis connection from :code:`RedisStorage` `#1320 " "`_" msgstr "" -#: ../../../CHANGES.rst:82 +#: ../../../CHANGES.rst:736 msgid "Updated dependencies, bumped minimum required version:" msgstr "" -#: ../../../CHANGES.rst:84 +#: ../../../CHANGES.rst:738 msgid ":code:`magic-filter` - fixed `.resolve` operation" msgstr "" -#: ../../../CHANGES.rst:85 +#: ../../../CHANGES.rst:739 msgid ":code:`pydantic` - fixed compatibility (broken in 2.4)" msgstr "" -#: ../../../CHANGES.rst:86 +#: ../../../CHANGES.rst:740 msgid "" ":code:`aiodns` - added new dependency to the :code:`fast` extras " "(:code:`pip install aiogram[fast]`)" msgstr "" -#: ../../../CHANGES.rst:87 +#: ../../../CHANGES.rst:741 msgid "*others...*" msgstr "" -#: ../../../CHANGES.rst:88 +#: ../../../CHANGES.rst:742 msgid "`#1327 `_" msgstr "" -#: ../../../CHANGES.rst:89 +#: ../../../CHANGES.rst:743 msgid "" "Prevent update handling task pointers from being garbage collected, " "backport from 2.x `#1331 " "`_" msgstr "" -#: ../../../CHANGES.rst:91 +#: ../../../CHANGES.rst:745 msgid "" "Updated :code:`typing-extensions` package version range in dependencies " "to fix compatibility with :code:`FastAPI` `#1347 " "`_" msgstr "" -#: ../../../CHANGES.rst:93 +#: ../../../CHANGES.rst:747 msgid "" "Introduce Python 3.12 support `#1354 " "`_" msgstr "" -#: ../../../CHANGES.rst:95 +#: ../../../CHANGES.rst:749 msgid "" "Speeded up CallableMixin processing by caching references to nested " "objects and simplifying kwargs assembly. `#1357 " "`_" msgstr "" -#: ../../../CHANGES.rst:97 +#: ../../../CHANGES.rst:751 msgid "" "Added :code:`pydantic` v2.5 support. `#1361 " "`_" msgstr "" -#: ../../../CHANGES.rst:99 +#: ../../../CHANGES.rst:753 msgid "" "Updated :code:`thumbnail` fields type to :code:`InputFile` only `#1372 " "`_" msgstr "" -#: ../../../CHANGES.rst:104 +#: ../../../CHANGES.rst:758 msgid "3.1.1 (2023-09-25)" msgstr "" -#: ../../../CHANGES.rst:109 +#: ../../../CHANGES.rst:763 msgid "" "Fixed `pydantic` version <2.4, since 2.4 has breaking changes. `#1322 " "`_" msgstr "" -#: ../../../CHANGES.rst:114 +#: ../../../CHANGES.rst:768 msgid "3.1.0 (2023-09-22)" msgstr "" -#: ../../../CHANGES.rst:119 +#: ../../../CHANGES.rst:773 msgid "" "Added support for custom encoders/decoders for payload (and also for " "deep-linking). `#1262 `_" msgstr "" -#: ../../../CHANGES.rst:121 +#: ../../../CHANGES.rst:775 msgid "" "Added :class:`aiogram.utils.input_media.MediaGroupBuilder` for media " "group construction. `#1293 " "`_" msgstr "" -#: ../../../CHANGES.rst:123 +#: ../../../CHANGES.rst:777 msgid "" "Added full support of `Bot API 6.9 `_ `#1319 " "`_" msgstr "" -#: ../../../CHANGES.rst:130 +#: ../../../CHANGES.rst:784 msgid "" "Added actual param hints for `InlineKeyboardBuilder` and " "`ReplyKeyboardBuilder`. `#1303 " "`_" msgstr "" -#: ../../../CHANGES.rst:132 +#: ../../../CHANGES.rst:786 msgid "" "Fixed priority of events isolation, now user state will be loaded only " "after lock is acquired `#1317 " "`_" msgstr "" -#: ../../../CHANGES.rst:137 +#: ../../../CHANGES.rst:791 msgid "3.0.0 (2023-09-01)" msgstr "" -#: ../../../CHANGES.rst:142 +#: ../../../CHANGES.rst:796 msgid "" "Replaced :code:`datetime.datetime` with `DateTime` type wrapper across " "types to make dumped JSONs object more compatible with data that is sent " "by Telegram. `#1277 `_" msgstr "" -#: ../../../CHANGES.rst:145 +#: ../../../CHANGES.rst:799 msgid "" "Fixed magic :code:`.as_(...)` operation for values that can be " "interpreted as `False` (e.g. `0`). `#1281 " "`_" msgstr "" -#: ../../../CHANGES.rst:147 +#: ../../../CHANGES.rst:801 msgid "" "Italic markdown from utils now uses correct decorators `#1282 " "`_" msgstr "" -#: ../../../CHANGES.rst:149 +#: ../../../CHANGES.rst:803 msgid "" "Fixed method :code:`Message.send_copy` for stickers. `#1284 " "`_" msgstr "" -#: ../../../CHANGES.rst:151 +#: ../../../CHANGES.rst:805 msgid "" "Fixed :code:`Message.send_copy` method, which was not working properly " "with stories, so not you can copy stories too (forwards messages). `#1286" " `_" msgstr "" -#: ../../../CHANGES.rst:153 +#: ../../../CHANGES.rst:807 msgid "" "Fixed error overlapping when validation error is caused by remove_unset " "root validator in base types and methods. `#1290 " "`_" msgstr "" -#: ../../../CHANGES.rst:158 +#: ../../../CHANGES.rst:812 msgid "3.0.0rc2 (2023-08-18)" msgstr "" -#: ../../../CHANGES.rst:163 +#: ../../../CHANGES.rst:817 msgid "" "Fixed missing message content types (:code:`ContentType.USER_SHARED`, " ":code:`ContentType.CHAT_SHARED`) `#1252 " "`_" msgstr "" -#: ../../../CHANGES.rst:165 +#: ../../../CHANGES.rst:819 msgid "" "Fixed nested hashtag, cashtag and email message entities not being parsed" " correctly when these entities are inside another entity. `#1259 " "`_" msgstr "" -#: ../../../CHANGES.rst:167 +#: ../../../CHANGES.rst:821 msgid "" "Moved global filters check placement into router to add chance to pass " "context from global filters into handlers in the same way as it possible " "in other places `#1266 `_" msgstr "" -#: ../../../CHANGES.rst:175 +#: ../../../CHANGES.rst:829 msgid "" "Added error handling example `examples/error_handling.py` `#1099 " "`_" msgstr "" -#: ../../../CHANGES.rst:177 +#: ../../../CHANGES.rst:831 msgid "" "Added a few words about skipping pending updates `#1251 " "`_" msgstr "" -#: ../../../CHANGES.rst:179 +#: ../../../CHANGES.rst:833 msgid "" "Added a section on Dependency Injection technology `#1253 " "`_" msgstr "" -#: ../../../CHANGES.rst:181 +#: ../../../CHANGES.rst:835 msgid "" "This update includes the addition of a multi-file bot example to the " "repository. `#1254 `_" msgstr "" -#: ../../../CHANGES.rst:183 +#: ../../../CHANGES.rst:837 msgid "" "Refactored examples code to use aiogram enumerations and enhanced chat " "messages with markdown beautification's for a more user-friendly display." " `#1256 `_" msgstr "" -#: ../../../CHANGES.rst:186 +#: ../../../CHANGES.rst:840 msgid "" "Supplemented \"Finite State Machine\" section in Migration FAQ `#1264 " "`_" msgstr "" -#: ../../../CHANGES.rst:188 +#: ../../../CHANGES.rst:842 msgid "" "Removed extra param in docstring of TelegramEventObserver's filter method" " and fixed typo in I18n documentation. `#1268 " "`_" msgstr "" -#: ../../../CHANGES.rst:196 +#: ../../../CHANGES.rst:850 msgid "" "Enhanced the warning message in dispatcher to include a JSON dump of the " "update when update type is not known. `#1269 " "`_" msgstr "" -#: ../../../CHANGES.rst:198 +#: ../../../CHANGES.rst:852 msgid "" "Added support for `Bot API 6.8 `_ `#1275 " "`_" msgstr "" -#: ../../../CHANGES.rst:203 +#: ../../../CHANGES.rst:857 msgid "3.0.0rc1 (2023-08-06)" msgstr "" -#: ../../../CHANGES.rst:208 +#: ../../../CHANGES.rst:862 msgid "Added Currency enum. You can use it like this:" msgstr "" -#: ../../../CHANGES.rst:220 +#: ../../../CHANGES.rst:874 msgid "`#1194 `_" msgstr "" -#: ../../../CHANGES.rst:221 +#: ../../../CHANGES.rst:875 msgid "" "Updated keyboard builders with new methods for integrating buttons and " "keyboard creation more seamlessly. Added functionality to create buttons " @@ -487,45 +1707,45 @@ msgid "" "`#1236 `_" msgstr "" -#: ../../../CHANGES.rst:225 +#: ../../../CHANGES.rst:879 msgid "" "Added support for message_thread_id in ChatActionSender `#1249 " "`_" msgstr "" -#: ../../../CHANGES.rst:232 +#: ../../../CHANGES.rst:886 msgid "" "Fixed polling startup when \"bot\" key is passed manually into dispatcher" " workflow data `#1242 `_" msgstr "" -#: ../../../CHANGES.rst:234 +#: ../../../CHANGES.rst:888 msgid "Added codegen configuration for lost shortcuts:" msgstr "" -#: ../../../CHANGES.rst:236 +#: ../../../CHANGES.rst:890 msgid "ShippingQuery.answer" msgstr "" -#: ../../../CHANGES.rst:237 +#: ../../../CHANGES.rst:891 msgid "PreCheckoutQuery.answer" msgstr "" -#: ../../../CHANGES.rst:238 +#: ../../../CHANGES.rst:892 msgid "Message.delete_reply_markup" msgstr "" -#: ../../../CHANGES.rst:239 +#: ../../../CHANGES.rst:893 msgid "`#1244 `_" msgstr "" -#: ../../../CHANGES.rst:245 +#: ../../../CHANGES.rst:899 msgid "" "Added documentation for webhook and polling modes. `#1241 " "`_" msgstr "" -#: ../../../CHANGES.rst:252 +#: ../../../CHANGES.rst:906 msgid "" "Reworked InputFile reading, removed :code:`__aiter__` method, added `bot:" " Bot` argument to the :code:`.read(...)` method, so, from now " @@ -533,18 +1753,18 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:256 +#: ../../../CHANGES.rst:910 msgid "" "Code-generated :code:`__init__` typehints in types and methods to make " "IDE happy without additional pydantic plugin `#1245 " "`_" msgstr "" -#: ../../../CHANGES.rst:261 +#: ../../../CHANGES.rst:915 msgid "3.0.0b9 (2023-07-30)" msgstr "" -#: ../../../CHANGES.rst:266 +#: ../../../CHANGES.rst:920 msgid "" "Added new shortcuts for " ":class:`aiogram.types.chat_member_updated.ChatMemberUpdated` to send " @@ -552,7 +1772,7 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:269 +#: ../../../CHANGES.rst:923 msgid "" "Added new shortcuts for " ":class:`aiogram.types.chat_join_request.ChatJoinRequest` to make easier " @@ -560,13 +1780,13 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:277 +#: ../../../CHANGES.rst:931 msgid "" "Fixed bot assignment in the :code:`Message.send_copy` shortcut `#1232 " "`_" msgstr "" -#: ../../../CHANGES.rst:279 +#: ../../../CHANGES.rst:933 msgid "" "Added model validation to remove UNSET before field validation. This " "change was necessary to correctly handle parse_mode where 'UNSET' is used" @@ -576,21 +1796,17 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:284 +#: ../../../CHANGES.rst:938 msgid "Updated pydantic to 2.1 with few bugfixes" msgstr "" -#: ../../../CHANGES.rst:290 +#: ../../../CHANGES.rst:944 msgid "" "Improved docs, added basic migration guide (will be expanded later) " "`#1143 `_" msgstr "" -#: ../../../CHANGES.rst:295 ../../../CHANGES.rst:380 ../../../CHANGES.rst:663 -msgid "Deprecations and Removals" -msgstr "" - -#: ../../../CHANGES.rst:297 +#: ../../../CHANGES.rst:951 msgid "" "Removed the use of the context instance (Bot.get_current) from all " "placements that were used previously. This is to avoid the use of the " @@ -598,78 +1814,78 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:303 +#: ../../../CHANGES.rst:957 msgid "3.0.0b8 (2023-07-17)" msgstr "" -#: ../../../CHANGES.rst:308 +#: ../../../CHANGES.rst:962 msgid "" "Added possibility to use custom events in routers (If router does not " "support custom event it does not break and passes it to included " "routers). `#1147 `_" msgstr "" -#: ../../../CHANGES.rst:310 +#: ../../../CHANGES.rst:964 msgid "Added support for FSM in Forum topics." msgstr "" -#: ../../../CHANGES.rst:312 +#: ../../../CHANGES.rst:966 msgid "The strategy can be changed in dispatcher:" msgstr "" -#: ../../../CHANGES.rst:325 +#: ../../../CHANGES.rst:979 msgid "" "If you have implemented you own storages you should extend record key " "generation with new one attribute - :code:`thread_id`" msgstr "" -#: ../../../CHANGES.rst:327 +#: ../../../CHANGES.rst:981 msgid "`#1161 `_" msgstr "" -#: ../../../CHANGES.rst:328 +#: ../../../CHANGES.rst:982 msgid "Improved CallbackData serialization." msgstr "" -#: ../../../CHANGES.rst:330 +#: ../../../CHANGES.rst:984 msgid "Minimized UUID (hex without dashes)" msgstr "" -#: ../../../CHANGES.rst:331 +#: ../../../CHANGES.rst:985 msgid "Replaced bool values with int (true=1, false=0)" msgstr "" -#: ../../../CHANGES.rst:332 +#: ../../../CHANGES.rst:986 msgid "`#1163 `_" msgstr "" -#: ../../../CHANGES.rst:333 +#: ../../../CHANGES.rst:987 msgid "" "Added a tool to make text formatting flexible and easy. More details on " "the :ref:`corresponding documentation page ` `#1172 " "`_" msgstr "" -#: ../../../CHANGES.rst:336 +#: ../../../CHANGES.rst:990 msgid "" "Added :code:`X-Telegram-Bot-Api-Secret-Token` header check `#1173 " "`_" msgstr "" -#: ../../../CHANGES.rst:338 +#: ../../../CHANGES.rst:992 msgid "" "Made :code:`allowed_updates` list to revolve automatically in " "start_polling method if not set explicitly. `#1178 " "`_" msgstr "" -#: ../../../CHANGES.rst:340 +#: ../../../CHANGES.rst:994 msgid "" "Added possibility to pass custom headers to :class:`URLInputFile` object " "`#1191 `_" msgstr "" -#: ../../../CHANGES.rst:347 +#: ../../../CHANGES.rst:1001 msgid "" "Change type of result in InlineQueryResult enum for " ":code:`InlineQueryResultCachedMpeg4Gif` and " @@ -677,51 +1893,51 @@ msgid "" "documentation." msgstr "" -#: ../../../CHANGES.rst:350 +#: ../../../CHANGES.rst:1004 msgid "" "Change regexp for entities parsing to more correct " "(:code:`InlineQueryResultType.yml`). `#1146 " "`_" msgstr "" -#: ../../../CHANGES.rst:352 +#: ../../../CHANGES.rst:1006 msgid "" "Fixed signature of startup/shutdown events to include the " ":code:`**dispatcher.workflow_data` as the handler arguments. `#1155 " "`_" msgstr "" -#: ../../../CHANGES.rst:354 +#: ../../../CHANGES.rst:1008 msgid "" "Added missing :code:`FORUM_TOPIC_EDITED` value to content_type property " "`#1160 `_" msgstr "" -#: ../../../CHANGES.rst:356 +#: ../../../CHANGES.rst:1010 msgid "" "Fixed compatibility with Python 3.8-3.9 (from previous release) `#1162 " "`_" msgstr "" -#: ../../../CHANGES.rst:358 +#: ../../../CHANGES.rst:1012 msgid "" "Fixed the markdown spoiler parser. `#1176 " "`_" msgstr "" -#: ../../../CHANGES.rst:360 +#: ../../../CHANGES.rst:1014 msgid "" "Fixed workflow data propagation `#1196 " "`_" msgstr "" -#: ../../../CHANGES.rst:362 +#: ../../../CHANGES.rst:1016 msgid "" "Fixed the serialization error associated with nested subtypes like " "InputMedia, ChatMember, etc." msgstr "" -#: ../../../CHANGES.rst:365 +#: ../../../CHANGES.rst:1019 msgid "" "The previously generated code resulted in an invalid schema under " "pydantic v2, which has stricter type parsing. Hence, subtypes without the" @@ -730,71 +1946,71 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:375 +#: ../../../CHANGES.rst:1029 msgid "" "Changed small grammar typos for :code:`upload_file` `#1133 " "`_" msgstr "" -#: ../../../CHANGES.rst:382 +#: ../../../CHANGES.rst:1036 msgid "" "Removed text filter in due to is planned to remove this filter few " "versions ago." msgstr "" -#: ../../../CHANGES.rst:384 +#: ../../../CHANGES.rst:1038 msgid "" "Use :code:`F.text` instead `#1170 " "`_" msgstr "" -#: ../../../CHANGES.rst:391 +#: ../../../CHANGES.rst:1045 msgid "" "Added full support of `Bot API 6.6 `_" msgstr "" -#: ../../../CHANGES.rst:395 +#: ../../../CHANGES.rst:1049 msgid "" "Note that this issue has breaking changes described in the Bot API " "changelog, this changes is not breaking in the API but breaking inside " "aiogram because Beta stage is not finished." msgstr "" -#: ../../../CHANGES.rst:398 +#: ../../../CHANGES.rst:1052 msgid "`#1139 `_" msgstr "" -#: ../../../CHANGES.rst:399 +#: ../../../CHANGES.rst:1053 msgid "" "Added full support of `Bot API 6.7 `_" msgstr "" -#: ../../../CHANGES.rst:403 +#: ../../../CHANGES.rst:1057 msgid "" "Note that arguments *switch_pm_parameter* and *switch_pm_text* was " "deprecated and should be changed to *button* argument as described in API" " docs." msgstr "" -#: ../../../CHANGES.rst:405 +#: ../../../CHANGES.rst:1059 msgid "`#1168 `_" msgstr "" -#: ../../../CHANGES.rst:406 +#: ../../../CHANGES.rst:1060 msgid "Updated `Pydantic to V2 `_" msgstr "" -#: ../../../CHANGES.rst:410 +#: ../../../CHANGES.rst:1064 msgid "Be careful, not all libraries is already updated to using V2" msgstr "" -#: ../../../CHANGES.rst:411 +#: ../../../CHANGES.rst:1065 msgid "`#1202 `_" msgstr "" -#: ../../../CHANGES.rst:412 +#: ../../../CHANGES.rst:1066 msgid "" "Added global defaults :code:`disable_web_page_preview` and " ":code:`protect_content` in addition to :code:`parse_mode` to the Bot " @@ -802,13 +2018,13 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:415 +#: ../../../CHANGES.rst:1069 msgid "" "Removed bot parameters from storages `#1144 " "`_" msgstr "" -#: ../../../CHANGES.rst:418 +#: ../../../CHANGES.rst:1072 msgid "" "Replaced ContextVar's with a new feature called `Validation Context " "`_" @@ -816,69 +2032,69 @@ msgid "" "handling the Bot instance within method shortcuts." msgstr "" -#: ../../../CHANGES.rst:423 +#: ../../../CHANGES.rst:1077 msgid "**Breaking**: The 'bot' argument now is required in `URLInputFile`" msgstr "" -#: ../../../CHANGES.rst:424 +#: ../../../CHANGES.rst:1078 msgid "`#1210 `_" msgstr "" -#: ../../../CHANGES.rst:425 +#: ../../../CHANGES.rst:1079 msgid "Updated magic-filter with new features" msgstr "" -#: ../../../CHANGES.rst:427 +#: ../../../CHANGES.rst:1081 msgid "Added hint for :code:`len(F)` error" msgstr "" -#: ../../../CHANGES.rst:428 +#: ../../../CHANGES.rst:1082 msgid "Added not in operation" msgstr "" -#: ../../../CHANGES.rst:429 +#: ../../../CHANGES.rst:1083 msgid "`#1221 `_" msgstr "" -#: ../../../CHANGES.rst:433 +#: ../../../CHANGES.rst:1087 msgid "3.0.0b7 (2023-02-18)" msgstr "" -#: ../../../CHANGES.rst:437 +#: ../../../CHANGES.rst:1091 msgid "" "Note that this version has incompatibility with Python 3.8-3.9 in case " "when you create an instance of Dispatcher outside of the any coroutine." msgstr "" -#: ../../../CHANGES.rst:439 +#: ../../../CHANGES.rst:1093 msgid "Sorry for the inconvenience, it will be fixed in the next version." msgstr "" -#: ../../../CHANGES.rst:441 +#: ../../../CHANGES.rst:1095 msgid "This code will not work:" msgstr "" -#: ../../../CHANGES.rst:453 +#: ../../../CHANGES.rst:1107 msgid "But if you change it like this it should works as well:" msgstr "" -#: ../../../CHANGES.rst:471 +#: ../../../CHANGES.rst:1125 msgid "Added missing shortcuts, new enums, reworked old stuff" msgstr "" -#: ../../../CHANGES.rst:473 +#: ../../../CHANGES.rst:1127 msgid "" "**Breaking** All previously added enums is re-generated in new place - " "`aiogram.enums` instead of `aiogram.types`" msgstr "" -#: ../../../CHANGES.rst:491 +#: ../../../CHANGES.rst:1130 msgid "" "**Added enums:** " ":class:`aiogram.enums.bot_command_scope_type.BotCommandScopeType`," msgstr "" -#: ../../../CHANGES.rst:477 +#: ../../../CHANGES.rst:1131 msgid "" ":class:`aiogram.enums.chat_action.ChatAction`, " ":class:`aiogram.enums.chat_member_status.ChatMemberStatus`, " @@ -897,15 +2113,15 @@ msgid "" ":class:`aiogram.enums.update_type.UpdateType`," msgstr "" -#: ../../../CHANGES.rst:493 +#: ../../../CHANGES.rst:1147 msgid "**Added shortcuts**:" msgstr "" -#: ../../../CHANGES.rst:518 +#: ../../../CHANGES.rst:1149 msgid "*Chat* :meth:`aiogram.types.chat.Chat.get_administrators`," msgstr "" -#: ../../../CHANGES.rst:496 +#: ../../../CHANGES.rst:1150 msgid "" ":meth:`aiogram.types.chat.Chat.delete_message`, " ":meth:`aiogram.types.chat.Chat.revoke_invite_link`, " @@ -933,85 +2149,85 @@ msgid "" ":meth:`aiogram.types.chat.Chat.set_photo`," msgstr "" -#: ../../../CHANGES.rst:520 +#: ../../../CHANGES.rst:1174 msgid "*Sticker*: :meth:`aiogram.types.sticker.Sticker.set_position_in_set`," msgstr "" -#: ../../../CHANGES.rst:521 +#: ../../../CHANGES.rst:1175 msgid ":meth:`aiogram.types.sticker.Sticker.delete_from_set`," msgstr "" -#: ../../../CHANGES.rst:522 +#: ../../../CHANGES.rst:1176 msgid "*User*: :meth:`aiogram.types.user.User.get_profile_photos`" msgstr "" -#: ../../../CHANGES.rst:523 +#: ../../../CHANGES.rst:1177 msgid "`#952 `_" msgstr "" -#: ../../../CHANGES.rst:524 +#: ../../../CHANGES.rst:1178 msgid "" "Added :ref:`callback answer ` feature `#1091 " "`_" msgstr "" -#: ../../../CHANGES.rst:526 +#: ../../../CHANGES.rst:1180 msgid "" "Added a method that allows you to compactly register routers `#1117 " "`_" msgstr "" -#: ../../../CHANGES.rst:533 +#: ../../../CHANGES.rst:1187 msgid "" "Check status code when downloading file `#816 " "`_" msgstr "" -#: ../../../CHANGES.rst:535 +#: ../../../CHANGES.rst:1189 msgid "" "Fixed `ignore_case` parameter in :obj:`aiogram.filters.command.Command` " "filter `#1106 `_" msgstr "" -#: ../../../CHANGES.rst:542 +#: ../../../CHANGES.rst:1196 msgid "" "Added integration with new code-generator named `Butcher " "`_ `#1069 " "`_" msgstr "" -#: ../../../CHANGES.rst:544 +#: ../../../CHANGES.rst:1198 msgid "" "Added full support of `Bot API 6.4 `_ `#1088 " "`_" msgstr "" -#: ../../../CHANGES.rst:546 +#: ../../../CHANGES.rst:1200 msgid "" "Updated package metadata, moved build internals from Poetry to Hatch, " "added contributing guides. `#1095 " "`_" msgstr "" -#: ../../../CHANGES.rst:548 +#: ../../../CHANGES.rst:1202 msgid "" "Added full support of `Bot API 6.5 `_" msgstr "" -#: ../../../CHANGES.rst:552 +#: ../../../CHANGES.rst:1206 msgid "" "Note that :obj:`aiogram.types.chat_permissions.ChatPermissions` is " "updated without backward compatibility, so now this object has no " ":code:`can_send_media_messages` attribute" msgstr "" -#: ../../../CHANGES.rst:554 +#: ../../../CHANGES.rst:1208 msgid "`#1112 `_" msgstr "" -#: ../../../CHANGES.rst:555 +#: ../../../CHANGES.rst:1209 msgid "" "Replaced error :code:`TypeError: TelegramEventObserver.__call__() got an " "unexpected keyword argument ''` with a more understandable one for " @@ -1019,13 +2235,13 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:558 +#: ../../../CHANGES.rst:1212 msgid "" "Added possibility to reply into webhook with files `#1120 " "`_" msgstr "" -#: ../../../CHANGES.rst:560 +#: ../../../CHANGES.rst:1214 msgid "" "Reworked graceful shutdown. Added method to stop polling. Now polling " "started from dispatcher can be stopped by signals gracefully without " @@ -1033,127 +2249,127 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:566 +#: ../../../CHANGES.rst:1220 msgid "3.0.0b6 (2022-11-18)" msgstr "" -#: ../../../CHANGES.rst:571 +#: ../../../CHANGES.rst:1225 msgid "" "(again) Added possibility to combine filters with an *and*/*or* " "operations." msgstr "" -#: ../../../CHANGES.rst:573 +#: ../../../CHANGES.rst:1227 msgid "" "Read more in \":ref:`Combining filters `\" " "documentation section `#1018 " "`_" msgstr "" -#: ../../../CHANGES.rst:575 +#: ../../../CHANGES.rst:1229 msgid "Added following methods to ``Message`` class:" msgstr "" -#: ../../../CHANGES.rst:577 +#: ../../../CHANGES.rst:1231 msgid ":code:`Message.forward(...)`" msgstr "" -#: ../../../CHANGES.rst:578 +#: ../../../CHANGES.rst:1232 msgid ":code:`Message.edit_media(...)`" msgstr "" -#: ../../../CHANGES.rst:579 +#: ../../../CHANGES.rst:1233 msgid ":code:`Message.edit_live_location(...)`" msgstr "" -#: ../../../CHANGES.rst:580 +#: ../../../CHANGES.rst:1234 msgid ":code:`Message.stop_live_location(...)`" msgstr "" -#: ../../../CHANGES.rst:581 +#: ../../../CHANGES.rst:1235 msgid ":code:`Message.pin(...)`" msgstr "" -#: ../../../CHANGES.rst:582 +#: ../../../CHANGES.rst:1236 msgid ":code:`Message.unpin()`" msgstr "" -#: ../../../CHANGES.rst:583 +#: ../../../CHANGES.rst:1237 msgid "`#1030 `_" msgstr "" -#: ../../../CHANGES.rst:584 +#: ../../../CHANGES.rst:1238 msgid "Added following methods to :code:`User` class:" msgstr "" -#: ../../../CHANGES.rst:586 +#: ../../../CHANGES.rst:1240 msgid ":code:`User.mention_markdown(...)`" msgstr "" -#: ../../../CHANGES.rst:587 +#: ../../../CHANGES.rst:1241 msgid ":code:`User.mention_html(...)`" msgstr "" -#: ../../../CHANGES.rst:588 +#: ../../../CHANGES.rst:1242 msgid "`#1049 `_" msgstr "" -#: ../../../CHANGES.rst:589 +#: ../../../CHANGES.rst:1243 msgid "" "Added full support of `Bot API 6.3 `_ `#1057 " "`_" msgstr "" -#: ../../../CHANGES.rst:596 +#: ../../../CHANGES.rst:1250 msgid "" "Fixed :code:`Message.send_invoice` and :code:`Message.reply_invoice`, " "added missing arguments `#1047 " "`_" msgstr "" -#: ../../../CHANGES.rst:598 +#: ../../../CHANGES.rst:1252 msgid "Fixed copy and forward in:" msgstr "" -#: ../../../CHANGES.rst:600 +#: ../../../CHANGES.rst:1254 msgid ":code:`Message.answer(...)`" msgstr "" -#: ../../../CHANGES.rst:601 +#: ../../../CHANGES.rst:1255 msgid ":code:`Message.copy_to(...)`" msgstr "" -#: ../../../CHANGES.rst:602 +#: ../../../CHANGES.rst:1256 msgid "`#1064 `_" msgstr "" -#: ../../../CHANGES.rst:608 +#: ../../../CHANGES.rst:1262 msgid "" "Fixed UA translations in index.po `#1017 " "`_" msgstr "" -#: ../../../CHANGES.rst:610 +#: ../../../CHANGES.rst:1264 msgid "" "Fix typehints for :code:`Message`, :code:`reply_media_group` and " ":code:`answer_media_group` methods `#1029 " "`_" msgstr "" -#: ../../../CHANGES.rst:612 +#: ../../../CHANGES.rst:1266 msgid "" "Removed an old now non-working feature `#1060 " "`_" msgstr "" -#: ../../../CHANGES.rst:619 +#: ../../../CHANGES.rst:1273 msgid "" "Enabled testing on Python 3.11 `#1044 " "`_" msgstr "" -#: ../../../CHANGES.rst:621 +#: ../../../CHANGES.rst:1275 msgid "" "Added a mandatory dependency :code:`certifi` in due to in some cases on " "systems that doesn't have updated ca-certificates the requests to Bot API" @@ -1162,23 +2378,23 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:626 +#: ../../../CHANGES.rst:1280 msgid "3.0.0b5 (2022-10-02)" msgstr "" -#: ../../../CHANGES.rst:631 +#: ../../../CHANGES.rst:1285 msgid "" "Add PyPy support and run tests under PyPy `#985 " "`_" msgstr "" -#: ../../../CHANGES.rst:633 +#: ../../../CHANGES.rst:1287 msgid "" "Added message text to aiogram exceptions representation `#988 " "`_" msgstr "" -#: ../../../CHANGES.rst:635 +#: ../../../CHANGES.rst:1289 msgid "" "Added warning about using magic filter from `magic_filter` instead of " "`aiogram`'s ones. Is recommended to use `from aiogram import F` instead " @@ -1186,61 +2402,61 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:638 +#: ../../../CHANGES.rst:1292 msgid "" "Added more detailed error when server response can't be deserialized. " "This feature will help to debug unexpected responses from the Server " "`#1014 `_" msgstr "" -#: ../../../CHANGES.rst:645 +#: ../../../CHANGES.rst:1299 msgid "" "Reworked error event, introduced " ":class:`aiogram.types.error_event.ErrorEvent` object. `#898 " "`_" msgstr "" -#: ../../../CHANGES.rst:647 +#: ../../../CHANGES.rst:1301 msgid "" "Fixed escaping markdown in `aiogram.utils.markdown` module `#903 " "`_" msgstr "" -#: ../../../CHANGES.rst:649 +#: ../../../CHANGES.rst:1303 msgid "" "Fixed polling crash when Telegram Bot API raises HTTP 429 status-code. " "`#995 `_" msgstr "" -#: ../../../CHANGES.rst:651 +#: ../../../CHANGES.rst:1305 msgid "" "Fixed empty mention in command parsing, now it will be None instead of an" " empty string `#1013 `_" msgstr "" -#: ../../../CHANGES.rst:658 +#: ../../../CHANGES.rst:1312 msgid "" "Initialized Docs translation (added Ukrainian language) `#925 " "`_" msgstr "" -#: ../../../CHANGES.rst:665 +#: ../../../CHANGES.rst:1319 msgid "" "Removed filters factory as described in corresponding issue. `#942 " "`_" msgstr "" -#: ../../../CHANGES.rst:672 +#: ../../../CHANGES.rst:1326 msgid "" "Now Router/Dispatcher accepts only keyword arguments. `#982 " "`_" msgstr "" -#: ../../../CHANGES.rst:677 +#: ../../../CHANGES.rst:1331 msgid "3.0.0b4 (2022-08-14)" msgstr "" -#: ../../../CHANGES.rst:682 +#: ../../../CHANGES.rst:1336 msgid "" "Add class helper ChatAction for constants that Telegram BotAPI uses in " "sendChatAction request. In my opinion, this will help users and will also" @@ -1248,198 +2464,198 @@ msgid "" "\"ChatActions\". `#803 `_" msgstr "" -#: ../../../CHANGES.rst:686 +#: ../../../CHANGES.rst:1340 msgid "Added possibility to combine filters or invert result" msgstr "" -#: ../../../CHANGES.rst:688 +#: ../../../CHANGES.rst:1342 msgid "Example:" msgstr "" -#: ../../../CHANGES.rst:696 +#: ../../../CHANGES.rst:1350 msgid "`#894 `_" msgstr "" -#: ../../../CHANGES.rst:697 +#: ../../../CHANGES.rst:1351 msgid "" "Fixed type hints for redis TTL params. `#922 " "`_" msgstr "" -#: ../../../CHANGES.rst:699 +#: ../../../CHANGES.rst:1353 msgid "" "Added `full_name` shortcut for `Chat` object `#929 " "`_" msgstr "" -#: ../../../CHANGES.rst:706 +#: ../../../CHANGES.rst:1360 msgid "" "Fixed false-positive coercing of Union types in API methods `#901 " "`_" msgstr "" -#: ../../../CHANGES.rst:708 +#: ../../../CHANGES.rst:1362 msgid "Added 3 missing content types:" msgstr "" -#: ../../../CHANGES.rst:710 +#: ../../../CHANGES.rst:1364 msgid "proximity_alert_triggered" msgstr "" -#: ../../../CHANGES.rst:711 +#: ../../../CHANGES.rst:1365 msgid "supergroup_chat_created" msgstr "" -#: ../../../CHANGES.rst:712 +#: ../../../CHANGES.rst:1366 msgid "channel_chat_created" msgstr "" -#: ../../../CHANGES.rst:713 +#: ../../../CHANGES.rst:1367 msgid "`#906 `_" msgstr "" -#: ../../../CHANGES.rst:714 +#: ../../../CHANGES.rst:1368 msgid "" "Fixed the ability to compare the state, now comparison to copy of the " "state will return `True`. `#927 " "`_" msgstr "" -#: ../../../CHANGES.rst:716 +#: ../../../CHANGES.rst:1370 msgid "" "Fixed default lock kwargs in RedisEventIsolation. `#972 " "`_" msgstr "" -#: ../../../CHANGES.rst:723 +#: ../../../CHANGES.rst:1377 msgid "" "Restrict including routers with strings `#896 " "`_" msgstr "" -#: ../../../CHANGES.rst:725 +#: ../../../CHANGES.rst:1379 msgid "" "Changed CommandPatterType to CommandPatternType in " "`aiogram/dispatcher/filters/command.py` `#907 " "`_" msgstr "" -#: ../../../CHANGES.rst:727 +#: ../../../CHANGES.rst:1381 msgid "" "Added full support of `Bot API 6.1 `_ `#936 " "`_" msgstr "" -#: ../../../CHANGES.rst:729 +#: ../../../CHANGES.rst:1383 msgid "**Breaking!** More flat project structure" msgstr "" -#: ../../../CHANGES.rst:731 +#: ../../../CHANGES.rst:1385 msgid "These packages was moved, imports in your code should be fixed:" msgstr "" -#: ../../../CHANGES.rst:733 +#: ../../../CHANGES.rst:1387 msgid ":code:`aiogram.dispatcher.filters` -> :code:`aiogram.filters`" msgstr "" -#: ../../../CHANGES.rst:734 +#: ../../../CHANGES.rst:1388 msgid ":code:`aiogram.dispatcher.fsm` -> :code:`aiogram.fsm`" msgstr "" -#: ../../../CHANGES.rst:735 +#: ../../../CHANGES.rst:1389 msgid ":code:`aiogram.dispatcher.handler` -> :code:`aiogram.handler`" msgstr "" -#: ../../../CHANGES.rst:736 +#: ../../../CHANGES.rst:1390 msgid ":code:`aiogram.dispatcher.webhook` -> :code:`aiogram.webhook`" msgstr "" -#: ../../../CHANGES.rst:737 +#: ../../../CHANGES.rst:1391 msgid "" ":code:`aiogram.dispatcher.flags/*` -> :code:`aiogram.dispatcher.flags` " "(single module instead of package)" msgstr "" -#: ../../../CHANGES.rst:738 +#: ../../../CHANGES.rst:1392 msgid "`#938 `_" msgstr "" -#: ../../../CHANGES.rst:739 +#: ../../../CHANGES.rst:1393 msgid "" "Removed deprecated :code:`router._handler` and " ":code:`router.register__handler` methods. `#941 " "`_" msgstr "" -#: ../../../CHANGES.rst:741 +#: ../../../CHANGES.rst:1395 msgid "" "Deprecated filters factory. It will be removed in next Beta (3.0b5) `#942" " `_" msgstr "" -#: ../../../CHANGES.rst:743 +#: ../../../CHANGES.rst:1397 msgid "" "`MessageEntity` method `get_text` was removed and `extract` was renamed " "to `extract_from` `#944 `_" msgstr "" -#: ../../../CHANGES.rst:745 +#: ../../../CHANGES.rst:1399 msgid "" "Added full support of `Bot API 6.2 `_ `#975 " "`_" msgstr "" -#: ../../../CHANGES.rst:750 +#: ../../../CHANGES.rst:1404 msgid "3.0.0b3 (2022-04-19)" msgstr "" -#: ../../../CHANGES.rst:755 +#: ../../../CHANGES.rst:1409 msgid "" "Added possibility to get command magic result as handler argument `#889 " "`_" msgstr "" -#: ../../../CHANGES.rst:757 +#: ../../../CHANGES.rst:1411 msgid "" "Added full support of `Telegram Bot API 6.0 " "`_ `#890 " "`_" msgstr "" -#: ../../../CHANGES.rst:764 +#: ../../../CHANGES.rst:1418 msgid "" "Fixed I18n lazy-proxy. Disabled caching. `#839 " "`_" msgstr "" -#: ../../../CHANGES.rst:766 +#: ../../../CHANGES.rst:1420 msgid "" "Added parsing of spoiler message entity `#865 " "`_" msgstr "" -#: ../../../CHANGES.rst:768 +#: ../../../CHANGES.rst:1422 msgid "" "Fixed default `parse_mode` for `Message.copy_to()` method. `#876 " "`_" msgstr "" -#: ../../../CHANGES.rst:770 +#: ../../../CHANGES.rst:1424 msgid "" "Fixed CallbackData factory parsing IntEnum's `#885 " "`_" msgstr "" -#: ../../../CHANGES.rst:777 +#: ../../../CHANGES.rst:1431 msgid "" "Added automated check that pull-request adds a changes description to " "**CHANGES** directory `#873 " "`_" msgstr "" -#: ../../../CHANGES.rst:779 +#: ../../../CHANGES.rst:1433 msgid "" "Changed :code:`Message.html_text` and :code:`Message.md_text` attributes " "behaviour when message has no text. The empty string will be used instead" @@ -1447,14 +2663,14 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:782 +#: ../../../CHANGES.rst:1436 msgid "" "Used `redis-py` instead of `aioredis` package in due to this packages was" " merged into single one `#882 " "`_" msgstr "" -#: ../../../CHANGES.rst:784 +#: ../../../CHANGES.rst:1438 msgid "" "Solved common naming problem with middlewares that confusing too much " "developers - now you can't see the `middleware` and `middlewares` " @@ -1463,113 +2679,113 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:791 +#: ../../../CHANGES.rst:1445 msgid "3.0.0b2 (2022-02-19)" msgstr "" -#: ../../../CHANGES.rst:796 +#: ../../../CHANGES.rst:1450 msgid "" "Added possibility to pass additional arguments into the aiohttp webhook " "handler to use this arguments inside handlers as the same as it possible " "in polling mode. `#785 `_" msgstr "" -#: ../../../CHANGES.rst:799 +#: ../../../CHANGES.rst:1453 msgid "" "Added possibility to add handler flags via decorator (like `pytest.mark` " "decorator but `aiogram.flags`) `#836 " "`_" msgstr "" -#: ../../../CHANGES.rst:801 +#: ../../../CHANGES.rst:1455 msgid "" "Added :code:`ChatActionSender` utility to automatically sends chat action" " while long process is running." msgstr "" -#: ../../../CHANGES.rst:803 +#: ../../../CHANGES.rst:1457 msgid "" "It also can be used as message middleware and can be customized via " ":code:`chat_action` flag. `#837 " "`_" msgstr "" -#: ../../../CHANGES.rst:810 +#: ../../../CHANGES.rst:1464 msgid "" "Fixed unexpected behavior of sequences in the StateFilter. `#791 " "`_" msgstr "" -#: ../../../CHANGES.rst:812 +#: ../../../CHANGES.rst:1466 msgid "" "Fixed exceptions filters `#827 " "`_" msgstr "" -#: ../../../CHANGES.rst:819 +#: ../../../CHANGES.rst:1473 msgid "" "Logger name for processing events is changed to :code:`aiogram.events`. " "`#830 `_" msgstr "" -#: ../../../CHANGES.rst:821 +#: ../../../CHANGES.rst:1475 msgid "" "Added full support of Telegram Bot API 5.6 and 5.7 `#835 " "`_" msgstr "" -#: ../../../CHANGES.rst:823 +#: ../../../CHANGES.rst:1477 msgid "" "**BREAKING** Events isolation mechanism is moved from FSM storages to " "standalone managers `#838 " "`_" msgstr "" -#: ../../../CHANGES.rst:829 +#: ../../../CHANGES.rst:1483 msgid "3.0.0b1 (2021-12-12)" msgstr "" -#: ../../../CHANGES.rst:834 +#: ../../../CHANGES.rst:1488 msgid "Added new custom operation for MagicFilter named :code:`as_`" msgstr "" -#: ../../../CHANGES.rst:836 +#: ../../../CHANGES.rst:1490 msgid "Now you can use it to get magic filter result as handler argument" msgstr "" -#: ../../../CHANGES.rst:852 +#: ../../../CHANGES.rst:1506 msgid "`#759 `_" msgstr "" -#: ../../../CHANGES.rst:858 +#: ../../../CHANGES.rst:1512 msgid "" "Fixed: Missing :code:`ChatMemberHandler` import in " ":code:`aiogram/dispatcher/handler` `#751 " "`_" msgstr "" -#: ../../../CHANGES.rst:865 +#: ../../../CHANGES.rst:1519 msgid "" "Check :code:`destiny` in case of no :code:`with_destiny` enabled in " "RedisStorage key builder `#776 " "`_" msgstr "" -#: ../../../CHANGES.rst:867 +#: ../../../CHANGES.rst:1521 msgid "" "Added full support of `Bot API 5.5 `_ `#777 " "`_" msgstr "" -#: ../../../CHANGES.rst:869 +#: ../../../CHANGES.rst:1523 msgid "" "Stop using feature from #336. From now settings of client-session should " "be placed as initializer arguments instead of changing instance " "attributes. `#778 `_" msgstr "" -#: ../../../CHANGES.rst:871 +#: ../../../CHANGES.rst:1525 msgid "" "Make TelegramAPIServer files wrapper in local mode bi-directional " "(server-client, client-server) Now you can convert local path to server " @@ -1577,11 +2793,11 @@ msgid "" "`_" msgstr "" -#: ../../../CHANGES.rst:877 +#: ../../../CHANGES.rst:1531 msgid "3.0.0a18 (2021-11-10)" msgstr "" -#: ../../../CHANGES.rst:882 +#: ../../../CHANGES.rst:1536 msgid "" "Breaking: Changed the signature of the session middlewares Breaking: " "Renamed AiohttpSession.make_request method parameter from call to method " @@ -1589,258 +2805,258 @@ msgid "" "outgoing requests `#716 `_" msgstr "" -#: ../../../CHANGES.rst:886 +#: ../../../CHANGES.rst:1540 msgid "" "Improved description of filters resolving error. For example when you try" " to pass wrong type of argument to the filter but don't know why filter " "is not resolved now you can get error like this:" msgstr "" -#: ../../../CHANGES.rst:896 +#: ../../../CHANGES.rst:1550 msgid "`#717 `_" msgstr "" -#: ../../../CHANGES.rst:897 +#: ../../../CHANGES.rst:1551 msgid "" "**Breaking internal API change** Reworked FSM Storage record keys " "propagation `#723 `_" msgstr "" -#: ../../../CHANGES.rst:900 +#: ../../../CHANGES.rst:1554 msgid "" "Implemented new filter named :code:`MagicData(magic_data)` that helps to " "filter event by data from middlewares or other filters" msgstr "" -#: ../../../CHANGES.rst:902 +#: ../../../CHANGES.rst:1556 msgid "" "For example your bot is running with argument named :code:`config` that " "contains the application config then you can filter event by value from " "this config:" msgstr "" -#: ../../../CHANGES.rst:908 +#: ../../../CHANGES.rst:1562 msgid "`#724 `_" msgstr "" -#: ../../../CHANGES.rst:914 +#: ../../../CHANGES.rst:1568 msgid "" "Fixed I18n context inside error handlers `#726 " "`_" msgstr "" -#: ../../../CHANGES.rst:916 +#: ../../../CHANGES.rst:1570 msgid "" "Fixed bot session closing before emit shutdown `#734 " "`_" msgstr "" -#: ../../../CHANGES.rst:918 +#: ../../../CHANGES.rst:1572 msgid "" "Fixed: bound filter resolving does not require children routers `#736 " "`_" msgstr "" -#: ../../../CHANGES.rst:925 +#: ../../../CHANGES.rst:1579 msgid "" "Enabled testing on Python 3.10 Removed `async_lru` dependency (is " "incompatible with Python 3.10) and replaced usage with protected property" " `#719 `_" msgstr "" -#: ../../../CHANGES.rst:928 +#: ../../../CHANGES.rst:1582 msgid "" "Converted README.md to README.rst and use it as base file for docs `#725 " "`_" msgstr "" -#: ../../../CHANGES.rst:930 +#: ../../../CHANGES.rst:1584 msgid "Rework filters resolving:" msgstr "" -#: ../../../CHANGES.rst:932 +#: ../../../CHANGES.rst:1586 msgid "Automatically apply Bound Filters with default values to handlers" msgstr "" -#: ../../../CHANGES.rst:933 +#: ../../../CHANGES.rst:1587 msgid "Fix data transfer from parent to included routers filters" msgstr "" -#: ../../../CHANGES.rst:934 +#: ../../../CHANGES.rst:1588 msgid "`#727 `_" msgstr "" -#: ../../../CHANGES.rst:935 +#: ../../../CHANGES.rst:1589 msgid "" "Added full support of Bot API 5.4 https://core.telegram.org/bots/api-" "changelog#november-5-2021 `#744 " "`_" msgstr "" -#: ../../../CHANGES.rst:941 +#: ../../../CHANGES.rst:1595 msgid "3.0.0a17 (2021-09-24)" msgstr "" -#: ../../../CHANGES.rst:946 +#: ../../../CHANGES.rst:1600 msgid "" "Added :code:`html_text` and :code:`md_text` to Message object `#708 " "`_" msgstr "" -#: ../../../CHANGES.rst:948 +#: ../../../CHANGES.rst:1602 msgid "" "Refactored I18n, added context managers for I18n engine and current " "locale `#709 `_" msgstr "" -#: ../../../CHANGES.rst:953 +#: ../../../CHANGES.rst:1607 msgid "3.0.0a16 (2021-09-22)" msgstr "" -#: ../../../CHANGES.rst:958 +#: ../../../CHANGES.rst:1612 msgid "Added support of local Bot API server files downloading" msgstr "" -#: ../../../CHANGES.rst:960 +#: ../../../CHANGES.rst:1614 msgid "" "When Local API is enabled files can be downloaded via " "`bot.download`/`bot.download_file` methods. `#698 " "`_" msgstr "" -#: ../../../CHANGES.rst:962 +#: ../../../CHANGES.rst:1616 msgid "" "Implemented I18n & L10n support `#701 " "`_" msgstr "" -#: ../../../CHANGES.rst:969 +#: ../../../CHANGES.rst:1623 msgid "" "Covered by tests and docs KeyboardBuilder util `#699 " "`_" msgstr "" -#: ../../../CHANGES.rst:971 +#: ../../../CHANGES.rst:1625 msgid "**Breaking!!!**. Refactored and renamed exceptions." msgstr "" -#: ../../../CHANGES.rst:973 +#: ../../../CHANGES.rst:1627 msgid "" "Exceptions module was moved from :code:`aiogram.utils.exceptions` to " ":code:`aiogram.exceptions`" msgstr "" -#: ../../../CHANGES.rst:974 +#: ../../../CHANGES.rst:1628 msgid "Added prefix `Telegram` for all error classes" msgstr "" -#: ../../../CHANGES.rst:975 +#: ../../../CHANGES.rst:1629 msgid "`#700 `_" msgstr "" -#: ../../../CHANGES.rst:976 +#: ../../../CHANGES.rst:1630 msgid "" "Replaced all :code:`pragma: no cover` marks via global " ":code:`.coveragerc` config `#702 " "`_" msgstr "" -#: ../../../CHANGES.rst:978 +#: ../../../CHANGES.rst:1632 msgid "Updated dependencies." msgstr "" -#: ../../../CHANGES.rst:980 +#: ../../../CHANGES.rst:1634 msgid "" "**Breaking for framework developers** Now all optional dependencies " "should be installed as extra: `poetry install -E fast -E redis -E proxy " "-E i18n -E docs` `#703 `_" msgstr "" -#: ../../../CHANGES.rst:986 +#: ../../../CHANGES.rst:1640 msgid "3.0.0a15 (2021-09-10)" msgstr "" -#: ../../../CHANGES.rst:991 +#: ../../../CHANGES.rst:1645 msgid "" "Ability to iterate over all states in StatesGroup. Aiogram already had in" " check for states group so this is relative feature. `#666 " "`_" msgstr "" -#: ../../../CHANGES.rst:999 +#: ../../../CHANGES.rst:1653 msgid "" "Fixed incorrect type checking in the " ":class:`aiogram.utils.keyboard.KeyboardBuilder` `#674 " "`_" msgstr "" -#: ../../../CHANGES.rst:1006 +#: ../../../CHANGES.rst:1660 msgid "" "Disable ContentType filter by default `#668 " "`_" msgstr "" -#: ../../../CHANGES.rst:1008 +#: ../../../CHANGES.rst:1662 msgid "" "Moved update type detection from Dispatcher to Update object `#669 " "`_" msgstr "" -#: ../../../CHANGES.rst:1010 +#: ../../../CHANGES.rst:1664 msgid "" "Updated **pre-commit** config `#681 " "`_" msgstr "" -#: ../../../CHANGES.rst:1012 +#: ../../../CHANGES.rst:1666 msgid "" "Reworked **handlers_in_use** util. Function moved to Router as method " "**.resolve_used_update_types()** `#682 " "`_" msgstr "" -#: ../../../CHANGES.rst:1017 +#: ../../../CHANGES.rst:1671 msgid "3.0.0a14 (2021-08-17)" msgstr "" -#: ../../../CHANGES.rst:1022 +#: ../../../CHANGES.rst:1676 msgid "" "add aliases for edit/delete reply markup to Message `#662 " "`_" msgstr "" -#: ../../../CHANGES.rst:1024 +#: ../../../CHANGES.rst:1678 msgid "" "Reworked outer middleware chain. Prevent to call many times the outer " "middleware for each nested router `#664 " "`_" msgstr "" -#: ../../../CHANGES.rst:1031 +#: ../../../CHANGES.rst:1685 msgid "" "Prepare parse mode for InputMessageContent in AnswerInlineQuery method " "`#660 `_" msgstr "" -#: ../../../CHANGES.rst:1038 +#: ../../../CHANGES.rst:1692 msgid "" "Added integration with :code:`towncrier` `#602 " "`_" msgstr "" -#: ../../../CHANGES.rst:1045 +#: ../../../CHANGES.rst:1699 msgid "" "Added `.editorconfig` `#650 " "`_" msgstr "" -#: ../../../CHANGES.rst:1047 +#: ../../../CHANGES.rst:1701 msgid "" "Redis storage speedup globals `#651 " "`_" msgstr "" -#: ../../../CHANGES.rst:1049 +#: ../../../CHANGES.rst:1703 msgid "" "add allow_sending_without_reply param to Message reply aliases `#663 " "`_" @@ -3369,3 +4585,6 @@ msgstr "" #~ " 👉 :ref:`Scenes `. `#1280 " #~ "`_" #~ msgstr "" + +#~ msgid "\\ |release| [UNRELEASED DRAFT] (2024-02-16)" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/contributing.po b/docs/locale/uk_UA/LC_MESSAGES/contributing.po index 57c134f1..ab57b8da 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/contributing.po +++ b/docs/locale/uk_UA/LC_MESSAGES/contributing.po @@ -8,39 +8,39 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-26 23:17+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../contributing.rst:3 msgid "Contributing" -msgstr "" +msgstr "Сприяння розробці" #: ../../contributing.rst:5 msgid "You're welcome to contribute to aiogram!" -msgstr "" +msgstr "Ласкаво просимо зробити свій внесок у aiogram!" #: ../../contributing.rst:7 msgid "" "*aiogram* is an open-source project, and anyone can contribute to it in " "any possible way" -msgstr "" +msgstr "*aiogram* є проєктом з відкритим вихідним кодом, і будь-хто може зробити свій внесок у будь-який можливий спосіб" #: ../../contributing.rst:11 msgid "Developing" -msgstr "" +msgstr "Розробка" #: ../../contributing.rst:13 msgid "" "Before making any changes in the framework code, it is necessary to fork " "the project and clone the project to your PC and know how to do a pull-" "request." -msgstr "" +msgstr "Перш ніж вносити будь-які зміни в код фреймворка, потрібно створити форк проєкту, клонувати проєкт на свій комп’ютер і розуміти, як робити запит на витяг (pull-request)." #: ../../contributing.rst:16 msgid "" @@ -48,274 +48,276 @@ msgid "" "`_" -msgstr "" +msgstr "Як працювати із запитами на витяг (pull-request), можна прочитати в `документації GitHub `_" #: ../../contributing.rst:18 msgid "" "Also in due to this project is written in Python, you will need Python to" " be installed (is recommended to use latest Python versions, but any " "version starting from 3.8 can be used)" -msgstr "" +msgstr "Оскільки цей проєкт написаний на Python, вам потрібно встановити Python (рекомендується використовувати останні версії Python, але можна використовувати будь-яку версію, починаючи з 3.8)" #: ../../contributing.rst:23 msgid "Use virtualenv" -msgstr "" +msgstr "Використовуйте virtualenv" #: ../../contributing.rst:25 msgid "" "You can create a virtual environment in a directory using :code:`venv` " "module (it should be pre-installed by default):" -msgstr "" +msgstr "Ви можете створити віртуальне середовище в каталозі, використовуючи модуль :code:`venv` (він повинен бути попередньо встановлений за замовчуванням):" #: ../../contributing.rst:31 msgid "" "This action will create a :code:`.venv` directory with the Python " "binaries and then you will be able to install packages into that isolated" " environment." -msgstr "" +msgstr "Ця дія створить каталог :code:`.venv` з виконуваними файлами Python, і тоді ви зможете встановлювати пакунки в цьому ізольованому середовищі." #: ../../contributing.rst:36 msgid "Activate the environment" -msgstr "" +msgstr "Активуйте середовище" #: ../../contributing.rst:38 ../../contributing.rst:77 msgid "Linux / macOS:" -msgstr "" +msgstr "Linux / macOS:" #: ../../contributing.rst:44 msgid "Windows cmd" -msgstr "" +msgstr "Windows cmd" #: ../../contributing.rst:50 msgid "Windows PowerShell" -msgstr "" +msgstr "Windows PowerShell" #: ../../contributing.rst:56 msgid "" "To check it worked, use described command, it should show the :code:`pip`" " version and location inside the isolated environment" -msgstr "" +msgstr "Щоб перевірити, що все працює, скористайтеся описаною командою, яка повинна показати версію :code:`pip` і його розташування в ізольованому середовищі" #: ../../contributing.rst:64 msgid "" "Also make sure you have the latest pip version in your virtual " "environment to avoid errors on next steps:" -msgstr "" +msgstr "Також переконайтеся, що у вас найновіша версія pip у вашому віртуальному середовищі, щоб уникнути помилок на наступних етапах:" #: ../../contributing.rst:73 msgid "Setup project" -msgstr "" +msgstr "Налаштування проєкту" #: ../../contributing.rst:75 msgid "" "After activating the environment install `aiogram` from sources and their" " dependencies." -msgstr "" +msgstr "Після активації середовища встановіть `aiogram` із вихідних кодів разом із їх залежностями." #: ../../contributing.rst:83 msgid "Windows:" -msgstr "" +msgstr "Windows:" #: ../../contributing.rst:89 msgid "" "It will install :code:`aiogram` in editable mode into your virtual " "environment and all dependencies." -msgstr "" +msgstr "Це встановить :code:`aiogram` у режимі редагування у ваше віртуальне середовище та всі залежності." #: ../../contributing.rst:92 msgid "Making changes in code" -msgstr "" +msgstr "Внесення змін у код" #: ../../contributing.rst:94 msgid "" "At this point you can make any changes in the code that you want, it can " "be any fixes, implementing new features or experimenting." -msgstr "" +msgstr "На цьому етапі ви можете вносити будь-які зміни у код, які бажаєте, це можуть бути виправлення, впровадження нових функцій або експерименти." #: ../../contributing.rst:99 msgid "Format the code (code-style)" -msgstr "" +msgstr "Форматування коду (стиль коду)" #: ../../contributing.rst:101 msgid "" "Note that this project is Black-formatted, so you should follow that " "code-style, too be sure You're correctly doing this let's reformat the " "code automatically:" -msgstr "" +msgstr "Зверніть увагу, що цей проєкт використовує форматування Black, тому ви також маєте дотримуватись цього стилю коду. Щоб упевнитись, що ви робите це правильно, відформатуйте код автоматично:" #: ../../contributing.rst:111 msgid "Run tests" -msgstr "" +msgstr "Запуск тестів" #: ../../contributing.rst:113 msgid "All changes should be tested:" -msgstr "" +msgstr "Всі зміни повинні бути протестовані:" #: ../../contributing.rst:119 msgid "" -"Also if you are doing something with Redis-storage, you will need to test" -" everything works with Redis:" -msgstr "" +"Also if you are doing something with Redis-storage or/and MongoDB-" +"storage, you will need to test everything works with Redis or/and " +"MongoDB:" +msgstr "Крім того, якщо ви працюєте з Redis-сховищем і/або сховищем MongoDB, вам потрібно протестувати, чи все працює з Redis і/або MongoDB:" -#: ../../contributing.rst:126 +#: ../../contributing.rst:127 msgid "Docs" -msgstr "" +msgstr "Документація" -#: ../../contributing.rst:128 +#: ../../contributing.rst:129 msgid "" "We are using `Sphinx` to render docs in different languages, all sources " "located in `docs` directory, you can change the sources and to test it " "you can start live-preview server and look what you are doing:" -msgstr "" +msgstr "Ми використовуємо `Sphinx` для створення документації різними мовами. Всі вихідні файли знаходяться в каталозі `docs`. Ви можете змінювати джерела та тестувати їх, запустивши сервер попереднього перегляду, щоб побачити, що ви робите:" -#: ../../contributing.rst:137 +#: ../../contributing.rst:138 msgid "Docs translations" -msgstr "" +msgstr "Переклади документації" -#: ../../contributing.rst:139 +#: ../../contributing.rst:140 msgid "" "Translation of the documentation is very necessary and cannot be done " "without the help of the community from all over the world, so you are " "welcome to translate the documentation into different languages." -msgstr "" +msgstr "Переклад документації є дуже важливим і не може бути виконаний без допомоги спільноти зі всього світу, тому ми запрошуємо вас перекладати документацію різними мовами." -#: ../../contributing.rst:143 +#: ../../contributing.rst:144 msgid "Before start, let's up to date all texts:" -msgstr "" +msgstr "Перш ніж почати, оновіть усі тексти:" -#: ../../contributing.rst:151 +#: ../../contributing.rst:152 msgid "" "Change the :code:`` in example below to the target " "language code, after that you can modify texts inside " ":code:`docs/locale//LC_MESSAGES` as :code:`*.po` files by " "using any text-editor or specialized utilites for GNU Gettext, for " "example via `poedit `_." -msgstr "" +msgstr "Змініть :code:`` у прикладі нижче на код цільової мови, після цього ви можете змінювати тексти в :code:`docs/locale//LC_MESSAGES` як файли :code:`*.po`, використовуючи будь-який текстовий редактор або спеціалізовані утиліти для GNU Gettext, наприклад за допомогою `poedit `_." -#: ../../contributing.rst:156 +#: ../../contributing.rst:157 msgid "To view results:" -msgstr "" +msgstr "Щоб переглянути результати:" -#: ../../contributing.rst:164 +#: ../../contributing.rst:165 msgid "Describe changes" -msgstr "" +msgstr "Опишіть зміни" -#: ../../contributing.rst:166 +#: ../../contributing.rst:167 msgid "" "Describe your changes in one or more sentences so that bot developers " "know what's changed in their favorite framework - create " "`..rst` file and write the description." -msgstr "" +msgstr "Опишіть свої зміни одним або кількома реченнями, щоб розробники ботів знали, що змінилося у їхньому улюбленому фреймворку. Створіть файл `..rst` і напишіть опис." -#: ../../contributing.rst:169 +#: ../../contributing.rst:170 msgid "" ":code:`` is Issue or Pull-request number, after release link to " "this issue will be published to the *Changelog* page." -msgstr "" +msgstr ":code:`` — це номер issue або запиту на витяг (pull-request). Після релізу посилання на цей issue буде опубліковано на сторінці *Changelog*." -#: ../../contributing.rst:172 +#: ../../contributing.rst:173 msgid ":code:`` is a changes category marker, it can be one of:" -msgstr "" - -#: ../../contributing.rst:174 -msgid ":code:`feature` - when you are implementing new feature" -msgstr "" +msgstr ":code:`` — це маркер категорії змін, і це може бути одне з наступного:" #: ../../contributing.rst:175 -msgid ":code:`bugfix` - when you fix a bug" -msgstr "" +msgid ":code:`feature` - when you are implementing new feature" +msgstr ":code:`feature` — якщо ви впроваджуєте нову функцію" #: ../../contributing.rst:176 -msgid ":code:`doc` - when you improve the docs" -msgstr "" +msgid ":code:`bugfix` - when you fix a bug" +msgstr ":code:`bugfix` — якщо ви виправляєте помилку" #: ../../contributing.rst:177 -msgid ":code:`removal` - when you remove something from the framework" -msgstr "" +msgid ":code:`doc` - when you improve the docs" +msgstr ":code:`doc` — якщо ви покращуєте документацію" #: ../../contributing.rst:178 +msgid ":code:`removal` - when you remove something from the framework" +msgstr ":code:`removal` — якщо ви видаляєте щось із фреймворку" + +#: ../../contributing.rst:179 msgid "" ":code:`misc` - when changed something inside the Core or project " "configuration" -msgstr "" +msgstr ":code:`misc` — якщо ви змінили щось усередині ядра або конфігурації проєкту" -#: ../../contributing.rst:180 +#: ../../contributing.rst:181 msgid "" "If you have troubles with changing category feel free to ask Core-" "contributors to help with choosing it." -msgstr "" +msgstr "Якщо у вас виникли труднощі з вибором категорії, не соромтеся звертатися до основних контриб'юторів за допомогою." -#: ../../contributing.rst:183 +#: ../../contributing.rst:184 msgid "Complete" -msgstr "" +msgstr "Завершення" -#: ../../contributing.rst:185 +#: ../../contributing.rst:186 msgid "" "After you have made all your changes, publish them to the repository and " "create a pull request as mentioned at the beginning of the article and " "wait for a review of these changes." -msgstr "" +msgstr "Після того, як ви внесли всі зміни, опублікуйте їх у репозиторії і створіть запит на витяг, як зазначено в початку статті, і зачекайте на перегляд цих змін." -#: ../../contributing.rst:190 +#: ../../contributing.rst:191 msgid "Star on GitHub" -msgstr "" +msgstr "Зірка на GitHub" -#: ../../contributing.rst:192 +#: ../../contributing.rst:193 msgid "" "You can \"star\" repository on GitHub - " "https://github.com/aiogram/aiogram (click the star button at the top " "right)" -msgstr "" +msgstr "Ви можете «зіркувати» репозиторій на GitHub -" +"https://github.com/aiogram/aiogram (натисніть кнопку зірки в правому верхньому куті)" -#: ../../contributing.rst:194 +#: ../../contributing.rst:195 msgid "" "Adding stars makes it easier for other people to find this project and " "understand how useful it is." -msgstr "" +msgstr "Додавання зірок полегшує іншим людям знаходження цього проекту і розуміння того, наскільки він корисний." -#: ../../contributing.rst:197 +#: ../../contributing.rst:198 msgid "Guides" -msgstr "" +msgstr "Інструкції" -#: ../../contributing.rst:199 +#: ../../contributing.rst:200 msgid "" "You can write guides how to develop Bots on top of aiogram and publish it" " into YouTube, Medium, GitHub Books, any Courses platform or any other " "platform that you know." -msgstr "" +msgstr "Ви можете написати посібники, як розробляти ботів на основі aiogram і публікувати їх на YouTube, Medium, GitHub Books, будь-якій платформі курсів або на будь-якій іншій платформі, яку ви знаєте." -#: ../../contributing.rst:202 +#: ../../contributing.rst:203 msgid "" "This will help more people learn about the framework and learn how to use" " it" -msgstr "" +msgstr "Це допоможе більшій кількості людей дізнатися про фреймворк і навчитися його використовувати." -#: ../../contributing.rst:206 +#: ../../contributing.rst:207 msgid "Take answers" -msgstr "" +msgstr "Запитання" -#: ../../contributing.rst:208 +#: ../../contributing.rst:209 msgid "" "The developers is always asks for any question in our chats or any other " "platforms like GitHub Discussions, StackOverflow and others, feel free to" " answer to this questions." -msgstr "" +msgstr "Розробники завжди задають питання в наших чатах або на інших платформах, таких як GitHub Discussions, StackOverflow та інших, не соромтеся відповідати на ці питання." -#: ../../contributing.rst:212 +#: ../../contributing.rst:213 msgid "Funding" -msgstr "" +msgstr "Фінансова підтримка" -#: ../../contributing.rst:214 +#: ../../contributing.rst:215 msgid "" "The development of the project is free and not financed by commercial " "organizations, it is my personal initiative (`@JRootJunior " "`_) and I am engaged in the development of the " "project in my free time." -msgstr "" +msgstr "Розробка проекту є безкоштовною і не фінансується комерційними організаціями, це моя особиста ініціатива (`@JRootJunior `_) і я займаюся розробкою проекту у вільний час." -#: ../../contributing.rst:218 +#: ../../contributing.rst:219 msgid "" "So, if you want to financially support the project, or, for example, give" " me a pizza or a beer, you can do it on `OpenCollective " "`_." -msgstr "" +msgstr "Тож, якщо ви хочете фінансово підтримати проект, або, наприклад, купити мені піцу чи пиво, ви можете зробити це на `OpenCollective `_." diff --git a/docs/locale/uk_UA/LC_MESSAGES/dispatcher/dependency_injection.po b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/dependency_injection.po index b3e158d8..aff32317 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/dispatcher/dependency_injection.po +++ b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/dependency_injection.po @@ -8,18 +8,18 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-26 23:17+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../dispatcher/dependency_injection.rst:3 msgid "Dependency injection" -msgstr "" +msgstr "Ін'єкція залежностей" #: ../../dispatcher/dependency_injection.rst:5 msgid "" @@ -29,10 +29,14 @@ msgid "" "`_ dependency inversion and single " "responsibility principles." msgstr "" +"Ін'єкція залежностей — це техніка програмування, яка робить класи " +"незалежними від їхніх залежностей. Вона досягається шляхом відділення " +"використання об'єкта від його створення. Це допомагає дотримуватися " +"принципів інверсії залежностей та єдиної відповідальності за SOLID." #: ../../dispatcher/dependency_injection.rst:12 msgid "How it works in aiogram" -msgstr "" +msgstr "Як це працює в aiogram" #: ../../dispatcher/dependency_injection.rst:14 msgid "" @@ -40,6 +44,9 @@ msgid "" "handling context data. Filters and middleware can also make changes to " "the context." msgstr "" +"Для кожного оновлення :class:`aiogram.dispatcher.dispatcher.Dispatcher` " +"передає дані контексту обробки. Фільтри та проміжне програмне забезпечення " +"також можуть вносити зміни до контексту." #: ../../dispatcher/dependency_injection.rst:17 msgid "" @@ -47,14 +54,17 @@ msgid "" "parameter in handler or filter. For example, to get " ":class:`aiogram.fsm.context.FSMContext` we do it like that:" msgstr "" +"Щоб отримати доступ до контекстних даних, ви повинні вказати відповідний " +"параметр ключового слова в обробнику або фільтрі. Наприклад, щоб отримати " +":class:`aiogram.fsm.context.FSMContext`, ми робимо це так:" #: ../../dispatcher/dependency_injection.rst:30 msgid "Injecting own dependencies" -msgstr "" +msgstr "Ін'єкція власних залежностей" #: ../../dispatcher/dependency_injection.rst:32 msgid "Aiogram provides several ways to complement / modify contextual data." -msgstr "" +msgstr "Aiogram надає кілька способів для доповнення/модифікації контекстних даних." #: ../../dispatcher/dependency_injection.rst:34 msgid "" @@ -64,33 +74,134 @@ msgid "" ":class:`aiogram.webhook.aiohttp_server.SimpleRequestHandler` " "initialization if you use webhooks." msgstr "" +"Перший і найпростіший спосіб — це просто вказати іменовані аргументи під час " +"ініціалізації :class:`aiogram.dispatcher.dispatcher.Dispatcher`, запуску методів " +"опитування або ініціалізації " +":class:`aiogram.webhook.aiohttp_server.SimpleRequestHandler`, якщо ви використовуєте вебхуки." #: ../../dispatcher/dependency_injection.rst:46 msgid "Analogy for webhook:" -msgstr "" +msgstr "Аналогія для вебхука:" #: ../../dispatcher/dependency_injection.rst:55 msgid "" ":class:`aiogram.dispatcher.dispatcher.Dispatcher`'s workflow data also " "can be supplemented by setting values as in a dictionary:" msgstr "" +"Дані робочого процесу :class:`aiogram.dispatcher.dispatcher.Dispatcher` також можуть " +"доповнюватися шляхом встановлення значень, як у словнику:" #: ../../dispatcher/dependency_injection.rst:63 msgid "" "The middlewares updates the context quite often. You can read more about " "them on this page:" msgstr "" +"Проміжне програмне забезпечення досить часто оновлює контекст. Ви можете " +"прочитати про це більше на цій сторінці:" #: ../../dispatcher/dependency_injection.rst:66 msgid ":ref:`Middlewares `" -msgstr "" +msgstr ":ref:`Проміжне програмне забезпечення `" #: ../../dispatcher/dependency_injection.rst:68 msgid "The last way is to return a dictionary from the filter:" -msgstr "" +msgstr "Останній спосіб — повернути словник із фільтра:" #: ../../dispatcher/dependency_injection.rst:72 msgid "" "...or using :ref:`MagicFilter ` with :code:`.as_(...)` " "method." msgstr "" +"...або використовуючи :ref:`MagicFilter ` з методом " +":code:`.as_(...)`." + +#: ../../dispatcher/dependency_injection.rst:76 +msgid "Using type hints" +msgstr "Використання підказок типів" + +#: ../../dispatcher/dependency_injection.rst:80 +msgid "" +"Type-hinting middleware data is optional and is not required for the " +"correct operation of the dispatcher. However, it is recommended to use it" +" to improve the readability of the code." +msgstr "" +"Використання підказок типів для даних проміжного програмного забезпечення " +"необов'язкове й не потрібне для правильної роботи диспетчера. Проте " +"рекомендується використовувати їх для покращення читабельності коду." + +#: ../../dispatcher/dependency_injection.rst:83 +msgid "" +"You can use type hints to specify the type of the context data in the " +"middlewares, filters and handlers." +msgstr "" +"Ви можете використовувати підказки типів для визначення типу контекстних " +"даних у проміжному ПЗ, фільтрах та обробниках." + +#: ../../dispatcher/dependency_injection.rst:85 +msgid "" +"The default middleware data typed dict can be found in " +":class:`aiogram.dispatcher.middlewares.data.MiddlewareData`." +msgstr "" +"Словник типів даних за замовчуванням для проміжного ПЗ можна знайти в " +":class:`aiogram.dispatcher.middlewares.data.MiddlewareData`." + +#: ../../dispatcher/dependency_injection.rst:87 +msgid "" +"In case when you have extended the context data, you can use the " +":class:`aiogram.dispatcher.middlewares.data.MiddlewareData` as a base " +"class and specify the type hints for the new fields." +msgstr "" +"Якщо ви розширили контекстні дані, ви можете використовувати " +":class:`aiogram.dispatcher.middlewares.data.MiddlewareData` як базовий клас " +"та вказати підказки типів для нових полів." + +#: ../../dispatcher/dependency_injection.rst:91 +msgid "" +"If you using type checking tools like mypy, you can experience warnings " +"about that this type hint against Liskov substitution principle in due " +"stricter type is not a subclass of :code:`dict[str, Any]`. This is a " +"known issue and it is not a bug. You can ignore this warning or use " +":code:`# type: ignore` comment." +msgstr "" +"Якщо ви використовуєте інструменти перевірки типів, такі як mypy, ви " +"можете отримати попередження про те, що ці підказки типів порушують " +"принцип підстановки Лісков через те, що суворіший тип не є підкласом " +":code:`dict[str, Any]`. Це відома проблема, і це не є помилкою. Ви можете " +"проігнорувати це попередження або використати коментар :code:`# type: ignore`." + +#: ../../dispatcher/dependency_injection.rst:94 +msgid "Example of using type hints:" +msgstr "Приклад використання підказок типів:" + +#: ../../dispatcher/dependency_injection.rst:119 +msgid "Available context data type helpers" +msgstr "Доступні помічники для типів контекстних даних" + +#: aiogram.dispatcher.middlewares.data.MiddlewareData:1 of +msgid "Data passed to the handler by the middlewares." +msgstr "Дані, передані обробнику проміжним ПЗ." + +#: aiogram.dispatcher.middlewares.data.MiddlewareData:3 of +msgid "You can add your own data by extending this class." +msgstr "Ви можете додати власні дані, розширивши цей клас." + +#: aiogram.dispatcher.middlewares.data.I18nData:1 of +msgid "I18n related data." +msgstr "Дані, пов'язані з I18n." + +#: aiogram.dispatcher.middlewares.data.I18nData:3 of +msgid "" +"Is not included by default, you need to add it to your own Data class if " +"you need it." +msgstr "" +"За замовчуванням не включено, вам потрібно додати це до власного класу Даних, " +"якщо це необхідно." + +#: ../../docstring aiogram.dispatcher.middlewares.data.I18nData.i18n:1 of +msgid "I18n object." +msgstr "Об'єкт I18n." + +#: ../../docstring +#: aiogram.dispatcher.middlewares.data.I18nData.i18n_middleware:1 of +msgid "I18n middleware." +msgstr "Проміжне ПЗ для I18n." diff --git a/docs/locale/uk_UA/LC_MESSAGES/dispatcher/dispatcher.po b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/dispatcher.po index 341c7eb3..6e922b5c 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/dispatcher/dispatcher.po +++ b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/dispatcher.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: 2022-12-10 19:44+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -21,9 +21,11 @@ msgid "Dispatcher" msgstr "Диспетчер" #: ../../dispatcher/dispatcher.rst:5 +#, fuzzy msgid "" -"Dispatcher is root :obj:`Router` and in code Dispatcher can be used " -"directly for routing updates or attach another routers into dispatcher." +"Dispatcher is root :class:`~aiogram.dispatcher.router.Router` and in code" +" Dispatcher can be used directly for routing updates or attach another " +"routers into dispatcher." msgstr "" "Диспетчер - це кореневий маршрутизатор, і в коді диспетчер може " "використовуватися безпосередньо для маршрутизації подій або підключення " @@ -41,22 +43,18 @@ msgstr "" #: ../../dispatcher/dispatcher.rst:9 #, fuzzy msgid ":ref:`Router `" -msgstr "`Router `__" +msgstr "`Маршрутизатор `__" #: ../../dispatcher/dispatcher.rst:10 msgid ":ref:`Filtering events`" -msgstr "" +msgstr ":ref:`Фільтрація подій`" #: aiogram.dispatcher.dispatcher.Dispatcher:1 #: aiogram.dispatcher.dispatcher.Dispatcher.__init__:1 of msgid "Root router" msgstr "Кореневий маршрутизатор" -#: aiogram.dispatcher.dispatcher.Dispatcher.__init__ -#: aiogram.dispatcher.dispatcher.Dispatcher.feed_raw_update -#: aiogram.dispatcher.dispatcher.Dispatcher.feed_update -#: aiogram.dispatcher.dispatcher.Dispatcher.run_polling -#: aiogram.dispatcher.dispatcher.Dispatcher.start_polling of +#: ../../dispatcher/dispatcher.rst msgid "Parameters" msgstr "Параметри" @@ -66,7 +64,7 @@ msgstr "Сховище для кінцевого автомату (FSM)" #: aiogram.dispatcher.dispatcher.Dispatcher.__init__:4 of msgid "FSM strategy" -msgstr "Стратегія кінцевого апарату" +msgstr "Стратегія кінцевого автомату" #: aiogram.dispatcher.dispatcher.Dispatcher.__init__:5 of msgid "Events isolation" @@ -77,9 +75,8 @@ msgid "" "Disable FSM, note that if you disable FSM then you should not use storage" " and events isolation" msgstr "" -"Відключення кінцевого апарату, зауважте що при вимкненому кінцевому " -"апаратові вам не слід використовувати сховище (кінцевого апарату) та " -"ізоляцію подій" +"Відключення кінцевого автомату, зауважте, що при вимкненому кінцевому " +"автоматі вам не слід використовувати сховище та ізоляцію подій" #: aiogram.dispatcher.dispatcher.Dispatcher.__init__:8 of msgid "Other arguments, will be passed as keyword arguments to handlers" @@ -89,103 +86,108 @@ msgstr "Інші аргументи будуть передані обробни msgid "" "Main entry point for incoming updates with automatic Dict->Update " "serializer" -msgstr "Основна точка входу для подій" +msgstr "Основна точка входу для подій з автоматичною серіалізацією Dict->Update" #: aiogram.dispatcher.dispatcher.Dispatcher.feed_update:1 of msgid "" "Main entry point for incoming updates Response of this method can be used" " as Webhook response" msgstr "" -"Основна точка входу для подій. Відповідь цього метода може бути " +"Основна точка входу для подій. Відповідь цього методу може бути " "використана для відповіді у Webhook" #: aiogram.dispatcher.dispatcher.Dispatcher.run_polling:1 of msgid "Run many bots with polling" -msgstr "Запуск кількох ботів з опитуванням" +msgstr "Запуск кількох ботів із використанням опитування" #: aiogram.dispatcher.dispatcher.Dispatcher.run_polling:3 #: aiogram.dispatcher.dispatcher.Dispatcher.start_polling:3 of #, fuzzy msgid "Bot instances (one or more)" -msgstr "Екземпляри ботів" +msgstr "Екземпляри ботів (один або кілька)" #: aiogram.dispatcher.dispatcher.Dispatcher.run_polling:4 #: aiogram.dispatcher.dispatcher.Dispatcher.start_polling:4 of msgid "Long-polling wait time" -msgstr "" +msgstr "Час очікування під час тривалого опитування" #: aiogram.dispatcher.dispatcher.Dispatcher.run_polling:5 #: aiogram.dispatcher.dispatcher.Dispatcher.start_polling:5 of msgid "Run task for each event and no wait result" -msgstr "Запуск обробки без очікування результату" +msgstr "Запуск завдання для кожної події без очікування результату" #: aiogram.dispatcher.dispatcher.Dispatcher.run_polling:6 #: aiogram.dispatcher.dispatcher.Dispatcher.start_polling:6 of msgid "backoff-retry config" -msgstr "" +msgstr "конфігурація повторів із затримкою" #: aiogram.dispatcher.dispatcher.Dispatcher.run_polling:7 of msgid "List of the update types you want your bot to receive" -msgstr "Список типів подій, які має опрацьовувати ваш бот" +msgstr "Список типів оновлень, які має отримувати ваш бот" #: aiogram.dispatcher.dispatcher.Dispatcher.run_polling:8 #: aiogram.dispatcher.dispatcher.Dispatcher.start_polling:9 of msgid "handle signals (SIGINT/SIGTERM)" -msgstr "" +msgstr "обробка сигналів (SIGINT/SIGTERM)" #: aiogram.dispatcher.dispatcher.Dispatcher.run_polling:9 #: aiogram.dispatcher.dispatcher.Dispatcher.start_polling:10 of msgid "close bot sessions on shutdown" -msgstr "" +msgstr "закривати сесії бота під час завершення роботи" #: aiogram.dispatcher.dispatcher.Dispatcher.run_polling:10 #: aiogram.dispatcher.dispatcher.Dispatcher.start_polling:11 of msgid "contextual data" msgstr "контекстні дані" -#: aiogram.dispatcher.dispatcher.Dispatcher.run_polling -#: aiogram.dispatcher.dispatcher.Dispatcher.start_polling -#: aiogram.dispatcher.dispatcher.Dispatcher.stop_polling of +#: ../../dispatcher/dispatcher.rst msgid "Returns" msgstr "Повертає" #: aiogram.dispatcher.dispatcher.Dispatcher.start_polling:1 of msgid "Polling runner" -msgstr "Запуск кількох ботів з опитуванням (асинхронно)" +msgstr "Запуск виконавця опитування" #: aiogram.dispatcher.dispatcher.Dispatcher.start_polling:7 of msgid "" "List of the update types you want your bot to receive By default, all " "used update types are enabled (resolved from handlers)" msgstr "" +"Список типів оновлень, які має отримувати ваш бот. За замовчуванням " +"увімкнені всі використовувані типи оновлень (визначено з обробників)" #: aiogram.dispatcher.dispatcher.Dispatcher.stop_polling:1 of msgid "Execute this method if you want to stop polling programmatically" -msgstr "" +msgstr "Використовуйте цей метод, якщо хочете зупинити опитування програмно" #: ../../dispatcher/dispatcher.rst:18 msgid "Simple usage" -msgstr "Просте застосування" +msgstr "Просте використання" #: ../../dispatcher/dispatcher.rst:20 ../../dispatcher/dispatcher.rst:33 msgid "Example:" -msgstr "Наприклад:" +msgstr "Приклад:" #: ../../dispatcher/dispatcher.rst:31 msgid "Including routers" -msgstr "Включаючи маршрутизатори" +msgstr "Додавання маршрутизаторів" -#: ../../dispatcher/dispatcher.rst:43 +#: ../../dispatcher/dispatcher.rst:46 msgid "Handling updates" -msgstr "Обробка подій" +msgstr "Обробка оновлень" -#: ../../dispatcher/dispatcher.rst:45 +#: ../../dispatcher/dispatcher.rst:48 msgid "" "All updates can be propagated to the dispatcher by " -":obj:`Dispatcher.feed_update(bot=..., update=...)` method:" +":meth:`~aiogram.dispatcher.dispatcher.Dispatcher.feed_update` method:" msgstr "" -"Усі оновлення можна передати диспетчеру через " -":obj:`Dispatcher.feed_update(bot=..., update=...)` method:" +"Усі оновлення можна передати диспетчеру через метод " +":meth:`~aiogram.dispatcher.dispatcher.Dispatcher.feed_update`:" -#~ msgid "Bot instances (one or mre)" -#~ msgstr "Екземпляри ботів" +#: ../../dispatcher/dispatcher.rst:57 +msgid "" +"Also you can feed raw update (dictionary) object to the dispatcher by " +":meth:`~aiogram.dispatcher.dispatcher.Dispatcher.feed_raw_update` method:" +msgstr "" +"Також ви можете передати сирий об'єкт оновлення (словник) до диспетчера " +"через метод :meth:`~aiogram.dispatcher.dispatcher.Dispatcher.feed_raw_update`:" diff --git a/docs/locale/uk_UA/LC_MESSAGES/dispatcher/filters/command.po b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/filters/command.po index c75755ac..c43c54d5 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/dispatcher/filters/command.po +++ b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/filters/command.po @@ -5,52 +5,98 @@ # msgid "" msgstr "" -"Project-Id-Version: aiogram\n" +"Project-Id-Version: aiogram\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: 2022-10-25 16:51+0300\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" -"X-Generator: Poedit 3.1.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../dispatcher/filters/command.rst:3 msgid "Command" msgstr "Команди" +#: ../../dispatcher/filters/command.rst:6 +msgid "Usage" +msgstr "Використання" + +#: ../../dispatcher/filters/command.rst:8 +msgid "Filter single variant of commands: :code:`Command(\"start\")`" +msgstr "Фільтр єдиного варіанту команд: :code:`Command(\"start\")`" + +#: ../../dispatcher/filters/command.rst:9 +#, fuzzy +msgid "" +"Handle command by regexp pattern: " +":code:`Command(re.compile(r\"item_(\\\\d+)\"))`" +msgstr "" +"Обробка команди за шаблоном регулярного виразу: " +":code:`Command(re.compile(r\"item_(\\d+)\"))`" + +#: ../../dispatcher/filters/command.rst:10 +#, fuzzy +msgid "" +"Match command by multiple variants: :code:`Command(\"item\", " +"re.compile(r\"item_(\\\\d+)\"))`" +msgstr "" +"Порівняння команди за кількома варіантами: :code:`Command(\"item\", " +"re.compile(r\"item_(\\d+)\"))`" + +#: ../../dispatcher/filters/command.rst:11 +msgid "" +"Handle commands in public chats intended for other bots: " +":code:`Command(\"command\", ignore_mention=True)`" +msgstr "" +"Обробка команди в публічних чатах, призначених для інших ботів: " +":code:`Command(\"command\", ignore_mention=True)`" + +#: ../../dispatcher/filters/command.rst:12 +msgid "" +"Use :class:`aiogram.types.bot_command.BotCommand` object as command " +"reference :code:`Command(BotCommand(command=\"command\", description=\"My" +" awesome command\")`" +msgstr "" +"Використання об’єкту :class:`aiogram.types.bot_command.BotCommand` як " +"посилання на команду :code:`Command(BotCommand(command=\"command\", " +"description=\"My awesome command\")`" + +#: ../../dispatcher/filters/command.rst:16 +msgid "Command cannot include spaces or any whitespace" +msgstr "Команда не може містити пробілів чи переносів рядків" + #: aiogram.filters.command.Command:1 of msgid "This filter can be helpful for handling commands from the text messages." -msgstr "" -"Цей фільтр може бути корисним для обробки команд із текстових повідомлень." +msgstr "Цей фільтр може бути корисним для обробки команд із текстових повідомлень." #: aiogram.filters.command.Command:3 of msgid "" -"Works only with :class:`aiogram.types.message.Message` events which have the :" -"code:`text`." +"Works only with :class:`aiogram.types.message.Message` events which have " +"the :code:`text`." msgstr "" -"Працює лише з подіями :class:`aiogram.types.message.Message` , що мають :" -"code:`text`." +"Працює лише з подіями :class:`aiogram.types.message.Message` , що мають " +":code:`text`." #: aiogram.filters.command.Command.__init__:1 of msgid "List of commands (string or compiled regexp patterns)" msgstr "Перелік команд (рядки або скомпільовані шаблони регулярних виразів)" -#: aiogram.filters.command.Command.__init__ of +#: ../../dispatcher/filters/command.rst msgid "Parameters" msgstr "Параметри" #: aiogram.filters.command.Command.__init__:3 of msgid "" -"Prefix for command. Prefix is always a single char but here you can pass all " -"of allowed prefixes, for example: :code:`\"/!\"` will work with commands " -"prefixed by :code:`\"/\"` or :code:`\"!\"`." +"Prefix for command. Prefix is always a single char but here you can pass " +"all of allowed prefixes, for example: :code:`\"/!\"` will work with " +"commands prefixed by :code:`\"/\"` or :code:`\"!\"`." msgstr "" -"Префікс для команди. Префікс завжди складається з одного символу, але тут ви " -"можете передати всі дозволені префікси, наприклад: :code:`\"/!\"` працюватиме " -"з командами з префіксом :code:`\"/\"` або :code:`\"!\" `." +"Префікс для команди. Префікс завжди складається з одного символу, але тут" +" ви можете передати всі дозволені префікси, наприклад: :code:`\"/!\"` " +"працюватиме з командами з префіксом :code:`\"/\"` або :code:`\"!\" `." #: aiogram.filters.command.Command.__init__:7 of msgid "Ignore case (Does not work with regexp, use flags instead)" @@ -63,27 +109,27 @@ msgid "" "Ignore bot mention. By default, bot can not handle commands intended for " "other bots" msgstr "" -"Ігнорувати згадку про бота. За замовчуванням бот не може обробляти команди, " -"призначені для інших ботів" +"Ігнорувати згадку про бота. За замовчуванням бот не може обробляти " +"команди, призначені для інших ботів" #: aiogram.filters.command.Command.__init__:10 of msgid "Validate command object via Magic filter after all checks done" msgstr "" -"Перевірка об’єкту команди за допомогою магічного фільтра після виконання всіх " -"перевірок" +"Перевірка об’єкту команди за допомогою магічного фільтра після виконання " +"всіх перевірок" -#: ../../dispatcher/filters/command.rst:10 +#: ../../dispatcher/filters/command.rst:24 msgid "" -"When filter is passed the :class:`aiogram.filters.command.CommandObject` will " -"be passed to the handler argument :code:`command`" +"When filter is passed the :class:`aiogram.filters.command.CommandObject` " +"will be passed to the handler argument :code:`command`" msgstr "" -"Коли фільтр пройдено, :class:`aiogram.filters.command.CommandObject` буде " -"передано аргументу обробника :code:`command`" +"Коли фільтр пройдено, :class:`aiogram.filters.command.CommandObject` буде" +" передано аргументу обробника :code:`command`" #: aiogram.filters.command.CommandObject:1 of msgid "" -"Instance of this object is always has command and it prefix. Can be passed as " -"keyword argument **command** to the handler" +"Instance of this object is always has command and it prefix. Can be " +"passed as keyword argument **command** to the handler" msgstr "" "Екземпляр цього об’єкта завжди має команду та її префікс. Можна передати " "обробнику (handler) як аргумент ключового слова **command**" @@ -106,7 +152,8 @@ msgstr "Аргумент команди" #: ../../docstring aiogram.filters.command.CommandObject.regexp_match:1 of msgid "" -"Will be presented match result if the command is presented as regexp in filter" +"Will be presented match result if the command is presented as regexp in " +"filter" msgstr "" "Буде представлено результат відповідності, якщо команда представлена як " "регулярний вираз у фільтрі" @@ -119,52 +166,6 @@ msgstr "Ця команда згадується?" msgid "Generate original text from object" msgstr "Створення оригінального тексту з об'єкта" -#: ../../dispatcher/filters/command.rst:19 -msgid "Usage" -msgstr "Використання" - -#: ../../dispatcher/filters/command.rst:21 -msgid "Filter single variant of commands: :code:`Command(\"start\")`" -msgstr "Фільтр єдиного варіанту команд: :code:`Command(\"start\")`" - -#: ../../dispatcher/filters/command.rst:22 -msgid "" -"Handle command by regexp pattern: :code:`Command(re.compile(r\"item_(\\d" -"+)\"))`" -msgstr "" -"Обробка команди за шаблоном регулярного виразу: :code:`Command(re.compile(r" -"\"item_(\\d+)\"))`" - -#: ../../dispatcher/filters/command.rst:23 -msgid "" -"Match command by multiple variants: :code:`Command(\"item\", re.compile(r" -"\"item_(\\d+)\"))`" -msgstr "" -"Порівняння команди за кількома варіантами: :code:`Command(\"item\", re." -"compile(r\"item_(\\d+)\"))`" - -#: ../../dispatcher/filters/command.rst:24 -msgid "" -"Handle commands in public chats intended for other bots: :code:" -"`Command(\"command\", ignore_mention=True)`" -msgstr "" -"Обробка команди в публічних чатах, призначених для інших ботів: :code:" -"`Command(\"command\", ignore_mention=True)`" - -#: ../../dispatcher/filters/command.rst:25 -msgid "" -"Use :class:`aiogram.types.bot_command.BotCommand` object as command " -"reference :code:`Command(BotCommand(command=\"command\", description=\"My " -"awesome command\")`" -msgstr "" -"Використання об’єкту :class:`aiogram.types.bot_command.BotCommand` як " -"посилання на команду :code:`Command(BotCommand(command=\"command\", " -"description=\"My awesome command\")`" - -#: ../../dispatcher/filters/command.rst:29 -msgid "Command cannot include spaces or any whitespace" -msgstr "Команда не може містити пробілів чи переносів рядків" - #: ../../dispatcher/filters/command.rst:32 msgid "Allowed handlers" msgstr "Дозволені обробники (handler)" diff --git a/docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/scene.po b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/scene.po index 7c1de50e..3cef578c 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/scene.po +++ b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/scene.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-24 21:53+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: 2023-11-23 01:27+0200\n" "Last-Translator: \n" "Language: uk_UA\n" @@ -59,20 +59,21 @@ msgid "" msgstr "" "Сцена в **aiogram** схожа на абстрактний, ізольований простір імен або " "кімнату, до якої користувач може потрапити за допомогою коду. Коли " -"користувач перебуває в межах Сцени, більшість інших глобальних команд " -"або обробників повідомлень пропускаються, якщо тільки вони не призначені " -"для роботи поза Сценами." -"Сцени забезпечують структуру для більш складних взаємодій, " -"ефективно ізолюючи та керуючи контекстами для різних етапів розмови. Вони" -" дозволяють більш організовано контролювати та керувати розмовою." +"користувач перебуває в межах Сцени, більшість інших глобальних команд або" +" обробників повідомлень пропускаються, якщо тільки вони не призначені для" +" роботи поза Сценами.Сцени забезпечують структуру для більш складних " +"взаємодій, ефективно ізолюючи та керуючи контекстами для різних етапів " +"розмови. Вони дозволяють більш організовано контролювати та керувати " +"розмовою." #: ../../dispatcher/finite_state_machine/scene.rst:31 msgid "Scene Lifecycle" msgstr "Життєвий цикл" #: ../../dispatcher/finite_state_machine/scene.rst:33 +#, fuzzy msgid "" -"Each Scene can be \"entered\", \"left\" of \"exited\", allowing for clear" +"Each Scene can be \"entered\", \"left\" or \"exited\", allowing for clear" " transitions between different stages of the conversation. For instance, " "in a multi-step form filling interaction, each step could be a Scene - " "the bot guides the user from one Scene to the next as they provide the " @@ -385,28 +386,11 @@ msgstr "" msgid "Adds the scene to the given router." msgstr "Додає сцену до заданого маршрутизатора." -#: aiogram.fsm.scene.Scene.add_to_router aiogram.fsm.scene.SceneRegistry.add -#: aiogram.fsm.scene.SceneRegistry.get aiogram.fsm.scene.SceneRegistry.register -#: aiogram.fsm.scene.SceneWizard.back aiogram.fsm.scene.SceneWizard.enter -#: aiogram.fsm.scene.SceneWizard.exit aiogram.fsm.scene.SceneWizard.goto -#: aiogram.fsm.scene.SceneWizard.leave aiogram.fsm.scene.SceneWizard.retake -#: aiogram.fsm.scene.SceneWizard.set_data -#: aiogram.fsm.scene.SceneWizard.update_data -#: aiogram.fsm.scene.ScenesManager.close aiogram.fsm.scene.ScenesManager.enter -#: of +#: ../../dispatcher/finite_state_machine/scene.rst msgid "Parameters" msgstr "Параметри" -#: aiogram.fsm.scene.Scene.add_to_router aiogram.fsm.scene.Scene.as_router -#: aiogram.fsm.scene.SceneRegistry.add aiogram.fsm.scene.SceneRegistry.get -#: aiogram.fsm.scene.SceneRegistry.register aiogram.fsm.scene.SceneWizard.back -#: aiogram.fsm.scene.SceneWizard.clear_data aiogram.fsm.scene.SceneWizard.enter -#: aiogram.fsm.scene.SceneWizard.exit aiogram.fsm.scene.SceneWizard.get_data -#: aiogram.fsm.scene.SceneWizard.goto aiogram.fsm.scene.SceneWizard.leave -#: aiogram.fsm.scene.SceneWizard.retake aiogram.fsm.scene.SceneWizard.set_data -#: aiogram.fsm.scene.SceneWizard.update_data -#: aiogram.fsm.scene.ScenesManager.close aiogram.fsm.scene.ScenesManager.enter -#: of +#: ../../dispatcher/finite_state_machine/scene.rst msgid "Returns" msgstr "Повертає" @@ -573,6 +557,14 @@ msgstr "Додаткові іменовані аргументи для пере msgid "Scene actions" msgstr "Дії сцени" +#: aiogram.utils.class_attrs_resolver.get_sorted_mro_attrs_resolver:1 of +msgid "Attributes resolver." +msgstr "" + +#: aiogram.utils.class_attrs_resolver.get_sorted_mro_attrs_resolver:4 of +msgid "This attribute should only be changed when you know what you are doing." +msgstr "" + #: ../../docstring aiogram.fsm.scene.SceneConfig.callback_query_without_state:1 #: of msgid "Allow callback query without state" @@ -827,7 +819,8 @@ msgstr "" ":code:`on.inline_query`:" #: ../../dispatcher/finite_state_machine/scene.rst:240 -msgid "Scene has only tree points for transitions:" +#, fuzzy +msgid "Scene has only three points for transitions:" msgstr "Сцени мають три точки для переходів:" #: ../../dispatcher/finite_state_machine/scene.rst:242 diff --git a/docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/storages.po b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/storages.po index dd8a43f3..d53b943c 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/storages.po +++ b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/storages.po @@ -1,170 +1,215 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2022, aiogram Team -# This file is distributed under the same license as the aiogram package. -# FIRST AUTHOR , 2022. +# Translations template for PROJECT. +# Copyright (C) 2025 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2025. # +#, fuzzy msgid "" msgstr "" -"Project-Id-Version: aiogram\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-07-02 15:10+0300\n" -"PO-Revision-Date: 2022-10-20 22:00+0300\n" -"Last-Translator: \n" -"Language-Team: \n" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../dispatcher/finite_state_machine/storages.rst:3 msgid "Storages" -msgstr "Сховища" +msgstr "" #: ../../dispatcher/finite_state_machine/storages.rst:6 msgid "Storages out of the box" -msgstr "Вбудоване сховище" +msgstr "" #: ../../dispatcher/finite_state_machine/storages.rst:9 msgid "MemoryStorage" -msgstr "MemoryStorage" +msgstr "" #: aiogram.fsm.storage.memory.MemoryStorage:1 of msgid "" "Default FSM storage, stores all data in :class:`dict` and loss everything" " on shutdown" msgstr "" -"Сховище кінцевого автомату за замовчуванням, зберігає всі дані в " -":class:`dict` і забуває все під час вимкнення" #: aiogram.fsm.storage.memory.MemoryStorage:5 of msgid "" "Is not recommended using in production in due to you will lose all data " "when your bot restarts" msgstr "" -"Не рекомендується використовувати на production, оскільки, Ви втратите " -"всі дані під час перезапуску бота" #: ../../dispatcher/finite_state_machine/storages.rst:16 msgid "RedisStorage" -msgstr "RedisStorage" +msgstr "" #: aiogram.fsm.storage.redis.RedisStorage:1 of msgid "" "Redis storage required :code:`redis` package installed (:code:`pip " "install redis`)" msgstr "" +"Для сховища Redis потрібен встановлений пакет :code:`redis` (:code:`pip " +"install redis`)" -#: aiogram.fsm.storage.base.BaseStorage.get_data -#: aiogram.fsm.storage.base.BaseStorage.get_state -#: aiogram.fsm.storage.base.BaseStorage.set_data -#: aiogram.fsm.storage.base.BaseStorage.set_state -#: aiogram.fsm.storage.base.BaseStorage.update_data -#: aiogram.fsm.storage.redis.DefaultKeyBuilder.build -#: aiogram.fsm.storage.redis.KeyBuilder.build -#: aiogram.fsm.storage.redis.RedisStorage.__init__ -#: aiogram.fsm.storage.redis.RedisStorage.from_url of +#: ../../dispatcher/finite_state_machine/storages.rst msgid "Parameters" -msgstr "Параметри" +msgstr "" #: aiogram.fsm.storage.redis.RedisStorage.__init__:1 of -#, fuzzy msgid "Instance of Redis connection" -msgstr "екземпляр поточного бота" +msgstr "Екземпляр підключення Redis" +#: aiogram.fsm.storage.mongo.MongoStorage.__init__:2 #: aiogram.fsm.storage.redis.RedisStorage.__init__:2 of msgid "builder that helps to convert contextual key to string" -msgstr "" +msgstr "конструктор, який допомагає конвертувати контекстний ключ у рядок" #: aiogram.fsm.storage.redis.RedisStorage.__init__:3 of msgid "TTL for state records" -msgstr "" +msgstr "Час життя (TTL) для записів стану" #: aiogram.fsm.storage.redis.RedisStorage.__init__:4 of msgid "TTL for data records" -msgstr "" +msgstr "Час життя (TTL) для записів даних" #: aiogram.fsm.storage.redis.RedisStorage.from_url:1 of msgid "" "Create an instance of :class:`RedisStorage` with specifying the " "connection string" -msgstr "" +msgstr "Створити екземпляр :class:`RedisStorage`, вказавши строку підключення" #: aiogram.fsm.storage.redis.RedisStorage.from_url:3 of msgid "for example :code:`redis://user:password@host:port/db`" -msgstr "" +msgstr "наприклад :code:`redis://user:password@host:port/db`" #: aiogram.fsm.storage.redis.RedisStorage.from_url:4 of msgid "see :code:`redis` docs" -msgstr "" +msgstr "див. документацію :code:`redis`" #: aiogram.fsm.storage.redis.RedisStorage.from_url:5 of msgid "arguments to be passed to :class:`RedisStorage`" -msgstr "" +msgstr "аргументи, які потрібно передати :class:`RedisStorage`" -#: aiogram.fsm.storage.base.BaseStorage.get_data -#: aiogram.fsm.storage.base.BaseStorage.get_state -#: aiogram.fsm.storage.base.BaseStorage.update_data -#: aiogram.fsm.storage.redis.DefaultKeyBuilder.build -#: aiogram.fsm.storage.redis.KeyBuilder.build -#: aiogram.fsm.storage.redis.RedisStorage.from_url of +#: ../../dispatcher/finite_state_machine/storages.rst msgid "Returns" -msgstr "Повертає" +msgstr "" #: aiogram.fsm.storage.redis.RedisStorage.from_url:6 of +#, fuzzy msgid "an instance of :class:`RedisStorage`" -msgstr "екземпляр класу :class:`RedisStorage`" +msgstr "екземпляр класу :class:`MongoStorage`" -#: ../../dispatcher/finite_state_machine/storages.rst:22 -msgid "Keys inside storage can be customized via key builders:" -msgstr "" -"Ключі всередині сховища можна налаштувати за допомогою конструкторів " -"ключів:" - -#: aiogram.fsm.storage.redis.KeyBuilder:1 of -msgid "Base class for Redis key builder" +#: ../../dispatcher/finite_state_machine/storages.rst:23 +msgid "MongoStorage" msgstr "" -#: aiogram.fsm.storage.redis.DefaultKeyBuilder.build:1 -#: aiogram.fsm.storage.redis.KeyBuilder.build:1 of -msgid "This method should be implemented in subclasses" +#: aiogram.fsm.storage.mongo.MongoStorage:1 of +msgid "" +"MongoDB storage required :code:`motor` package installed (:code:`pip " +"install motor`)" +msgstr "" +"Для сховища MongoDB потрібен встановлений пакет :code:`motor` (:code:`pip" +" install motor`)" + +#: aiogram.fsm.storage.mongo.MongoStorage.__init__:1 of +msgid "Instance of AsyncIOMotorClient" +msgstr "Екземпляр AsyncIOMotorClient" + +#: aiogram.fsm.storage.mongo.MongoStorage.__init__:3 of +msgid "name of the MongoDB database for FSM" +msgstr "назва бази даних MongoDB для FSM" + +#: aiogram.fsm.storage.mongo.MongoStorage.__init__:4 of +msgid "name of the collection for storing FSM states and data" +msgstr "назва колекції для зберігання станів і даних FSM" + +#: aiogram.fsm.storage.mongo.MongoStorage.from_url:1 of +msgid "" +"Create an instance of :class:`MongoStorage` with specifying the " +"connection string" +msgstr "Створити екземпляр :class:`MongoStorage`, вказавши строку підключення" + +#: aiogram.fsm.storage.mongo.MongoStorage.from_url:3 of +msgid "for example :code:`mongodb://user:password@host:port`" +msgstr "наприклад :code:`mongodb://user:password@host:port`" + +#: aiogram.fsm.storage.mongo.MongoStorage.from_url:4 of +msgid "see :code:`motor` docs" +msgstr "див. документацію :code:`motor`" + +#: aiogram.fsm.storage.mongo.MongoStorage.from_url:5 of +msgid "arguments to be passed to :class:`MongoStorage`" +msgstr "аргументи, які потрібно передати :class:`MongoStorage`" + +#: aiogram.fsm.storage.mongo.MongoStorage.from_url:6 of +msgid "an instance of :class:`MongoStorage`" +msgstr "екземпляр класу :class:`MongoStorage`" + +#: ../../dispatcher/finite_state_machine/storages.rst:30 +msgid "KeyBuilder" msgstr "" -#: aiogram.fsm.storage.redis.DefaultKeyBuilder.build:3 -#: aiogram.fsm.storage.redis.KeyBuilder.build:3 of +#: ../../dispatcher/finite_state_machine/storages.rst:32 +msgid "Keys inside Redis and Mongo storages can be customized via key builders:" +msgstr "" + +#: aiogram.fsm.storage.base.KeyBuilder:1 of +msgid "Base class for key builder." +msgstr "Базовий клас для конструктора ключів." + +#: aiogram.fsm.storage.base.DefaultKeyBuilder.build:1 +#: aiogram.fsm.storage.base.KeyBuilder.build:1 of +msgid "Build key to be used in storage's db queries" +msgstr "Створити ключ для використання в запитах до бази даних сховища" + +#: aiogram.fsm.storage.base.DefaultKeyBuilder.build:3 +#: aiogram.fsm.storage.base.KeyBuilder.build:3 of msgid "contextual key" -msgstr "" +msgstr "контекстний ключ" -#: aiogram.fsm.storage.redis.DefaultKeyBuilder.build:4 -#: aiogram.fsm.storage.redis.KeyBuilder.build:4 of +#: aiogram.fsm.storage.base.DefaultKeyBuilder.build:4 +#: aiogram.fsm.storage.base.KeyBuilder.build:4 of msgid "part of the record" -msgstr "" +msgstr "частина запису" -#: aiogram.fsm.storage.redis.DefaultKeyBuilder.build:5 -#: aiogram.fsm.storage.redis.KeyBuilder.build:5 of -msgid "key to be used in Redis queries" -msgstr "" +#: aiogram.fsm.storage.base.DefaultKeyBuilder.build:5 +#: aiogram.fsm.storage.base.KeyBuilder.build:5 of +msgid "key to be used in storage's db queries" +msgstr "ключ для використання в запитах до бази даних сховища" -#: aiogram.fsm.storage.redis.DefaultKeyBuilder:1 of -msgid "Simple Redis key builder with default prefix." -msgstr "" +#: aiogram.fsm.storage.base.DefaultKeyBuilder:1 of +msgid "Simple key builder with default prefix." +msgstr "Простий конструктор ключів із стандартним префіксом." -#: aiogram.fsm.storage.redis.DefaultKeyBuilder:3 of +#: aiogram.fsm.storage.base.DefaultKeyBuilder:3 of msgid "" "Generates a colon-joined string with prefix, chat_id, user_id, optional " -"bot_id and optional destiny." +"bot_id, business_connection_id, destiny and field." msgstr "" +"Генерує рядок із префіксом, chat_id, user_id, додатковим bot_id, " +"business_connection_id, destiny та полем, розділеними двокрапкою." -#: ../../dispatcher/finite_state_machine/storages.rst:34 +#: aiogram.fsm.storage.base.DefaultKeyBuilder:6 of +msgid "Format:" +msgstr "Формат:" + +#: aiogram.fsm.storage.base.DefaultKeyBuilder:7 of +msgid ":code:`::::::`" +msgstr ":code:`::::::`" + +#: ../../dispatcher/finite_state_machine/storages.rst:44 msgid "Writing own storages" -msgstr "Написання власних сховищ" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage:1 of msgid "Base class for all FSM storages" -msgstr "Основний клас для всіх сховищ кінцевого автомату" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.set_state:1 of msgid "Set state for specified key" -msgstr "Установити стан для вказаного ключа" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.get_data:3 #: aiogram.fsm.storage.base.BaseStorage.get_state:3 @@ -172,51 +217,45 @@ msgstr "Установити стан для вказаного ключа" #: aiogram.fsm.storage.base.BaseStorage.set_state:3 #: aiogram.fsm.storage.base.BaseStorage.update_data:3 of msgid "storage key" -msgstr "ключ сховища" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.set_state:4 of msgid "new state" -msgstr "новий стан" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.get_state:1 of msgid "Get key state" -msgstr "Отримання стану ключа" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.get_state:4 of msgid "current state" -msgstr "поточний стан" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.set_data:1 of msgid "Write data (replace)" -msgstr "Запис даних (заміна)" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.set_data:4 #: aiogram.fsm.storage.base.BaseStorage.update_data:5 of msgid "new data" -msgstr "нові дані" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.get_data:1 of msgid "Get current data for key" -msgstr "Отримання поточних даних для ключа" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.get_data:4 of msgid "current data" -msgstr "нинішні дані" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.update_data:1 of msgid "Update date in the storage for key (like dict.update)" -msgstr "Дата оновлення в сховищі для ключа (наприклад, dict.update)" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.update_data:4 of msgid "partial data" -msgstr "неповні дані" +msgstr "" #: aiogram.fsm.storage.base.BaseStorage.close:1 of msgid "Close storage (database connection, file or etc.)" -msgstr "Закриття сховища (підключення до бази даних, файлу тощо)" - -#~ msgid "Custom arguments for Redis lock" -#~ msgstr "" - -#~ msgid "instance of the current bot" -#~ msgstr "екземпляр поточного бота" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/strategy.po b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/strategy.po new file mode 100644 index 00000000..c27bde79 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/dispatcher/finite_state_machine/strategy.po @@ -0,0 +1,55 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../dispatcher/finite_state_machine/strategy.rst:3 +msgid "Strategy" +msgstr "Стратегія" + +#: ../../dispatcher/finite_state_machine/strategy.rst:5 +msgid "" +"This module provides the `FSMStrategy` enumeration which is used to " +"define the strategy of the finite state machine." +msgstr "Цей модуль забезпечує перелік `FSMStrategy`, який використовується для визначення стратегії кінцевого автомата." + +#: aiogram.fsm.strategy.FSMStrategy:1 of +msgid "FSM strategy for storage key generation." +msgstr "Стратегія кінцевого автомата для генерації ключів збереження." + +#: ../../docstring aiogram.fsm.strategy.FSMStrategy.CHAT:1 of +msgid "State will be stored for each chat globally without separating by users." +msgstr "Стан зберігатиметься для кожного чату глобально без розділення за користувачами." + +#: ../../docstring aiogram.fsm.strategy.FSMStrategy.CHAT_TOPIC:1 of +msgid "State will be stored for each chat and topic, but not separated by users." +msgstr "Стан зберігатиметься для кожного чату та теми, але без розділення за користувачами." + +#: ../../docstring aiogram.fsm.strategy.FSMStrategy.GLOBAL_USER:1 of +msgid "State will be stored globally for each user globally." +msgstr "Стан зберігатиметься глобально для кожного користувача." + +#: ../../docstring aiogram.fsm.strategy.FSMStrategy.USER_IN_CHAT:1 of +msgid "State will be stored for each user in chat." +msgstr "Стан зберігатиметься для кожного користувача в чаті." + +#: ../../docstring aiogram.fsm.strategy.FSMStrategy.USER_IN_TOPIC:1 of +msgid "State will be stored for each user in chat and topic." +msgstr "Стан зберігатиметься для кожного користувача в чаті та темі." diff --git a/docs/locale/uk_UA/LC_MESSAGES/index.po b/docs/locale/uk_UA/LC_MESSAGES/index.po index fbfb3e14..808c81a9 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/index.po +++ b/docs/locale/uk_UA/LC_MESSAGES/index.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-16 01:15+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -21,42 +21,42 @@ msgstr "" msgid "aiogram" msgstr "" -#: ../../../README.rst:-1 +#: ../../../README.rst:5 msgid "MIT License" msgstr "" -#: ../../../README.rst:-1 +#: ../../../README.rst:9 msgid "PyPi status" msgstr "" -#: ../../../README.rst:-1 +#: ../../../README.rst:13 msgid "PyPi Package Version" msgstr "" -#: ../../../README.rst:-1 +#: ../../../README.rst:17 msgid "Downloads" msgstr "Завантаження" -#: ../../../README.rst:-1 +#: ../../../README.rst:21 msgid "Supported python versions" msgstr "Підтримувані версії Python" -#: ../../../README.rst:-1 +#: ../../../README.rst:25 msgid "Telegram Bot API" msgstr "" -#: ../../../README.rst:-1 +#: ../../../README.rst:29 msgid "Tests" msgstr "Тести" -#: ../../../README.rst:-1 +#: ../../../README.rst:33 msgid "Codecov" -msgstr "" +msgstr "Покриття коду" #: ../../../README.rst:37 msgid "" "**aiogram** is a modern and fully asynchronous framework for `Telegram " -"Bot API `_ written in Python 3.8 " +"Bot API `_ written in Python 3.8+ " "using `asyncio `_ and " "`aiohttp `_." msgstr "" @@ -70,7 +70,7 @@ msgstr "" msgid "Make your bots faster and more powerful!" msgstr "Зробіть своїх ботів швидшими та потужнішими!" -#: ../../../README.rst:47 +#: ../../../README.rst:44 msgid "Documentation:" msgstr "Документація" @@ -107,12 +107,11 @@ msgid "Supports `PyPy `_" msgstr "Працює з `PyPy `_" #: ../../../README.rst:55 -#, fuzzy msgid "" -"Supports `Telegram Bot API 7.0 `_ and" +"Supports `Telegram Bot API 8.3 `_ and" " gets fast updates to the latest versions of the Bot API" msgstr "" -"Підтримує `Telegram Bot API 6.3 `_ та" +"Підтримує найсвіжішу версію `Telegram Bot API `_ та" " швидко отримує оновлення до нових версії АПІ" #: ../../../README.rst:56 @@ -211,6 +210,14 @@ msgstr "" msgid "Simple usage" msgstr "Приклад використання" -#: ../../index.rst:9 +#: ../../index.rst:10 +msgid "Usage without dispatcher" +msgstr "Використання без диспетчера" + +#: ../../index.rst:12 +msgid "Just only interact with Bot API, without handling events" +msgstr "Тільки взаємодія з АПІ, без обробки подій" + +#: ../../index.rst:18 msgid "Contents" msgstr "Зміст" diff --git a/docs/locale/uk_UA/LC_MESSAGES/install.po b/docs/locale/uk_UA/LC_MESSAGES/install.po index 438b02d4..c61cbb4e 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/install.po +++ b/docs/locale/uk_UA/LC_MESSAGES/install.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-07-30 18:31+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: 2022-10-14 00:10+0300\n" "Last-Translator: \n" "Language: uk_UA\n" @@ -17,13 +17,13 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../install.rst:3 msgid "Installation" msgstr "Встановлення" -#: ../../install.rst:6 ../../install.rst:23 +#: ../../install.rst:6 msgid "From PyPI" msgstr "З PyPI" @@ -31,10 +31,16 @@ msgstr "З PyPI" msgid "From Arch Linux Repository" msgstr "З репозиторію Arch Linux" -#: ../../install.rst:20 -msgid "Development build (3.x)" +#: ../../install.rst:15 +msgid "" +"Package in this repository may be outdated. Use PyPI package for the " +"latest version." +msgstr "" + +#: ../../install.rst:22 +msgid "Development build" msgstr "Бета-версія (3.х)" -#: ../../install.rst:30 +#: ../../install.rst:25 msgid "From GitHub" msgstr "З GitHub" diff --git a/docs/locale/uk_UA/LC_MESSAGES/migration_2_to_3.po b/docs/locale/uk_UA/LC_MESSAGES/migration_2_to_3.po index 2ffb754f..fdcc86e8 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/migration_2_to_3.po +++ b/docs/locale/uk_UA/LC_MESSAGES/migration_2_to_3.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-08 19:04+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: 2023-09-14 18:34+0300\n" "Last-Translator: \n" "Language: uk_UA\n" @@ -17,17 +17,17 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" -#: ../../migration_2_to_3.rst:3 +#: ../../migration_2_to_3.rst:7 msgid "Migration FAQ (2.x -> 3.0)" msgstr "FAQ по переходу з версії 2.x на 3.0" -#: ../../migration_2_to_3.rst:7 +#: ../../migration_2_to_3.rst:11 msgid "This guide is still in progress." msgstr "Цей посібник все ще в розробці." -#: ../../migration_2_to_3.rst:9 +#: ../../migration_2_to_3.rst:13 msgid "" "This version introduces numerous breaking changes and architectural " "improvements. It helps reduce the count of global variables in your code," @@ -42,7 +42,7 @@ msgstr "" "покращень, він робить проміжне програмне забезпечення (мідлварі) та " "фільтри більш контрольованими." -#: ../../migration_2_to_3.rst:15 +#: ../../migration_2_to_3.rst:19 msgid "" "On this page, you can read about the changes made in relation to the last" " stable 2.x version." @@ -50,7 +50,7 @@ msgstr "" "На цій сторінці ви можете прочитати про зміни, внесені в останню " "стабільну версію 2.x." -#: ../../migration_2_to_3.rst:19 +#: ../../migration_2_to_3.rst:23 msgid "" "This page more closely resembles a detailed changelog than a migration " "guide, but it will be updated in the future." @@ -58,7 +58,7 @@ msgstr "" "Ця сторінка більше нагадує детальний список змін, ніж посібник з " "міграції, але вона буде оновлюватися в майбутньому." -#: ../../migration_2_to_3.rst:22 +#: ../../migration_2_to_3.rst:26 msgid "" "Feel free to contribute to this page, if you find something that is not " "mentioned here." @@ -66,14 +66,29 @@ msgstr "" "Не соромтеся зробити свій внесок у цю сторінку, якщо ви знайшли щось, про" " що тут не згадано." -#: ../../migration_2_to_3.rst:26 -msgid "Dispatcher" +#: ../../migration_2_to_3.rst:29 +msgid "Dependencies" +msgstr "Залежності" + +#: ../../migration_2_to_3.rst:31 +msgid "" +"The dependencies required for :code:`i18n` are no longer part of the " +"default package. If your application uses translation functionality, be " +"sure to add an optional dependency:" +msgstr "Залежності, необхідні для :code:`i18n`, більше не є частиною пакету за замовчуванням. Якщо ваш додаток використовує функціональність перекладу, обов'язково додайте необов'язкову залежність:" + +#: ../../migration_2_to_3.rst:34 +msgid ":code:`pip install aiogram[i18n]`" msgstr "" -#: ../../migration_2_to_3.rst:28 +#: ../../migration_2_to_3.rst:38 +msgid "Dispatcher" +msgstr "Диспетчер" + +#: ../../migration_2_to_3.rst:40 msgid "" -"The :class:`Dispatcher` class no longer accepts a `Bot` instance in its " -"initializer. Instead, the `Bot` instance should be passed to the " +"The |Dispatcher| class no longer accepts a |Bot| instance in its " +"initializer. Instead, the |Bot| instance should be passed to the " "dispatcher only for starting polling or handling events from webhooks. " "This approach also allows for the use of multiple bot instances " "simultaneously (\"multibot\")." @@ -84,24 +99,18 @@ msgstr "" "також дозволяє використовувати декілька екземплярів бота одночасно " "(\"мультибот\")." -#: ../../migration_2_to_3.rst:32 +#: ../../migration_2_to_3.rst:44 msgid "" -":class:`Dispatcher` now can be extended with another Dispatcher-like " -"thing named :class:`Router` (:ref:`Read more » `)." +"|Dispatcher| now can be extended with another Dispatcher-like thing named" +" |Router|. With routes, you can easily modularize your code and " +"potentially share these modules between projects. (:ref:`Read more » " +"`.)" msgstr "" "Клас :class:`Dispatcher` тепер можна розширити ще одним об'єктом на " "кшталт диспетчера з назвою :class:`Router` (:ref:`Детальніше » `)." -#: ../../migration_2_to_3.rst:34 -msgid "" -"With routes, you can easily modularize your code and potentially share " -"these modules between projects." -msgstr "" -"За допомогою роутерів ви можете легко модулювати свій код і потенційно " -"перевикористовувати ці модулі між проектами." - -#: ../../migration_2_to_3.rst:35 +#: ../../migration_2_to_3.rst:47 msgid "" "Removed the **_handler** suffix from all event handler decorators and " "registering methods. (:ref:`Read more » `)" @@ -109,16 +118,15 @@ msgstr "" "Видалено суфікс **_handler** з усіх декораторів обробників подій та " "методів реєстрації. (:ref:`Детальніше » `)" -#: ../../migration_2_to_3.rst:37 -#, fuzzy +#: ../../migration_2_to_3.rst:49 msgid "" -"The Executor has been entirely removed; you can now use the Dispatcher " -"directly to start poll the API or handle webhooks from it." +"The :class:`Executor` has been entirely removed; you can now use the " +"|Dispatcher| directly to start poll the API or handle webhooks from it." msgstr "" "Executor було повністю вилучено; тепер ви можете використовувати " "Dispatcher безпосередньо для запуску полінгу або обробки вебхуків." -#: ../../migration_2_to_3.rst:38 +#: ../../migration_2_to_3.rst:50 msgid "" "The throttling method has been completely removed; you can now use " "middlewares to control the execution context and implement any throttling" @@ -129,13 +137,13 @@ msgstr "" "керування контекстом виконання та реалізовувати будь-який механізм " "дроселювання за вашим бажанням." -#: ../../migration_2_to_3.rst:40 +#: ../../migration_2_to_3.rst:52 msgid "" -"Removed global context variables from the API types, Bot and Dispatcher " -"object, From now on, if you want to access the current bot instance " -"within handlers or filters, you should accept the argument :code:`bot: " -"Bot` and use it instead of :code:`Bot.get_current()`. In middlewares, it " -"can be accessed via :code:`data[\"bot\"]`." +"Removed global context variables from the API types, |Bot| and " +"|Dispatcher| object. From now on, if you want to access the current bot " +"instance within handlers or filters, you should accept the argument " +":code:`bot: Bot` and use it instead of :code:`Bot.get_current()`. In " +"middlewares, it can be accessed via :code:`data[\"bot\"]`." msgstr "" "Вилучено глобальні контекстні змінні з типів API, об'єктів Bot та " "Dispatcher, Відтепер, якщо ви хочете отримати доступ до поточного " @@ -144,10 +152,11 @@ msgstr "" ":code:`Bot.get_current()`. У проміжному програмному забезпеченні " "(middleware) доступ до нього можна отримати через :code:`data[\"bot\"]`." -#: ../../migration_2_to_3.rst:44 +#: ../../migration_2_to_3.rst:56 +#, fuzzy msgid "" "To skip pending updates, you should now call the " -":class:`aiogram.methods.delete_webhook.DeleteWebhook` method directly, " +":class:`~aiogram.methods.delete_webhook.DeleteWebhook` method directly, " "rather than passing :code:`skip_updates=True` to the start polling " "method." msgstr "" @@ -155,11 +164,19 @@ msgstr "" ":class:`aiogram.methods.delete_webhook.DeleteWebhook` безпосередньо, а не" " передавати :code:`skip_updates=True` до методу запуску полінгу." -#: ../../migration_2_to_3.rst:49 +#: ../../migration_2_to_3.rst:57 +msgid "" +"To feed updates to the |Dispatcher|, instead of method " +":meth:`process_update`, you should use method " +":meth:`~aiogram.dispatcher.dispatcher.Dispatcher.feed_update`. " +"(:ref:`Read more » `)" +msgstr "" + +#: ../../migration_2_to_3.rst:63 msgid "Filtering events" msgstr "Фільтрація подій" -#: ../../migration_2_to_3.rst:51 +#: ../../migration_2_to_3.rst:65 msgid "" "Keyword filters can no longer be used; use filters explicitly. (`Read " "more » `_)" @@ -168,7 +185,7 @@ msgstr "" "використовуйте фільтри явно. (`Детальніше » " "`_)" -#: ../../migration_2_to_3.rst:52 +#: ../../migration_2_to_3.rst:66 msgid "" "Due to the removal of keyword filters, all previously enabled-by-default " "filters (such as state and content_type) are now disabled. You must " @@ -182,7 +199,7 @@ msgstr "" "замість :code:`@dp.message_handler(content_types=ContentType.PHOTO)` слід" " використовувати :code:`@router.message(F.photo)`." -#: ../../migration_2_to_3.rst:57 +#: ../../migration_2_to_3.rst:71 #, fuzzy msgid "" "Most common filters have been replaced with the \"magic filter.\" " @@ -191,7 +208,7 @@ msgstr "" "Більшість звичайних фільтрів було замінено на \"магічний фільтр\". " "(:ref:`Детальніше далі » `)" -#: ../../migration_2_to_3.rst:58 +#: ../../migration_2_to_3.rst:72 msgid "" "By default, the message handler now receives any content type. If you " "want a specific one, simply add the appropriate filters (Magic or any " @@ -201,7 +218,7 @@ msgstr "" " Якщо вам потрібен певний тип, просто додайте відповідні фільтри (Magic " "або будь-який інший)." -#: ../../migration_2_to_3.rst:60 +#: ../../migration_2_to_3.rst:74 msgid "" "The state filter is no longer enabled by default. This means that if you " "used :code:`state=\"*\"` in v2, you should not pass any state filter in " @@ -213,7 +230,7 @@ msgstr "" "фільтр стану у v3. І навпаки, якщо стан не було вказано у v2, вам " "потрібно буде вказати його у v3." -#: ../../migration_2_to_3.rst:63 +#: ../../migration_2_to_3.rst:77 msgid "" "Added the possibility to register global filters for each router, which " "helps to reduce code repetition and provides an easier way to control the" @@ -223,11 +240,11 @@ msgstr "" "допомагає зменшити повторення коду і полегшує контроль призначення " "кожного роутера." -#: ../../migration_2_to_3.rst:69 +#: ../../migration_2_to_3.rst:83 msgid "Bot API" msgstr "" -#: ../../migration_2_to_3.rst:71 +#: ../../migration_2_to_3.rst:85 msgid "" "All API methods are now classes with validation, implemented via " "`pydantic `. These API calls are also " @@ -237,7 +254,7 @@ msgstr "" "`pydantic `. Ці виклики API також доступні як" " методи в класі Bot." -#: ../../migration_2_to_3.rst:74 +#: ../../migration_2_to_3.rst:88 msgid "" "More pre-defined Enums have been added and moved to the `aiogram.enums` " "sub-package. For example, the chat type enum is now " @@ -249,7 +266,7 @@ msgstr "" ":class:`aiogram.enums.ChatType` замість " ":class:`aiogram.types.chat.ChatType`." -#: ../../migration_2_to_3.rst:76 +#: ../../migration_2_to_3.rst:90 msgid "" "The HTTP client session has been separated into a container that can be " "reused across different Bot instances within the application." @@ -257,7 +274,7 @@ msgstr "" "Клієнтська сесія HTTP була відокремлена в контейнер, який можна повторно " "використовувати для різних екземплярів бота в додатку." -#: ../../migration_2_to_3.rst:78 +#: ../../migration_2_to_3.rst:92 msgid "" "API Exceptions are no longer classified by specific messages, as Telegram" " has no documented error codes. However, all errors are classified by " @@ -273,11 +290,11 @@ msgstr "" " випадків слід перевіряти лише тип помилки (за кодом статусу), не " "перевіряючи повідомлення про помилку." -#: ../../migration_2_to_3.rst:88 +#: ../../migration_2_to_3.rst:102 msgid "Middlewares" msgstr "Проміжне ПО (Middlewares)" -#: ../../migration_2_to_3.rst:90 +#: ../../migration_2_to_3.rst:104 msgid "" "Middlewares can now control an execution context, e.g., using context " "managers. (:ref:`Read more » `)" @@ -286,7 +303,7 @@ msgstr "" " наприклад, за допомогою менеджерів контексту. (:ref:`Детальніше » " "`)" -#: ../../migration_2_to_3.rst:92 +#: ../../migration_2_to_3.rst:106 msgid "" "All contextual data is now shared end-to-end between middlewares, " "filters, and handlers. For example now you can easily pass some data into" @@ -299,7 +316,7 @@ msgstr "" "забезпеченні і отримати їх у шарі фільтрів так само, як і в обробниках " "через аргументи ключових слів." -#: ../../migration_2_to_3.rst:95 +#: ../../migration_2_to_3.rst:109 msgid "" "Added a mechanism named **flags** that helps customize handler behavior " "in conjunction with middlewares. (:ref:`Read more » `)" @@ -308,11 +325,11 @@ msgstr "" "поведінку обробника у поєднанні з проміжним програмним забезпеченням. " "(:ref:`Детальніше про » `)" -#: ../../migration_2_to_3.rst:100 +#: ../../migration_2_to_3.rst:114 msgid "Keyboard Markup" msgstr "Розмітка клавіатури" -#: ../../migration_2_to_3.rst:102 +#: ../../migration_2_to_3.rst:116 msgid "" "Now :class:`aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup` " "and :class:`aiogram.types.reply_keyboard_markup.ReplyKeyboardMarkup` no " @@ -329,11 +346,11 @@ msgstr "" ":class:`aiogram.utils.keyboard.InlineKeyboardBuilder` відповідно " "(:ref:`Детальніше » `)" -#: ../../migration_2_to_3.rst:110 +#: ../../migration_2_to_3.rst:124 msgid "Callbacks data" -msgstr "" +msgstr "Дані зворотного виклику" -#: ../../migration_2_to_3.rst:112 +#: ../../migration_2_to_3.rst:126 msgid "" "The callback data factory is now strictly typed using `pydantic " "`_ models. (:ref:`Read more » `_. (:ref:`Детальніше » " "`)" -#: ../../migration_2_to_3.rst:117 +#: ../../migration_2_to_3.rst:131 msgid "Finite State machine" msgstr "Скінченний автомат" -#: ../../migration_2_to_3.rst:119 +#: ../../migration_2_to_3.rst:133 msgid "" "State filters will no longer be automatically added to all handlers; you " "will need to specify the state if you want to use it." @@ -356,37 +373,30 @@ msgstr "" "обробників; вам потрібно буде вказати стан, якщо ви хочете його " "використати." -#: ../../migration_2_to_3.rst:121 +#: ../../migration_2_to_3.rst:135 msgid "" "Added the possibility to change the FSM strategy. For example, if you " "want to control the state for each user based on chat topics rather than " -"the user in a chat, you can specify this in the Dispatcher." +"the user in a chat, you can specify this in the |Dispatcher|." msgstr "" "Додано можливість змінювати стратегію FSM. Наприклад, якщо ви хочете " "контролювати стан для кожного користувача на основі топіків чату, а не " "користувача в чаті, ви можете вказати це в Диспетчері." -#: ../../migration_2_to_3.rst:124 +#: ../../migration_2_to_3.rst:138 +#, fuzzy msgid "" "Now :class:`aiogram.fsm.state.State` and " ":class:`aiogram.fsm.state.StateGroup` don't have helper methods like " -":code:`.set()`, :code:`.next()`, etc." +":code:`.set()`, :code:`.next()`, etc. Instead, you should set states by " +"passing them directly to :class:`aiogram.fsm.context.FSMContext` " +"(:ref:`Read more » `)" msgstr "" "Тепер :class:`aiogram.fsm.state.State` та " ":class:`aiogram.fsm.state.StateGroup` не мають допоміжних методів, таких " "як :code:`.set()`, :code:`.next()` тощо." -#: ../../migration_2_to_3.rst:127 -msgid "" -"Instead, you should set states by passing them directly to " -":class:`aiogram.fsm.context.FSMContext` (:ref:`Read more » `)" -msgstr "" -"Замість цього вам слід встановлювати стани, передаючи їх безпосередньо до" -" :class:`aiogram.fsm.context.FSMContext` (:ref:`Детальніше » `)" - -#: ../../migration_2_to_3.rst:129 +#: ../../migration_2_to_3.rst:142 msgid "" "The state proxy is deprecated; you should update the state data by " "calling :code:`state.set_data(...)` and :code:`state.get_data()` " @@ -395,11 +405,11 @@ msgstr "" "Проксі стану є застарілим; вам слід оновити дані стану, викликавши " ":code:`state.set_data(...)` та :code:`state.get_data()` відповідно." -#: ../../migration_2_to_3.rst:134 +#: ../../migration_2_to_3.rst:147 msgid "Sending Files" msgstr "Надсилання файлів" -#: ../../migration_2_to_3.rst:136 +#: ../../migration_2_to_3.rst:149 msgid "" "From now on, you should wrap files in an InputFile object before sending " "them, instead of passing the IO object directly to the API method. " @@ -409,38 +419,129 @@ msgstr "" "замість того, щоб передавати об'єкт вводу-виводу безпосередньо до методу " "API. (:ref:`Детальніше » `)" -#: ../../migration_2_to_3.rst:141 +#: ../../migration_2_to_3.rst:154 msgid "Webhook" -msgstr "" +msgstr "Вебхук" -#: ../../migration_2_to_3.rst:143 +#: ../../migration_2_to_3.rst:156 msgid "The aiohttp web app configuration has been simplified." msgstr "Спрощено налаштування веб-застосунку aiohttp." -#: ../../migration_2_to_3.rst:144 +#: ../../migration_2_to_3.rst:157 msgid "" "By default, the ability to upload files has been added when you `make " "requests in response to updates `_ (available for webhook " "only)." -msgstr "" +msgstr "За замовчуванням додана можливість завантаження файлів при `відповідях на оновлення `_ (доступно тільки для вебхука)." -#: ../../migration_2_to_3.rst:148 +#: ../../migration_2_to_3.rst:161 msgid "Telegram API Server" msgstr "Сервер Telegram API" -#: ../../migration_2_to_3.rst:150 +#: ../../migration_2_to_3.rst:163 +#, fuzzy msgid "" -"The `server` parameter has been moved from the `Bot` instance to `api` in" -" `BaseSession`." +"The :obj:`server` parameter has been moved from the |Bot| instance to " +":obj:`api` parameter of the " +":class:`~aiogram.client.session.base.BaseSession`." msgstr "" "Параметр `server` було перенесено з екземпляра `Bot` до `api` в " "`BaseSession`." -#: ../../migration_2_to_3.rst:151 +#: ../../migration_2_to_3.rst:164 +#, fuzzy msgid "" -"The constant `aiogram.bot.api.TELEGRAM_PRODUCTION` has been moved to " -"`aiogram.client.telegram.PRODUCTION`." +"The constant :obj:`aiogram.bot.api.TELEGRAM_PRODUCTION` has been moved to" +" :obj:`aiogram.client.telegram.PRODUCTION`." msgstr "" "Константа `aiogram.bot.api.TELEGRAM_PRODUCTION` була переміщена на " "`aiogram.client.telegram.PRODUCTION`." + +#: ../../migration_2_to_3.rst:168 +msgid "Telegram objects transformation (to dict, to json, from json)" +msgstr "Перетворення об'єктів Telegram (у словник, у json, з json)" + +#: ../../migration_2_to_3.rst:170 +msgid "" +"Methods :code:`TelegramObject.to_object()`, " +":code:`TelegramObject.to_json()` and :code:`TelegramObject.to_python()` " +"have been removed due to the use of `pydantic " +"`_ models." +msgstr "Методи :code:`TelegramObject.to_object()`, :code:`TelegramObject.to_json()` та :code:`TelegramObject.to_python()` були вилучені через використання моделей `pydantic `_." + + +#: ../../migration_2_to_3.rst:172 +msgid "" +":code:`TelegramObject.to_object()` should be replaced by " +":code:`TelegramObject.model_validate()` (`Read more " +"`_)" +msgstr ":code:`TelegramObject.to_object()` слід замінити на " +":code:`TelegramObject.model_validate()` (`Детальніше " +"`_)" + +#: ../../migration_2_to_3.rst:174 +msgid "" +":code:`TelegramObject.as_json()` should be replaced by " +":func:`aiogram.utils.serialization.deserialize_telegram_object_to_python`" +msgstr ":code:`TelegramObject.as_json()` слід замінити на " +":func:`aiogram.utils.serialization.deserialize_telegram_object_to_python`" + +#: ../../migration_2_to_3.rst:175 +msgid "" +":code:`.to_python()` should be replaced by " +":code:`json.dumps(deserialize_telegram_object_to_python())`" +msgstr ":code:`.to_python()` слід замінити на " +":code:`json.dumps(deserialize_telegram_object_to_python())`" + + +#: ../../migration_2_to_3.rst:177 +msgid "Here are some usage examples:" +msgstr "Ось деякі приклади використання:" + +#: ../../migration_2_to_3.rst:179 +msgid "Creating an object from a dictionary representation of an object" +msgstr "Створення об'єкта з представлення об'єкта у вигляді словника" + +#: ../../migration_2_to_3.rst:201 +msgid "Creating a json representation of an object" +msgstr "Cтворення представлення об'єкта у вигляді json" + +#: ../../migration_2_to_3.rst:223 +msgid "Creating a dictionary representation of an object" +msgstr "Створення представлення об'єкта у вигляді словника" + +#: ../../migration_2_to_3.rst:247 +msgid "ChatMember tools" +msgstr "Інструменти ChatMember" + +#: ../../migration_2_to_3.rst:249 +msgid "" +"Now :class:`aiogram.types.chat_member.ChatMember` no longer contains " +"tools to resolve an object with the appropriate status." +msgstr "Тепер :class:`aiogram.types.chat_member.ChatMember` більше не містить " +"інструментів для вирішення об'єкта з відповідним статусом." + +#: ../../migration_2_to_3.rst:266 +msgid "" +"Now :class:`aiogram.types.chat_member.ChatMember` and all its child " +"classes no longer contain methods for checking for membership in certain " +"logical groups. As a substitute, you can use pre-defined groups or create" +" such groups yourself and check their entry using the :func:`isinstance` " +"function" +msgstr "Відтепер :class:`aiogram.types.chat_member.ChatMember` та всі його " +"дочірні класи більше не містять методів для перевірки належності до певних логічних груп. " +"Замість цього ви можете використовувати попередньо визначені групи або створювати такі " +"групи самостійно та перевіряти їх входження за допомогою функції :func:`isinstance`" + +#: ../../migration_2_to_3.rst:294 +msgid "" +"You also can independently create group similar to ADMINS that fits the " +"logic of your application." +msgstr "Також ви можете самостійно створити групу, подібну до ADMINS, яка відповідає логіці вашого застосунку." + +#: ../../migration_2_to_3.rst:296 +msgid "" +"E.g., you can create a PUNISHED group and include banned and restricted " +"members there!" +msgstr "Наприклад, ви можете створити групу PUNISHED та включити туди заблокованих та обмежених учасників!" diff --git a/docs/locale/uk_UA/LC_MESSAGES/utils/chat_action.po b/docs/locale/uk_UA/LC_MESSAGES/utils/chat_action.po index 4140fc79..6748aef8 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/utils/chat_action.po +++ b/docs/locale/uk_UA/LC_MESSAGES/utils/chat_action.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-16 02:34+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: 2022-10-13 21:22+0300\n" "Last-Translator: \n" "Language-Team: \n" @@ -48,7 +48,7 @@ msgstr "" "працює до завершення дії та надсилає `дію чату " "`_ кожні 5 секунд." -#: aiogram.utils.chat_action.ChatActionSender.__init__ of +#: ../../utils/chat_action.rst msgid "Parameters" msgstr "Параметри" @@ -61,14 +61,18 @@ msgid "target chat id" msgstr "ідентифікатор цільового чату" #: aiogram.utils.chat_action.ChatActionSender.__init__:3 of +msgid "unique identifier for the target message thread; supergroups only" +msgstr "" + +#: aiogram.utils.chat_action.ChatActionSender.__init__:4 of msgid "chat action type" msgstr "тип дії" -#: aiogram.utils.chat_action.ChatActionSender.__init__:4 of +#: aiogram.utils.chat_action.ChatActionSender.__init__:5 of msgid "interval between iterations" msgstr "інтервал між ітераціями" -#: aiogram.utils.chat_action.ChatActionSender.__init__:5 of +#: aiogram.utils.chat_action.ChatActionSender.__init__:6 of #, fuzzy msgid "sleep before first sending of the action" msgstr "затримка перед першою ітерацією" diff --git a/docs/locale/uk_UA/LC_MESSAGES/utils/formatting.po b/docs/locale/uk_UA/LC_MESSAGES/utils/formatting.po index a61c73e0..222e9569 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/utils/formatting.po +++ b/docs/locale/uk_UA/LC_MESSAGES/utils/formatting.po @@ -8,22 +8,22 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-07-30 18:31+0300\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"Language-Team: Українська \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.13.1\n" #: ../../utils/formatting.rst:5 msgid "Formatting" -msgstr "" +msgstr "Форматування" #: ../../utils/formatting.rst:7 msgid "Make your message formatting flexible and simple" -msgstr "" +msgstr "Зробіть форматування ваших повідомлень гнучким і простим" #: ../../utils/formatting.rst:9 msgid "" @@ -32,22 +32,27 @@ msgid "" "the Telegram without the need to remember tag parity (opening and " "closing) or escaping user input." msgstr "" +"Цей інструмент працює на основі сутностей повідомлень, а не " +"використовуючи HTML чи розмітку Markdown, ви можете легко створити своє " +"повідомлення та надіслати його у Telegram без необхідності пам'ятати про " +"парність тегів (відкриття та закриття) або про екранування " +"користувацького вводу." #: ../../utils/formatting.rst:14 msgid "Usage" -msgstr "" +msgstr "Використання" #: ../../utils/formatting.rst:17 msgid "Basic scenario" -msgstr "" +msgstr "Основний сценарій" #: ../../utils/formatting.rst:19 msgid "Construct your message and send it to the Telegram." -msgstr "" +msgstr "Складіть своє повідомлення та надішліть його у Telegram." #: ../../utils/formatting.rst:26 msgid "Is the same as the next example, but without usage markup" -msgstr "" +msgstr "Такий самий, як наступний приклад, але без використання розмітки" #: ../../utils/formatting.rst:35 msgid "" @@ -56,16 +61,22 @@ msgid "" ":code:`[MessageEntity(type='bold', offset=7, length=4)]` and passed into " "dict which can be used as :code:`**kwargs` in API call." msgstr "" +"Дослівно, коли ви виконуєте метод :code:`as_kwargs`, об'єкт Text " +"перетворюється у текст :code:`Hello, Alex!` із списком сутностей " +":code:`[MessageEntity(type='bold', offset=7, length=4)]` і передається у " +"словник, який може бути використаний як :code:`**kwargs` в API-виклику." #: ../../utils/formatting.rst:39 msgid "" "The complete list of elements is listed `on this page below <#available-" "elements>`_." msgstr "" +"Повний список елементів наведено `на сторінці нижче <#available-" +"elements>`_." #: ../../utils/formatting.rst:42 msgid "Advanced scenario" -msgstr "" +msgstr "Розширений сценарій" #: ../../utils/formatting.rst:44 msgid "" @@ -73,145 +84,138 @@ msgid "" "so, out of the box aiogram has a few already implemented functions that " "helps you to format your messages:" msgstr "" +"На додаток до базових елементів можуть бути реалізовані структури " +"рендерингу контенту, тому з коробки aiogram надає декілька вже " +"реалізованих функцій, які допомагають форматувати ваші повідомлення:" #: aiogram.utils.formatting.as_line:1 of msgid "Wrap multiple nodes into line with :code:`\\\\n` at the end of line." -msgstr "" +msgstr "Об'єднайте кілька вузлів у рядок із :code:`\\\\n` в кінці рядка." -#: aiogram.utils.formatting.Text.as_kwargs -#: aiogram.utils.formatting.as_key_value aiogram.utils.formatting.as_line -#: aiogram.utils.formatting.as_list aiogram.utils.formatting.as_marked_list -#: aiogram.utils.formatting.as_marked_section -#: aiogram.utils.formatting.as_numbered_list -#: aiogram.utils.formatting.as_numbered_section -#: aiogram.utils.formatting.as_section of +#: ../../utils/formatting.rst msgid "Parameters" -msgstr "" +msgstr "Параметри" #: aiogram.utils.formatting.as_line:3 of msgid "Text or Any" -msgstr "" +msgstr "Текст або Інше" #: aiogram.utils.formatting.as_line:4 of msgid "ending of the line, by default is :code:`\\\\n`" -msgstr "" +msgstr "завершення рядка, за замовчуванням :code:`\\\\n`" #: aiogram.utils.formatting.as_line:5 of msgid "separator between items, by default is empty string" -msgstr "" +msgstr "роздільник між елементами, за замовчуванням порожній рядок" -#: aiogram.utils.formatting.Text.as_kwargs aiogram.utils.formatting.Text.render -#: aiogram.utils.formatting.as_key_value aiogram.utils.formatting.as_line -#: aiogram.utils.formatting.as_list aiogram.utils.formatting.as_marked_list -#: aiogram.utils.formatting.as_marked_section -#: aiogram.utils.formatting.as_numbered_list -#: aiogram.utils.formatting.as_numbered_section -#: aiogram.utils.formatting.as_section of +#: ../../utils/formatting.rst msgid "Returns" -msgstr "" +msgstr "Повертає" #: aiogram.utils.formatting.as_key_value:5 aiogram.utils.formatting.as_line:6 #: aiogram.utils.formatting.as_marked_list:5 #: aiogram.utils.formatting.as_numbered_list:6 #: aiogram.utils.formatting.as_section:5 of msgid "Text" -msgstr "" +msgstr "Текст" #: aiogram.utils.formatting.as_list:1 of msgid "Wrap each element to separated lines" -msgstr "" +msgstr "Обгорніть кожен елемент у окремий рядок" #: aiogram.utils.formatting.as_marked_list:1 of msgid "Wrap elements as marked list" -msgstr "" +msgstr "Обгорніть елементи у маркований список" #: aiogram.utils.formatting.as_marked_list:4 of msgid "line marker, by default is '- '" -msgstr "" +msgstr "маркер рядка, за замовчуванням '- '" #: aiogram.utils.formatting.as_numbered_list:1 of msgid "Wrap elements as numbered list" -msgstr "" +msgstr "Обгорніть елементи у нумерований список" #: aiogram.utils.formatting.as_numbered_list:4 of msgid "initial number, by default 1" -msgstr "" +msgstr "початковий номер, за замовчуванням 1" #: aiogram.utils.formatting.as_numbered_list:5 of msgid "number format, by default '{}. '" -msgstr "" +msgstr "формат номера, за замовчуванням '{}. '" #: aiogram.utils.formatting.as_section:1 of msgid "Wrap elements as simple section, section has title and body" -msgstr "" +msgstr "Обгорніть елементи у простий розділ, розділ має заголовок та тіло" #: aiogram.utils.formatting.as_marked_section:1 of msgid "Wrap elements as section with marked list" -msgstr "" +msgstr "Обгорніть елементи у розділ із маркованим списком" #: aiogram.utils.formatting.as_numbered_section:1 of msgid "Wrap elements as section with numbered list" -msgstr "" +msgstr "Обгорніть елементи у розділ із нумерованим списком" #: aiogram.utils.formatting.as_key_value:1 of msgid "Wrap elements pair as key-value line. (:code:`{key}: {value}`)" msgstr "" +"Обгорніть пари елементів у рядок ключ-значення. (:code:`{key}: " +"{value}`)" #: ../../utils/formatting.rst:64 msgid "and lets complete them all:" -msgstr "" +msgstr "і давайте завершимо їх всіх:" #: ../../utils/formatting.rst:92 msgid "Will be rendered into:" -msgstr "" +msgstr "Буде відрендерено у:" #: ../../utils/formatting.rst:94 msgid "**Success:**" -msgstr "" +msgstr "**Успішно:**" #: ../../utils/formatting.rst:96 msgid "✅ Test 1" -msgstr "" +msgstr "✅ Тест 1" #: ../../utils/formatting.rst:98 msgid "✅ Test 3" -msgstr "" +msgstr "✅ Тест 3" #: ../../utils/formatting.rst:100 msgid "✅ Test 4" -msgstr "" +msgstr "✅ Тест 4" #: ../../utils/formatting.rst:102 msgid "**Failed:**" -msgstr "" +msgstr "**Помилки:**" #: ../../utils/formatting.rst:104 msgid "❌ Test 2" -msgstr "" +msgstr "❌ Тест 2" #: ../../utils/formatting.rst:106 msgid "**Summary:**" -msgstr "" +msgstr "**Підсумки:**" #: ../../utils/formatting.rst:108 msgid "**Total**: 4" -msgstr "" +msgstr "**Загалом**: 4" #: ../../utils/formatting.rst:110 msgid "**Success**: 3" -msgstr "" +msgstr "**Успішно**: 3" #: ../../utils/formatting.rst:112 msgid "**Failed**: 1" -msgstr "" +msgstr "**Помилки**: 1" #: ../../utils/formatting.rst:114 msgid "#test" -msgstr "" +msgstr "#тест" #: ../../utils/formatting.rst:117 msgid "Or as HTML:" -msgstr "" +msgstr "Або як HTML:" #: ../../utils/formatting.rst:137 msgid "Available methods" @@ -226,8 +230,9 @@ msgid "Simple text element" msgstr "" #: aiogram.utils.formatting.Text.render:1 of +#, fuzzy msgid "Render elements tree as text with entities list" -msgstr "" +msgstr "Обгорніть елементи у розділ із нумерованим списком" #: aiogram.utils.formatting.Text.as_kwargs:1 of msgid "" @@ -247,9 +252,11 @@ msgstr "" msgid "Available elements" msgstr "" -#: aiogram.utils.formatting.Bold:1 aiogram.utils.formatting.BotCommand:1 -#: aiogram.utils.formatting.CashTag:1 aiogram.utils.formatting.Code:1 -#: aiogram.utils.formatting.CustomEmoji:1 aiogram.utils.formatting.Email:1 +#: aiogram.utils.formatting.BlockQuote:1 aiogram.utils.formatting.Bold:1 +#: aiogram.utils.formatting.BotCommand:1 aiogram.utils.formatting.CashTag:1 +#: aiogram.utils.formatting.Code:1 aiogram.utils.formatting.CustomEmoji:1 +#: aiogram.utils.formatting.Email:1 +#: aiogram.utils.formatting.ExpandableBlockQuote:1 #: aiogram.utils.formatting.HashTag:1 aiogram.utils.formatting.Italic:1 #: aiogram.utils.formatting.PhoneNumber:1 aiogram.utils.formatting.Pre:1 #: aiogram.utils.formatting.Spoiler:1 aiogram.utils.formatting.Strikethrough:1 @@ -441,3 +448,25 @@ msgid "" "with type " ":obj:`aiogram.enums.message_entity_type.MessageEntityType.CUSTOM_EMOJI`" msgstr "" + +#: aiogram.utils.formatting.BlockQuote:1 of +msgid "Block quote element." +msgstr "" + +#: aiogram.utils.formatting.BlockQuote:3 of +msgid "" +"Will be wrapped into :obj:`aiogram.types.message_entity.MessageEntity` " +"with type " +":obj:`aiogram.enums.message_entity_type.MessageEntityType.BLOCKQUOTE`" +msgstr "" + +#: aiogram.utils.formatting.ExpandableBlockQuote:1 of +msgid "Expandable block quote element." +msgstr "" + +#: aiogram.utils.formatting.ExpandableBlockQuote:3 of +msgid "" +"Will be wrapped into :obj:`aiogram.types.message_entity.MessageEntity` " +"with type " +":obj:`aiogram.enums.message_entity_type.MessageEntityType.EXPANDABLE_BLOCKQUOTE`" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/utils/serialization.po b/docs/locale/uk_UA/LC_MESSAGES/utils/serialization.po new file mode 100644 index 00000000..0a201722 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/utils/serialization.po @@ -0,0 +1,146 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2025, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: uk_UA\n" +"Language-Team: uk_UA \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.13.1\n" + +#: ../../utils/serialization.rst:5 +msgid "Telegram object serialization" +msgstr "Серіалізація об'єкта Telegram" + +#: ../../utils/serialization.rst:8 +msgid "Serialization" +msgstr "Серіалізація" + +#: ../../utils/serialization.rst:10 +msgid "" +"To serialize Python object to Telegram object you can use pydantic " +"serialization methods, for example:" +msgstr "" +"Щоб перетворити об'єкт Python у об'єкт Telegram, ви можете використати " +"методи серіалізації pydantic, наприклад:" + +#: ../../utils/serialization.rst:17 +msgid "" +"If you want to bind serialized object to the Bot instance, you can use " +"context:" +msgstr "" +"Якщо ви хочете прив'язати серіалізований об'єкт до екземпляра бота, ви можете " +"використати контекст:" + +#: ../../utils/serialization.rst:26 +msgid "Deserialization" +msgstr "Десеріалізація" + +#: ../../utils/serialization.rst:28 +msgid "" +"In cases when you need to deserialize Telegram object to Python object, " +"you can use this module." +msgstr "" +"У випадках, коли вам потрібно перетворити об'єкт Telegram у об'єкт Python, " +"ви можете використати цей модуль." + +#: ../../utils/serialization.rst:30 +msgid "" +"To convert Telegram object to Python object excluding files you can use " +":func:`aiogram.utils.serialization.deserialize_telegram_object_to_python`" +" function." +msgstr "" +"Для перетворення об'єкта Telegram у об'єкт Python без врахування файлів ви " +"можете використати функцію " +":func:`aiogram.utils.serialization.deserialize_telegram_object_to_python`." + +#: aiogram.utils.serialization.deserialize_telegram_object_to_python:1 of +msgid "" +"Deserialize telegram object to JSON compatible Python object excluding " +"files." +msgstr "" +"Десеріалізуйте об'єкт Telegram у об'єкт Python, сумісний із JSON, без " +"врахування файлів." + +#: ../../utils/serialization.rst +msgid "Parameters" +msgstr "Параметри" + +#: aiogram.utils.serialization.deserialize_telegram_object_to_python:3 of +msgid "The telegram object to be deserialized." +msgstr "Об'єкт Telegram для десеріалізації." + +#: aiogram.utils.serialization.deserialize_telegram_object:4 +#: aiogram.utils.serialization.deserialize_telegram_object_to_python:4 of +msgid "" +"Default bot properties should be passed only if you want to use custom " +"defaults." +msgstr "" +"Властивості бота за замовчуванням потрібно передавати лише якщо ви хочете " +"використати власні значення за замовчуванням." + +#: aiogram.utils.serialization.deserialize_telegram_object:6 +#: aiogram.utils.serialization.deserialize_telegram_object_to_python:6 of +msgid "Whether to include the API method name in the result." +msgstr "Чи включати назву методу API в результат." + +#: ../../utils/serialization.rst +msgid "Returns" +msgstr "Повертає" + +#: aiogram.utils.serialization.deserialize_telegram_object_to_python:7 of +msgid "The deserialized telegram object." +msgstr "Десеріалізований об'єкт Telegram." + +#: ../../utils/serialization.rst:35 +msgid "" +"To convert Telegram object to Python object including files you can use " +":func:`aiogram.utils.serialization.deserialize_telegram_object` function," +" which returns " +":class:`aiogram.utils.serialization.DeserializedTelegramObject` object." +msgstr "" +"Для перетворення об'єкта Telegram у об'єкт Python, враховуючи файли, ви " +"можете використати функцію " +":func:`aiogram.utils.serialization.deserialize_telegram_object`, яка " +"повертає об'єкт " +":class:`aiogram.utils.serialization.DeserializedTelegramObject`." + +#: aiogram.utils.serialization.deserialize_telegram_object:1 of +msgid "Deserialize Telegram Object to JSON compatible Python object." +msgstr "Десеріалізуйте об'єкт Telegram у об'єкт Python, сумісний із JSON." + +#: aiogram.utils.serialization.deserialize_telegram_object:3 of +msgid "The object to be deserialized." +msgstr "Об'єкт для десеріалізації." + +#: aiogram.utils.serialization.deserialize_telegram_object:7 of +msgid "The deserialized Telegram object." +msgstr "Десеріалізований об'єкт Telegram." + +#: aiogram.utils.serialization.DeserializedTelegramObject:1 of +msgid "Represents a dumped Telegram object." +msgstr "Представляє вивантажений об'єкт Telegram." + +#: aiogram.utils.serialization.DeserializedTelegramObject:3 of +msgid "The dumped data of the Telegram object." +msgstr "Вивантажені дані об'єкта Telegram." + +#: aiogram.utils.serialization.DeserializedTelegramObject:5 of +msgid "" +"The dictionary containing the file names as keys and the corresponding " +"`InputFile` objects as values." +msgstr "" +"Словник, що містить імена файлів як ключі та відповідні об'єкти `InputFile` " +"як значення." diff --git a/docs/locale/uk_UA/LC_MESSAGES/utils/web_app.po b/docs/locale/uk_UA/LC_MESSAGES/utils/web_app.po index e8aeee8b..37ade259 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/utils/web_app.po +++ b/docs/locale/uk_UA/LC_MESSAGES/utils/web_app.po @@ -5,18 +5,19 @@ # msgid "" msgstr "" -"Project-Id-Version: aiogram\n" +"Project-Id-Version: aiogram\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-21 21:40+0200\n" +"POT-Creation-Date: 2025-03-08 02:28+0200\n" "PO-Revision-Date: 2024-03-04 17:30+0200\n" "Last-Translator: Leroy-Bit\n" -"Language-Team: \n" "Language: uk\n" +"Language-Team: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.13.1\n" -"X-Generator: Poedit 3.4.2\n" #: ../../utils/web_app.rst:3 msgid "WebApp" @@ -32,13 +33,13 @@ msgstr "" #: ../../utils/web_app.rst:7 msgid "" -"You can read more details on it in the official `blog `_ and `documentation " -"`_." +"You can read more details on it in the official `blog " +"`_ and " +"`documentation `_." msgstr "" -"Ви можете прочитати більше про це в офіційному `блозі `_ та `документації `_." +"Ви можете прочитати більше про це в офіційному `блозі " +"`_ та " +"`документації `_." #: ../../utils/web_app.rst:10 msgid "" @@ -61,8 +62,8 @@ msgid "" msgstr "" "Наприклад, із фронтенду ви передасте :code:`application/x-www-form-" "urlencoded` в POST запиті із полем :code:`_auth` у тілі та хочете " -"повернути інформацію про користувача у відповідь як :code:`application/" -"json`" +"повернути інформацію про користувача у відповідь як " +":code:`application/json`" #: ../../utils/web_app.rst:35 msgid "Functions" @@ -80,9 +81,7 @@ msgstr "" "Джерело: https://core.telegram.org/bots/webapps#validating-data-received-" "via-the-web-app" -#: aiogram.utils.web_app.check_webapp_signature -#: aiogram.utils.web_app.parse_webapp_init_data -#: aiogram.utils.web_app.safe_parse_webapp_init_data of +#: ../../utils/web_app.rst msgid "Parameters" msgstr "Параметри" @@ -94,9 +93,7 @@ msgstr "Токен бота" msgid "data from frontend to be validated" msgstr "дані з фронтенду, що підлягають перевірці" -#: aiogram.utils.web_app.check_webapp_signature -#: aiogram.utils.web_app.parse_webapp_init_data -#: aiogram.utils.web_app.safe_parse_webapp_init_data of +#: ../../utils/web_app.rst msgid "Returns" msgstr "Повертає" @@ -119,11 +116,10 @@ msgid "data from frontend to be parsed" msgstr "дані з frontend для аналізу" #: aiogram.utils.web_app.safe_parse_webapp_init_data:1 of -msgid "" -"Validate raw WebApp init data and return it as WebAppInitData object" +msgid "Validate raw WebApp init data and return it as WebAppInitData object" msgstr "" -"Перевірка необроблених даних ініціалізації Веб Застосунку і повернення " -"їх як об’єкту WebAppInitData" +"Перевірка необроблених даних ініціалізації Веб Застосунку і повернення їх" +" як об’єкту WebAppInitData" #: aiogram.utils.web_app.safe_parse_webapp_init_data:3 of msgid "Raise :obj:`ValueError` when data is invalid" @@ -154,39 +150,13 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/webapps#webappinitdata" msgstr "Джерело: https://core.telegram.org/bots/webapps#webappinitdata" -#: ../../docstring aiogram.utils.web_app.WebAppChat.model_config:1 -#: aiogram.utils.web_app.WebAppInitData.model_config:1 -#: aiogram.utils.web_app.WebAppUser.model_config:1 of -msgid "" -"Configuration for the model, should be a dictionary conforming to " -"[`ConfigDict`][pydantic.config.ConfigDict]." -msgstr "" -"Конфігурація для моделі має бути словником, що відповідає [`ConfigDict`]" -"[pydantic.config.ConfigDict]." - -#: ../../docstring aiogram.utils.web_app.WebAppChat.model_fields:1 -#: aiogram.utils.web_app.WebAppInitData.model_fields:1 -#: aiogram.utils.web_app.WebAppUser.model_fields:1 of -msgid "" -"Metadata about the fields defined on the model, mapping of field names " -"to [`FieldInfo`][pydantic.fields.FieldInfo]." -msgstr "" -"Метадані про поля, визначені на моделі, відображення назв полів у " -"[`FieldInfo`][pydantic.fields.FieldInfo]." - -#: ../../docstring aiogram.utils.web_app.WebAppChat.model_fields:4 -#: aiogram.utils.web_app.WebAppInitData.model_fields:4 -#: aiogram.utils.web_app.WebAppUser.model_fields:4 of -msgid "This replaces `Model.__fields__` from Pydantic V1." -msgstr "Це замінює `Model.__fields__` з Pydantic V1." - #: ../../docstring aiogram.utils.web_app.WebAppInitData.query_id:1 of msgid "" "A unique identifier for the Web App session, required for sending " "messages via the answerWebAppQuery method." msgstr "" -"Унікальний ідентифікатор сеансу Веб Застосунку, необхідний для " -"надсилання повідомлень через метод answerWebAppQuery." +"Унікальний ідентифікатор сеансу Веб Застосунку, необхідний для надсилання" +" повідомлень через метод answerWebAppQuery." #: ../../docstring aiogram.utils.web_app.WebAppInitData.user:1 of msgid "An object containing data about the current user." @@ -199,8 +169,8 @@ msgid "" "only for Web Apps launched via the attachment menu." msgstr "" "Об'єкт, що містить дані про співрозмовника поточного користувача в чаті, " -"де бот був запущений через меню вкладення. Повертається тільки для веб-" -"додатків, запущених через меню вкладень." +"де бот був запущений через меню вкладення. Повертається тільки для " +"веб-додатків, запущених через меню вкладень." #: ../../docstring aiogram.utils.web_app.WebAppInitData.chat:1 of msgid "" @@ -243,8 +213,8 @@ msgid "" msgstr "" "Значення параметра startattach, передане через посилання. Повертається " "лише для Веб Застосунків, коли їх запускають із меню вкладень за " -"посиланням. Значення параметра start_param також буде передано в GET-" -"параметр tgWebAppStartParam, тому Веб Застосунок може відразу " +"посиланням. Значення параметра start_param також буде передано в " +"GET-параметр tgWebAppStartParam, тому Веб Застосунок може відразу " "завантажити правильний інтерфейс." #: ../../docstring aiogram.utils.web_app.WebAppInitData.can_send_after:1 of @@ -278,16 +248,16 @@ msgstr "Джерело: https://core.telegram.org/bots/webapps#webappuser" #: ../../docstring aiogram.utils.web_app.WebAppUser.id:1 of msgid "" "A unique identifier for the user or bot. This number may have more than " -"32 significant bits and some programming languages may have difficulty/" -"silent defects in interpreting it. It has at most 52 significant bits, " -"so a 64-bit integer or a double-precision float type is safe for storing " -"this identifier." +"32 significant bits and some programming languages may have " +"difficulty/silent defects in interpreting it. It has at most 52 " +"significant bits, so a 64-bit integer or a double-precision float type is" +" safe for storing this identifier." msgstr "" "Унікальний ідентифікатор користувача або бота. Це число може мати більше " -"32 значущих бітів, і деякі мови програмування можуть мати труднощі в " -"його інтерпретації. Він має щонайбільше 52 значущі біти, тому 64-бітне " -"ціле число або тип з плаваючою точністю подвійної точності є безпечним " -"для зберігання цього ідентифікатора." +"32 значущих бітів, і деякі мови програмування можуть мати труднощі в його" +" інтерпретації. Він має щонайбільше 52 значущі біти, тому 64-бітне ціле " +"число або тип з плаваючою точністю подвійної точності є безпечним для " +"зберігання цього ідентифікатора." #: ../../docstring aiogram.utils.web_app.WebAppUser.is_bot:1 of msgid "True, if this user is a bot. Returns in the receiver field only." @@ -308,8 +278,7 @@ msgid "Username of the user or bot." msgstr "Нік користувача або бота." #: ../../docstring aiogram.utils.web_app.WebAppUser.language_code:1 of -msgid "" -"IETF language tag of the user's language. Returns in user field only." +msgid "IETF language tag of the user's language. Returns in user field only." msgstr "" "Мовний тег IETF мови користувача. Повертаєтся лише в полі " "користувача(user)." @@ -318,8 +287,8 @@ msgstr "" msgid "True, if this user is a Telegram Premium user." msgstr "True, якщо цей користувач має підписку Telegram Premium." -#: ../../docstring -#: aiogram.utils.web_app.WebAppUser.added_to_attachment_menu:1 of +#: ../../docstring aiogram.utils.web_app.WebAppUser.added_to_attachment_menu:1 +#: of msgid "True, if this user added the bot to the attachment menu." msgstr "True, якщо цей користувач додав бота до меню вкладень." @@ -333,8 +302,8 @@ msgid "" "formats. Only returned for Web Apps launched from the attachment menu." msgstr "" "URL-адреса фотографії профілю користувача. Фотографія може бути у " -"форматах .jpeg або .svg. Повертається лише для Веб Застосунків, " -"запущених із меню вкладень." +"форматах .jpeg або .svg. Повертається лише для Веб Застосунків, запущених" +" із меню вкладень." #: aiogram.utils.web_app.WebAppChat:1 of msgid "This object represents a chat." @@ -347,10 +316,10 @@ msgstr "Джерело: https://core.telegram.org/bots/webapps#webappchat" #: ../../docstring aiogram.utils.web_app.WebAppChat.id:1 of msgid "" "Unique identifier for this chat. This number may have more than 32 " -"significant bits and some programming languages may have difficulty/" -"silent defects in interpreting it. But it has at most 52 significant " -"bits, so a signed 64-bit integer or double-precision float type are safe " -"for storing this identifier." +"significant bits and some programming languages may have " +"difficulty/silent defects in interpreting it. But it has at most 52 " +"significant bits, so a signed 64-bit integer or double-precision float " +"type are safe for storing this identifier." msgstr "" "Унікальний ідентифікатор цього чату. Це число може мати більше 32 " "значущих бітів, і деякі мови програмування можуть мати труднощі в його " @@ -375,5 +344,26 @@ msgid "" "URL of the chat’s photo. The photo can be in .jpeg or .svg formats. Only " "returned for Web Apps launched from the attachment menu." msgstr "" -"URL-адреса фотографії чату. Фотографія може бути у форматах .jpeg або ." -"svg. Повертається лише для Веб Застосунків, запущених із меню вкладень." +"URL-адреса фотографії чату. Фотографія може бути у форматах .jpeg або " +".svg. Повертається лише для Веб Застосунків, запущених із меню вкладень." + +#~ msgid "" +#~ "Configuration for the model, should be" +#~ " a dictionary conforming to " +#~ "[`ConfigDict`][pydantic.config.ConfigDict]." +#~ msgstr "" +#~ "Конфігурація для моделі має бути " +#~ "словником, що відповідає " +#~ "[`ConfigDict`][pydantic.config.ConfigDict]." + +#~ msgid "" +#~ "Metadata about the fields defined on " +#~ "the model, mapping of field names " +#~ "to [`FieldInfo`][pydantic.fields.FieldInfo]." +#~ msgstr "" +#~ "Метадані про поля, визначені на моделі," +#~ " відображення назв полів у " +#~ "[`FieldInfo`][pydantic.fields.FieldInfo]." + +#~ msgid "This replaces `Model.__fields__` from Pydantic V1." +#~ msgstr "Це замінює `Model.__fields__` з Pydantic V1."