From b287551590aea6caa9220566071cefa437d1b8ee Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 6 Nov 2022 14:28:21 +0200 Subject: [PATCH] Bot API 6.3 (#1063) * Added API changes * Added changelog * Oops. Move changelog * Update tests * Remove experimental * Added message content type * Update message aliases * Update changes * Update texts * Bump version * Remove versionadded badge --- .apiversion | 2 +- CHANGES/1029.doc.rst | 2 +- CHANGES/1030.feature.rst | 12 +- CHANGES/1049.feature.rst | 6 +- CHANGES/1057.feature.rst | 1 + README.rst | 2 +- aiogram/__init__.py | 4 +- aiogram/client/bot.py | 295 +++++++- aiogram/methods/__init__.py | 14 + aiogram/methods/answer_callback_query.py | 2 +- aiogram/methods/answer_inline_query.py | 2 +- aiogram/methods/close_forum_topic.py | 28 + aiogram/methods/copy_message.py | 4 +- aiogram/methods/create_forum_topic.py | 33 + aiogram/methods/delete_forum_topic.py | 28 + aiogram/methods/delete_message.py | 2 + aiogram/methods/edit_forum_topic.py | 32 + aiogram/methods/edit_message_caption.py | 2 +- aiogram/methods/edit_message_live_location.py | 2 +- aiogram/methods/edit_message_media.py | 2 +- aiogram/methods/edit_message_reply_markup.py | 2 +- aiogram/methods/edit_message_text.py | 2 +- aiogram/methods/forward_message.py | 2 + aiogram/methods/get_chat_menu_button.py | 6 +- .../methods/get_forum_topic_icon_stickers.py | 24 + aiogram/methods/promote_chat_member.py | 2 + aiogram/methods/reopen_forum_topic.py | 28 + aiogram/methods/send_animation.py | 4 +- aiogram/methods/send_audio.py | 4 +- aiogram/methods/send_contact.py | 4 +- aiogram/methods/send_dice.py | 4 +- aiogram/methods/send_document.py | 4 +- aiogram/methods/send_game.py | 4 +- aiogram/methods/send_invoice.py | 4 +- aiogram/methods/send_location.py | 4 +- aiogram/methods/send_media_group.py | 2 + aiogram/methods/send_message.py | 4 +- aiogram/methods/send_photo.py | 4 +- aiogram/methods/send_poll.py | 4 +- aiogram/methods/send_sticker.py | 4 +- aiogram/methods/send_venue.py | 4 +- aiogram/methods/send_video.py | 4 +- aiogram/methods/send_video_note.py | 4 +- aiogram/methods/send_voice.py | 4 +- aiogram/methods/set_chat_menu_button.py | 6 +- aiogram/methods/set_chat_title.py | 2 +- aiogram/methods/set_my_commands.py | 2 +- aiogram/methods/stop_message_live_location.py | 2 +- aiogram/methods/stop_poll.py | 2 +- .../methods/unpin_all_forum_topic_messages.py | 28 + aiogram/types/__init__.py | 8 + aiogram/types/callback_query.py | 2 +- aiogram/types/chat.py | 8 +- aiogram/types/chat_administrator_rights.py | 2 + aiogram/types/chat_member.py | 2 + aiogram/types/chat_member_administrator.py | 2 + aiogram/types/chat_member_restricted.py | 2 + aiogram/types/chat_permissions.py | 2 + aiogram/types/force_reply.py | 2 +- aiogram/types/forum_topic.py | 22 + aiogram/types/forum_topic_closed.py | 11 + aiogram/types/forum_topic_created.py | 20 + aiogram/types/forum_topic_reopened.py | 11 + aiogram/types/inline_keyboard_markup.py | 2 +- aiogram/types/inline_query_result_article.py | 2 +- aiogram/types/inline_query_result_audio.py | 2 +- .../types/inline_query_result_cached_audio.py | 2 +- .../inline_query_result_cached_document.py | 2 +- .../types/inline_query_result_cached_gif.py | 2 +- .../inline_query_result_cached_mpeg4_gif.py | 2 +- .../types/inline_query_result_cached_photo.py | 2 +- .../inline_query_result_cached_sticker.py | 2 +- .../types/inline_query_result_cached_video.py | 2 +- .../types/inline_query_result_cached_voice.py | 2 +- aiogram/types/inline_query_result_contact.py | 2 +- aiogram/types/inline_query_result_game.py | 2 +- aiogram/types/inline_query_result_gif.py | 2 +- aiogram/types/inline_query_result_location.py | 2 +- .../types/inline_query_result_mpeg4_gif.py | 2 +- aiogram/types/inline_query_result_photo.py | 2 +- aiogram/types/inline_query_result_venue.py | 2 +- aiogram/types/inline_query_result_video.py | 2 +- aiogram/types/inline_query_result_voice.py | 2 +- aiogram/types/menu_button_commands.py | 2 +- aiogram/types/menu_button_default.py | 2 +- aiogram/types/menu_button_web_app.py | 2 +- aiogram/types/message.py | 177 ++++- aiogram/types/user.py | 5 +- aiogram/types/video_chat_ended.py | 5 - aiogram/types/video_chat_scheduled.py | 4 +- docs/api/methods/close_forum_topic.rst | 44 ++ docs/api/methods/create_forum_topic.rst | 44 ++ docs/api/methods/delete_forum_topic.rst | 44 ++ docs/api/methods/edit_forum_topic.rst | 44 ++ .../methods/edit_message_live_location.rst | 8 - docs/api/methods/edit_message_media.rst | 8 - docs/api/methods/forward_message.rst | 8 - docs/api/methods/get_chat_menu_button.rst | 6 +- .../methods/get_forum_topic_icon_stickers.rst | 37 + docs/api/methods/index.rst | 7 + docs/api/methods/pin_chat_message.rst | 8 - docs/api/methods/reopen_forum_topic.rst | 44 ++ .../methods/stop_message_live_location.rst | 8 - .../unpin_all_forum_topic_messages.rst | 44 ++ docs/api/methods/unpin_chat_message.rst | 8 - docs/api/types/forum_topic.rst | 9 + docs/api/types/forum_topic_closed.rst | 9 + docs/api/types/forum_topic_created.rst | 9 + docs/api/types/forum_topic_reopened.rst | 9 + docs/api/types/index.rst | 4 + docs/dispatcher/filters/index.rst | 2 - docs/locale/en/LC_MESSAGES/api/bot.po | 682 ++++++++++++------ .../api/methods/answer_callback_query.po | 21 +- .../api/methods/answer_inline_query.po | 20 +- .../api/methods/close_forum_topic.po | 82 +++ .../LC_MESSAGES/api/methods/copy_message.po | 28 +- .../api/methods/create_forum_topic.po | 98 +++ .../api/methods/delete_forum_topic.po | 82 +++ .../LC_MESSAGES/api/methods/delete_message.po | 22 +- .../api/methods/edit_forum_topic.po | 93 +++ .../api/methods/edit_message_caption.po | 12 +- .../api/methods/edit_message_live_location.po | 29 +- .../api/methods/edit_message_media.po | 29 +- .../api/methods/edit_message_reply_markup.po | 12 +- .../api/methods/edit_message_text.po | 12 +- .../api/methods/forward_message.po | 26 +- .../api/methods/get_chat_menu_button.po | 9 +- .../methods/get_forum_topic_icon_stickers.po | 67 ++ .../api/methods/pin_chat_message.po | 19 +- .../api/methods/promote_chat_member.po | 9 +- .../api/methods/reopen_forum_topic.po | 82 +++ .../LC_MESSAGES/api/methods/send_animation.po | 28 +- .../en/LC_MESSAGES/api/methods/send_audio.po | 27 +- .../LC_MESSAGES/api/methods/send_contact.po | 28 +- .../en/LC_MESSAGES/api/methods/send_dice.po | 27 +- .../LC_MESSAGES/api/methods/send_document.po | 28 +- .../en/LC_MESSAGES/api/methods/send_game.po | 24 +- .../LC_MESSAGES/api/methods/send_invoice.po | 25 +- .../LC_MESSAGES/api/methods/send_location.po | 28 +- .../api/methods/send_media_group.po | 9 +- .../LC_MESSAGES/api/methods/send_message.po | 28 +- .../en/LC_MESSAGES/api/methods/send_photo.po | 27 +- .../en/LC_MESSAGES/api/methods/send_poll.po | 27 +- .../LC_MESSAGES/api/methods/send_sticker.po | 28 +- .../en/LC_MESSAGES/api/methods/send_venue.po | 27 +- .../en/LC_MESSAGES/api/methods/send_video.po | 27 +- .../api/methods/send_video_note.po | 28 +- .../en/LC_MESSAGES/api/methods/send_voice.po | 27 +- .../LC_MESSAGES/api/methods/set_chat_title.po | 7 +- .../api/methods/set_my_commands.po | 20 +- .../api/methods/stop_message_live_location.po | 29 +- .../en/LC_MESSAGES/api/methods/stop_poll.po | 12 +- .../methods/unpin_all_forum_topic_messages.po | 88 +++ .../api/methods/unpin_chat_message.po | 19 +- .../LC_MESSAGES/api/types/callback_query.po | 34 +- docs/locale/en/LC_MESSAGES/api/types/chat.po | 24 +- .../api/types/chat_administrator_rights.po | 10 +- .../en/LC_MESSAGES/api/types/chat_member.po | 8 +- .../api/types/chat_member_administrator.po | 10 +- .../api/types/chat_member_restricted.po | 8 +- .../LC_MESSAGES/api/types/chat_permissions.po | 9 +- .../en/LC_MESSAGES/api/types/force_reply.po | 17 +- .../en/LC_MESSAGES/api/types/forum_topic.po | 47 ++ .../api/types/forum_topic_closed.po | 32 + .../api/types/forum_topic_created.po | 48 ++ .../api/types/forum_topic_reopened.po | 32 + .../api/types/inline_keyboard_markup.po | 22 +- .../api/types/inline_query_result_article.po | 13 +- .../api/types/inline_query_result_audio.po | 13 +- .../types/inline_query_result_cached_audio.po | 13 +- .../inline_query_result_cached_document.po | 13 +- .../types/inline_query_result_cached_gif.po | 13 +- .../inline_query_result_cached_mpeg4_gif.po | 13 +- .../types/inline_query_result_cached_photo.po | 13 +- .../inline_query_result_cached_sticker.po | 13 +- .../types/inline_query_result_cached_video.po | 13 +- .../types/inline_query_result_cached_voice.po | 13 +- .../api/types/inline_query_result_contact.po | 13 +- .../api/types/inline_query_result_game.po | 13 +- .../api/types/inline_query_result_gif.po | 13 +- .../api/types/inline_query_result_location.po | 13 +- .../types/inline_query_result_mpeg4_gif.po | 13 +- .../api/types/inline_query_result_photo.po | 13 +- .../api/types/inline_query_result_venue.po | 13 +- .../api/types/inline_query_result_video.po | 13 +- .../api/types/inline_query_result_voice.po | 13 +- .../en/LC_MESSAGES/api/types/message.po | 24 +- docs/locale/en/LC_MESSAGES/api/types/user.po | 27 +- docs/locale/uk_UA/LC_MESSAGES/api/bot.po | 682 ++++++++++++------ .../api/methods/answer_callback_query.po | 21 +- .../api/methods/answer_inline_query.po | 20 +- .../api/methods/close_forum_topic.po | 82 +++ .../LC_MESSAGES/api/methods/copy_message.po | 28 +- .../api/methods/create_forum_topic.po | 98 +++ .../api/methods/delete_forum_topic.po | 82 +++ .../LC_MESSAGES/api/methods/delete_message.po | 22 +- .../api/methods/edit_forum_topic.po | 93 +++ .../api/methods/edit_message_caption.po | 12 +- .../api/methods/edit_message_live_location.po | 29 +- .../api/methods/edit_message_media.po | 29 +- .../api/methods/edit_message_reply_markup.po | 12 +- .../api/methods/edit_message_text.po | 12 +- .../api/methods/forward_message.po | 26 +- .../api/methods/get_chat_menu_button.po | 9 +- .../methods/get_forum_topic_icon_stickers.po | 67 ++ .../api/methods/pin_chat_message.po | 19 +- .../api/methods/promote_chat_member.po | 9 +- .../api/methods/reopen_forum_topic.po | 82 +++ .../LC_MESSAGES/api/methods/send_animation.po | 28 +- .../LC_MESSAGES/api/methods/send_audio.po | 27 +- .../LC_MESSAGES/api/methods/send_contact.po | 28 +- .../LC_MESSAGES/api/methods/send_dice.po | 27 +- .../LC_MESSAGES/api/methods/send_document.po | 28 +- .../LC_MESSAGES/api/methods/send_game.po | 24 +- .../LC_MESSAGES/api/methods/send_invoice.po | 25 +- .../LC_MESSAGES/api/methods/send_location.po | 28 +- .../api/methods/send_media_group.po | 9 +- .../LC_MESSAGES/api/methods/send_message.po | 28 +- .../LC_MESSAGES/api/methods/send_photo.po | 27 +- .../LC_MESSAGES/api/methods/send_poll.po | 27 +- .../LC_MESSAGES/api/methods/send_sticker.po | 28 +- .../LC_MESSAGES/api/methods/send_venue.po | 27 +- .../LC_MESSAGES/api/methods/send_video.po | 27 +- .../api/methods/send_video_note.po | 28 +- .../LC_MESSAGES/api/methods/send_voice.po | 27 +- .../LC_MESSAGES/api/methods/set_chat_title.po | 7 +- .../api/methods/set_my_commands.po | 20 +- .../api/methods/stop_message_live_location.po | 29 +- .../LC_MESSAGES/api/methods/stop_poll.po | 12 +- .../methods/unpin_all_forum_topic_messages.po | 88 +++ .../api/methods/unpin_chat_message.po | 19 +- .../LC_MESSAGES/api/types/callback_query.po | 34 +- .../uk_UA/LC_MESSAGES/api/types/chat.po | 24 +- .../api/types/chat_administrator_rights.po | 10 +- .../LC_MESSAGES/api/types/chat_member.po | 8 +- .../api/types/chat_member_administrator.po | 10 +- .../api/types/chat_member_restricted.po | 8 +- .../LC_MESSAGES/api/types/chat_permissions.po | 9 +- .../LC_MESSAGES/api/types/force_reply.po | 17 +- .../LC_MESSAGES/api/types/forum_topic.po | 47 ++ .../api/types/forum_topic_closed.po | 32 + .../api/types/forum_topic_created.po | 48 ++ .../api/types/forum_topic_reopened.po | 32 + .../api/types/inline_keyboard_markup.po | 22 +- .../api/types/inline_query_result_article.po | 13 +- .../api/types/inline_query_result_audio.po | 13 +- .../types/inline_query_result_cached_audio.po | 13 +- .../inline_query_result_cached_document.po | 13 +- .../types/inline_query_result_cached_gif.po | 13 +- .../inline_query_result_cached_mpeg4_gif.po | 13 +- .../types/inline_query_result_cached_photo.po | 13 +- .../inline_query_result_cached_sticker.po | 13 +- .../types/inline_query_result_cached_video.po | 13 +- .../types/inline_query_result_cached_voice.po | 13 +- .../api/types/inline_query_result_contact.po | 13 +- .../api/types/inline_query_result_game.po | 13 +- .../api/types/inline_query_result_gif.po | 13 +- .../api/types/inline_query_result_location.po | 13 +- .../types/inline_query_result_mpeg4_gif.po | 13 +- .../api/types/inline_query_result_photo.po | 13 +- .../api/types/inline_query_result_venue.po | 13 +- .../api/types/inline_query_result_video.po | 13 +- .../api/types/inline_query_result_voice.po | 13 +- .../uk_UA/LC_MESSAGES/api/types/message.po | 24 +- .../uk_UA/LC_MESSAGES/api/types/user.po | 27 +- pyproject.toml | 2 +- .../test_methods/test_close_forum_topic.py | 32 + .../test_methods/test_create_forum_topic.py | 41 ++ .../test_methods/test_delete_forum_topic.py | 32 + .../test_methods/test_edit_forum_topic.py | 37 + .../test_get_forum_topic_icon_stickers.py | 29 + .../test_methods/test_reopen_forum_topic.py | 32 + .../test_unpin_all_forum_topic_messages.py | 32 + tests/test_api/test_types/test_message.py | 30 + .../test_filters/test_chat_member_updated.py | 1 + 275 files changed, 5821 insertions(+), 1133 deletions(-) create mode 100644 CHANGES/1057.feature.rst create mode 100644 aiogram/methods/close_forum_topic.py create mode 100644 aiogram/methods/create_forum_topic.py create mode 100644 aiogram/methods/delete_forum_topic.py create mode 100644 aiogram/methods/edit_forum_topic.py create mode 100644 aiogram/methods/get_forum_topic_icon_stickers.py create mode 100644 aiogram/methods/reopen_forum_topic.py create mode 100644 aiogram/methods/unpin_all_forum_topic_messages.py create mode 100644 aiogram/types/forum_topic.py create mode 100644 aiogram/types/forum_topic_closed.py create mode 100644 aiogram/types/forum_topic_created.py create mode 100644 aiogram/types/forum_topic_reopened.py create mode 100644 docs/api/methods/close_forum_topic.rst create mode 100644 docs/api/methods/create_forum_topic.rst create mode 100644 docs/api/methods/delete_forum_topic.rst create mode 100644 docs/api/methods/edit_forum_topic.rst create mode 100644 docs/api/methods/get_forum_topic_icon_stickers.rst create mode 100644 docs/api/methods/reopen_forum_topic.rst create mode 100644 docs/api/methods/unpin_all_forum_topic_messages.rst create mode 100644 docs/api/types/forum_topic.rst create mode 100644 docs/api/types/forum_topic_closed.rst create mode 100644 docs/api/types/forum_topic_created.rst create mode 100644 docs/api/types/forum_topic_reopened.rst create mode 100644 docs/locale/en/LC_MESSAGES/api/methods/close_forum_topic.po create mode 100644 docs/locale/en/LC_MESSAGES/api/methods/create_forum_topic.po create mode 100644 docs/locale/en/LC_MESSAGES/api/methods/delete_forum_topic.po create mode 100644 docs/locale/en/LC_MESSAGES/api/methods/edit_forum_topic.po create mode 100644 docs/locale/en/LC_MESSAGES/api/methods/get_forum_topic_icon_stickers.po create mode 100644 docs/locale/en/LC_MESSAGES/api/methods/reopen_forum_topic.po create mode 100644 docs/locale/en/LC_MESSAGES/api/methods/unpin_all_forum_topic_messages.po create mode 100644 docs/locale/en/LC_MESSAGES/api/types/forum_topic.po create mode 100644 docs/locale/en/LC_MESSAGES/api/types/forum_topic_closed.po create mode 100644 docs/locale/en/LC_MESSAGES/api/types/forum_topic_created.po create mode 100644 docs/locale/en/LC_MESSAGES/api/types/forum_topic_reopened.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/close_forum_topic.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/create_forum_topic.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_forum_topic.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_forum_topic.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/get_forum_topic_icon_stickers.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/reopen_forum_topic.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/methods/unpin_all_forum_topic_messages.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_closed.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_created.po create mode 100644 docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_reopened.po create mode 100644 tests/test_api/test_methods/test_close_forum_topic.py create mode 100644 tests/test_api/test_methods/test_create_forum_topic.py create mode 100644 tests/test_api/test_methods/test_delete_forum_topic.py create mode 100644 tests/test_api/test_methods/test_edit_forum_topic.py create mode 100644 tests/test_api/test_methods/test_get_forum_topic_icon_stickers.py create mode 100644 tests/test_api/test_methods/test_reopen_forum_topic.py create mode 100644 tests/test_api/test_methods/test_unpin_all_forum_topic_messages.py diff --git a/.apiversion b/.apiversion index 0cda48ac..0faee7d9 100644 --- a/.apiversion +++ b/.apiversion @@ -1 +1 @@ -6.2 +6.3 diff --git a/CHANGES/1029.doc.rst b/CHANGES/1029.doc.rst index 0f13c395..b199aa40 100644 --- a/CHANGES/1029.doc.rst +++ b/CHANGES/1029.doc.rst @@ -1 +1 @@ -Fix typehints for `Message` `reply_media_group` & `answer_media_group` methods +Fix typehints for :code:`Message`, :code:`reply_media_group` and :code:`answer_media_group` methods diff --git a/CHANGES/1030.feature.rst b/CHANGES/1030.feature.rst index 4007fc61..913cb6f8 100644 --- a/CHANGES/1030.feature.rst +++ b/CHANGES/1030.feature.rst @@ -1,8 +1,8 @@ Added following methods to ``Message`` class: -- ``Message.forward(...)`` -- ``Message.edit_media(...)`` -- ``Message.edit_live_location(...)`` -- ``Message.stop_live_location(...)`` -- ``Message.pin(...)`` -- ``Message.unpin()`` +- :code:`Message.forward(...)` +- :code:`Message.edit_media(...)` +- :code:`Message.edit_live_location(...)` +- :code:`Message.stop_live_location(...)` +- :code:`Message.pin(...)` +- :code:`Message.unpin()` diff --git a/CHANGES/1049.feature.rst b/CHANGES/1049.feature.rst index c54bef04..006168db 100644 --- a/CHANGES/1049.feature.rst +++ b/CHANGES/1049.feature.rst @@ -1,4 +1,4 @@ -Added following methods to ``User`` class: +Added following methods to :code:`User` class: -- ``User.mention_markdown(...)`` -- ``User.mention_html(...)`` +- :code:`User.mention_markdown(...)` +- :code:`User.mention_html(...)` diff --git a/CHANGES/1057.feature.rst b/CHANGES/1057.feature.rst new file mode 100644 index 00000000..0b8f0b47 --- /dev/null +++ b/CHANGES/1057.feature.rst @@ -0,0 +1 @@ +Added full support of `Bot API 6.3 `_ diff --git a/README.rst b/README.rst index b27d12e1..dce1339f 100644 --- a/README.rst +++ b/README.rst @@ -13,7 +13,7 @@ aiogram |beta badge| :target: https://pypi.python.org/pypi/aiogram :alt: Supported python versions -.. image:: https://img.shields.io/badge/Telegram%20Bot%20API-6.2-blue.svg?logo=telegram +.. image:: https://img.shields.io/badge/Telegram%20Bot%20API-6.3-blue.svg?logo=telegram :target: https://core.telegram.org/bots/api :alt: Telegram Bot API diff --git a/aiogram/__init__.py b/aiogram/__init__.py index 395fb148..65af1f20 100644 --- a/aiogram/__init__.py +++ b/aiogram/__init__.py @@ -35,5 +35,5 @@ __all__ = ( "flags", ) -__version__ = "3.0.0b5" -__api_version__ = "6.2" +__version__ = "3.0.0b6" +__api_version__ = "6.3" diff --git a/aiogram/client/bot.py b/aiogram/client/bot.py index d8762dba..843a3779 100644 --- a/aiogram/client/bot.py +++ b/aiogram/client/bot.py @@ -32,18 +32,22 @@ from ..methods import ( BanChatMember, BanChatSenderChat, Close, + CloseForumTopic, CopyMessage, CreateChatInviteLink, + CreateForumTopic, CreateInvoiceLink, CreateNewStickerSet, DeclineChatJoinRequest, DeleteChatPhoto, DeleteChatStickerSet, + DeleteForumTopic, DeleteMessage, DeleteMyCommands, DeleteStickerFromSet, DeleteWebhook, EditChatInviteLink, + EditForumTopic, EditMessageCaption, EditMessageLiveLocation, EditMessageMedia, @@ -59,6 +63,7 @@ from ..methods import ( GetChatMenuButton, GetCustomEmojiStickers, GetFile, + GetForumTopicIconStickers, GetGameHighScores, GetMe, GetMyCommands, @@ -72,6 +77,7 @@ from ..methods import ( LogOut, PinChatMessage, PromoteChatMember, + ReopenForumTopic, RestrictChatMember, RevokeChatInviteLink, SendAnimation, @@ -112,6 +118,7 @@ from ..methods import ( UnbanChatMember, UnbanChatSenderChat, UnpinAllChatMessages, + UnpinAllForumTopicMessages, UnpinChatMessage, UploadStickerFile, ) @@ -132,6 +139,7 @@ from ..types import ( Downloadable, File, ForceReply, + ForumTopic, GameHighScore, InlineKeyboardMarkup, InlineQueryResult, @@ -143,7 +151,9 @@ from ..types import ( InputMediaVideo, LabeledPrice, MaskPosition, - MenuButton, + MenuButtonCommands, + MenuButtonDefault, + MenuButtonWebApp, Message, MessageEntity, MessageId, @@ -548,6 +558,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: Union[int, str], text: str, + message_thread_id: Optional[int] = None, parse_mode: Optional[str] = UNSET, entities: Optional[List[MessageEntity]] = None, disable_web_page_preview: Optional[bool] = None, @@ -567,6 +578,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param text: Text of the message to be sent, 1-4096 characters after entities parsing + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param parse_mode: Mode for parsing entities in the message text. See `formatting options `_ for more details. :param entities: A JSON-serialized list of special entities that appear in message text, which can be specified instead of *parse_mode* :param disable_web_page_preview: Disables link previews for links in this message @@ -574,13 +586,14 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ call = SendMessage( chat_id=chat_id, text=text, + message_thread_id=message_thread_id, parse_mode=parse_mode, entities=entities, disable_web_page_preview=disable_web_page_preview, @@ -597,6 +610,7 @@ class Bot(ContextInstanceMixin["Bot"]): chat_id: Union[int, str], from_chat_id: Union[int, str], message_id: int, + message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, protect_content: Optional[bool] = None, request_timeout: Optional[int] = None, @@ -609,6 +623,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param from_chat_id: Unique identifier for the chat where the original message was sent (or channel username in the format :code:`@channelusername`) :param message_id: Message identifier in the chat specified in *from_chat_id* + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param disable_notification: Sends the message `silently `_. Users will receive a notification with no sound. :param protect_content: Protects the contents of the forwarded message from forwarding and saving :param request_timeout: Request timeout @@ -618,6 +633,7 @@ class Bot(ContextInstanceMixin["Bot"]): chat_id=chat_id, from_chat_id=from_chat_id, message_id=message_id, + message_thread_id=message_thread_id, disable_notification=disable_notification, protect_content=protect_content, ) @@ -628,6 +644,7 @@ class Bot(ContextInstanceMixin["Bot"]): chat_id: Union[int, str], from_chat_id: Union[int, str], message_id: int, + message_thread_id: Optional[int] = None, caption: Optional[str] = None, parse_mode: Optional[str] = UNSET, caption_entities: Optional[List[MessageEntity]] = None, @@ -648,6 +665,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param from_chat_id: Unique identifier for the chat where the original message was sent (or channel username in the format :code:`@channelusername`) :param message_id: Message identifier in the chat specified in *from_chat_id* + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param caption: New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept :param parse_mode: Mode for parsing entities in the new caption. See `formatting options `_ for more details. :param caption_entities: A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of *parse_mode* @@ -655,7 +673,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: Returns the MessageId of the sent message on success. """ @@ -663,6 +681,7 @@ class Bot(ContextInstanceMixin["Bot"]): chat_id=chat_id, from_chat_id=from_chat_id, message_id=message_id, + message_thread_id=message_thread_id, caption=caption, parse_mode=parse_mode, caption_entities=caption_entities, @@ -678,6 +697,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: Union[int, str], photo: Union[InputFile, str], + message_thread_id: Optional[int] = None, caption: Optional[str] = None, parse_mode: Optional[str] = UNSET, caption_entities: Optional[List[MessageEntity]] = None, @@ -697,6 +717,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param photo: 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 » ` + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param caption: Photo caption (may also be used when resending photos by *file_id*), 0-1024 characters after entities parsing :param parse_mode: Mode for parsing entities in the photo caption. See `formatting options `_ for more details. :param caption_entities: A JSON-serialized list of special entities that appear in the caption, which can be specified instead of *parse_mode* @@ -704,13 +725,14 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ call = SendPhoto( chat_id=chat_id, photo=photo, + message_thread_id=message_thread_id, caption=caption, parse_mode=parse_mode, caption_entities=caption_entities, @@ -726,6 +748,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: Union[int, str], audio: Union[InputFile, str], + message_thread_id: Optional[int] = None, caption: Optional[str] = None, parse_mode: Optional[str] = UNSET, caption_entities: Optional[List[MessageEntity]] = None, @@ -750,6 +773,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param audio: 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 » ` + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param caption: Audio caption, 0-1024 characters after entities parsing :param parse_mode: Mode for parsing entities in the audio caption. See `formatting options `_ for more details. :param caption_entities: A JSON-serialized list of special entities that appear in the caption, which can be specified instead of *parse_mode* @@ -761,13 +785,14 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ call = SendAudio( chat_id=chat_id, audio=audio, + message_thread_id=message_thread_id, caption=caption, parse_mode=parse_mode, caption_entities=caption_entities, @@ -787,6 +812,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: Union[int, str], document: Union[InputFile, str], + message_thread_id: Optional[int] = None, thumb: Optional[Union[InputFile, str]] = None, caption: Optional[str] = None, parse_mode: Optional[str] = UNSET, @@ -808,6 +834,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param document: 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 » ` + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param thumb: 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 » ` :param caption: Document caption (may also be used when resending documents by *file_id*), 0-1024 characters after entities parsing :param parse_mode: Mode for parsing entities in the document caption. See `formatting options `_ for more details. @@ -817,13 +844,14 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ call = SendDocument( chat_id=chat_id, document=document, + message_thread_id=message_thread_id, thumb=thumb, caption=caption, parse_mode=parse_mode, @@ -841,6 +869,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: Union[int, str], video: Union[InputFile, str], + message_thread_id: Optional[int] = None, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, @@ -865,6 +894,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param video: 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 » ` + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param duration: Duration of sent video in seconds :param width: Video width :param height: Video height @@ -877,13 +907,14 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ call = SendVideo( chat_id=chat_id, video=video, + message_thread_id=message_thread_id, duration=duration, width=width, height=height, @@ -904,6 +935,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: Union[int, str], animation: Union[InputFile, str], + message_thread_id: Optional[int] = None, duration: Optional[int] = None, width: Optional[int] = None, height: Optional[int] = None, @@ -927,6 +959,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param animation: 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 » ` + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param duration: Duration of sent animation in seconds :param width: Animation width :param height: Animation height @@ -938,13 +971,14 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ call = SendAnimation( chat_id=chat_id, animation=animation, + message_thread_id=message_thread_id, duration=duration, width=width, height=height, @@ -964,6 +998,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: Union[int, str], voice: Union[InputFile, str], + message_thread_id: Optional[int] = None, caption: Optional[str] = None, parse_mode: Optional[str] = UNSET, caption_entities: Optional[List[MessageEntity]] = None, @@ -984,6 +1019,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param voice: 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 » ` + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param caption: Voice message caption, 0-1024 characters after entities parsing :param parse_mode: Mode for parsing entities in the voice message caption. See `formatting options `_ for more details. :param caption_entities: A JSON-serialized list of special entities that appear in the caption, which can be specified instead of *parse_mode* @@ -992,13 +1028,14 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ call = SendVoice( chat_id=chat_id, voice=voice, + message_thread_id=message_thread_id, caption=caption, parse_mode=parse_mode, caption_entities=caption_entities, @@ -1015,6 +1052,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: Union[int, str], video_note: Union[InputFile, str], + message_thread_id: Optional[int] = None, duration: Optional[int] = None, length: Optional[int] = None, thumb: Optional[Union[InputFile, str]] = None, @@ -1034,6 +1072,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param video_note: 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 + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param duration: Duration of sent video in seconds :param length: Video width and height, i.e. diameter of the video message :param thumb: 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 » ` @@ -1041,13 +1080,14 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ call = SendVideoNote( chat_id=chat_id, video_note=video_note, + message_thread_id=message_thread_id, duration=duration, length=length, thumb=thumb, @@ -1063,6 +1103,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: Union[int, str], media: List[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]], + message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, protect_content: Optional[bool] = None, reply_to_message_id: Optional[int] = None, @@ -1076,6 +1117,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param media: A JSON-serialized array describing messages to be sent, must include 2-10 items + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param disable_notification: Sends messages `silently `_. Users will receive a notification with no sound. :param protect_content: Protects the contents of the sent messages from forwarding and saving :param reply_to_message_id: If the messages are a reply, ID of the original message @@ -1086,6 +1128,7 @@ class Bot(ContextInstanceMixin["Bot"]): call = SendMediaGroup( chat_id=chat_id, media=media, + message_thread_id=message_thread_id, disable_notification=disable_notification, protect_content=protect_content, reply_to_message_id=reply_to_message_id, @@ -1098,6 +1141,7 @@ class Bot(ContextInstanceMixin["Bot"]): chat_id: Union[int, str], latitude: float, longitude: float, + message_thread_id: Optional[int] = None, horizontal_accuracy: Optional[float] = None, live_period: Optional[int] = None, heading: Optional[int] = None, @@ -1119,6 +1163,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param latitude: Latitude of the location :param longitude: Longitude of the location + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param horizontal_accuracy: The radius of uncertainty for the location, measured in meters; 0-1500 :param live_period: Period in seconds for which the location will be updated (see `Live Locations `_, should be between 60 and 86400. :param heading: For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. @@ -1127,7 +1172,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ @@ -1135,6 +1180,7 @@ class Bot(ContextInstanceMixin["Bot"]): chat_id=chat_id, latitude=latitude, longitude=longitude, + message_thread_id=message_thread_id, horizontal_accuracy=horizontal_accuracy, live_period=live_period, heading=heading, @@ -1173,7 +1219,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param horizontal_accuracy: The radius of uncertainty for the location, measured in meters; 0-1500 :param heading: Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. :param proximity_alert_radius: The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified. - :param reply_markup: A JSON-serialized object for a new `inline keyboard `_. + :param reply_markup: A JSON-serialized object for a new `inline keyboard `_. :param request_timeout: Request timeout :return: On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. @@ -1207,7 +1253,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: 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`) :param message_id: Required if *inline_message_id* is not specified. Identifier of the message with live location to stop :param inline_message_id: Required if *chat_id* and *message_id* are not specified. Identifier of the inline message - :param reply_markup: A JSON-serialized object for a new `inline keyboard `_. + :param reply_markup: A JSON-serialized object for a new `inline keyboard `_. :param request_timeout: Request timeout :return: On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned. @@ -1227,6 +1273,7 @@ class Bot(ContextInstanceMixin["Bot"]): longitude: float, title: str, address: str, + message_thread_id: Optional[int] = None, foursquare_id: Optional[str] = None, foursquare_type: Optional[str] = None, google_place_id: Optional[str] = None, @@ -1250,6 +1297,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param longitude: Longitude of the venue :param title: Name of the venue :param address: Address of the venue + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param foursquare_id: Foursquare identifier of the venue :param foursquare_type: Foursquare type of the venue, if known. (For example, 'arts_entertainment/default', 'arts_entertainment/aquarium' or 'food/icecream'.) :param google_place_id: Google Places identifier of the venue @@ -1258,7 +1306,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ @@ -1268,6 +1316,7 @@ class Bot(ContextInstanceMixin["Bot"]): longitude=longitude, title=title, address=address, + message_thread_id=message_thread_id, foursquare_id=foursquare_id, foursquare_type=foursquare_type, google_place_id=google_place_id, @@ -1285,6 +1334,7 @@ class Bot(ContextInstanceMixin["Bot"]): chat_id: Union[int, str], phone_number: str, first_name: str, + message_thread_id: Optional[int] = None, last_name: Optional[str] = None, vcard: Optional[str] = None, disable_notification: Optional[bool] = None, @@ -1304,13 +1354,14 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param phone_number: Contact's phone number :param first_name: Contact's first name + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param last_name: Contact's last name :param vcard: Additional data about the contact in the form of a `vCard `_, 0-2048 bytes :param disable_notification: Sends the message `silently `_. Users will receive a notification with no sound. :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove keyboard or to force a reply from the user. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ @@ -1318,6 +1369,7 @@ class Bot(ContextInstanceMixin["Bot"]): chat_id=chat_id, phone_number=phone_number, first_name=first_name, + message_thread_id=message_thread_id, last_name=last_name, vcard=vcard, disable_notification=disable_notification, @@ -1333,6 +1385,7 @@ class Bot(ContextInstanceMixin["Bot"]): chat_id: Union[int, str], question: str, options: List[str], + message_thread_id: Optional[int] = None, is_anonymous: Optional[bool] = None, type: Optional[str] = None, allows_multiple_answers: Optional[bool] = None, @@ -1360,6 +1413,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param question: Poll question, 1-300 characters :param options: A JSON-serialized list of answer options, 2-10 strings 1-100 characters each + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param is_anonymous: :code:`True`, if the poll needs to be anonymous, defaults to :code:`True` :param type: Poll type, 'quiz' or 'regular', defaults to 'regular' :param allows_multiple_answers: :code:`True`, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to :code:`False` @@ -1374,7 +1428,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ @@ -1382,6 +1436,7 @@ class Bot(ContextInstanceMixin["Bot"]): chat_id=chat_id, question=question, options=options, + message_thread_id=message_thread_id, is_anonymous=is_anonymous, type=type, allows_multiple_answers=allows_multiple_answers, @@ -1403,6 +1458,7 @@ class Bot(ContextInstanceMixin["Bot"]): async def send_dice( self, chat_id: Union[int, str], + message_thread_id: Optional[int] = None, emoji: Optional[str] = None, disable_notification: Optional[bool] = None, protect_content: Optional[bool] = None, @@ -1419,17 +1475,19 @@ class Bot(ContextInstanceMixin["Bot"]): Source: https://core.telegram.org/bots/api#senddice :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param emoji: 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 '🎲' :param disable_notification: Sends the message `silently `_. Users will receive a notification with no sound. :param protect_content: Protects the contents of the sent message from forwarding :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ call = SendDice( chat_id=chat_id, + message_thread_id=message_thread_id, emoji=emoji, disable_notification=disable_notification, protect_content=protect_content, @@ -1641,6 +1699,7 @@ class Bot(ContextInstanceMixin["Bot"]): can_change_info: Optional[bool] = None, can_invite_users: Optional[bool] = None, can_pin_messages: Optional[bool] = None, + can_manage_topics: Optional[bool] = None, request_timeout: Optional[int] = None, ) -> bool: """ @@ -1661,6 +1720,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param can_change_info: Pass :code:`True` if the administrator can change chat title, photo and other settings :param can_invite_users: Pass :code:`True` if the administrator can invite new users to the chat :param can_pin_messages: Pass :code:`True` if the administrator can pin messages, supergroups only + :param can_manage_topics: Pass :code:`True` if the user is allowed to create, rename, close, and reopen forum topics, supergroups only :param request_timeout: Request timeout :return: Returns True on success. """ @@ -1678,6 +1738,7 @@ class Bot(ContextInstanceMixin["Bot"]): can_change_info=can_change_info, can_invite_users=can_invite_users, can_pin_messages=can_pin_messages, + can_manage_topics=can_manage_topics, ) return await self(call, request_timeout=request_timeout) @@ -1977,7 +2038,7 @@ class Bot(ContextInstanceMixin["Bot"]): Source: https://core.telegram.org/bots/api#setchattitle :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) - :param title: New chat title, 1-255 characters + :param title: New chat title, 1-128 characters :param request_timeout: Request timeout :return: Returns True on success. """ @@ -2255,6 +2316,165 @@ class Bot(ContextInstanceMixin["Bot"]): ) return await self(call, request_timeout=request_timeout) + async def get_forum_topic_icon_stickers( + self, + request_timeout: Optional[int] = None, + ) -> List[Sticker]: + """ + Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user. Requires no parameters. Returns an Array of :class:`aiogram.types.sticker.Sticker` objects. + + Source: https://core.telegram.org/bots/api#getforumtopiciconstickers + + :param request_timeout: Request timeout + :return: Returns an Array of Sticker objects. + """ + call = GetForumTopicIconStickers() + return await self(call, request_timeout=request_timeout) + + async def create_forum_topic( + self, + chat_id: Union[int, str], + name: str, + icon_color: Optional[int] = None, + icon_custom_emoji_id: Optional[str] = None, + request_timeout: Optional[int] = None, + ) -> ForumTopic: + """ + Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can_manage_topics* administrator rights. Returns information about the created topic as a :class:`aiogram.types.forum_topic.ForumTopic` object. + + Source: https://core.telegram.org/bots/api#createforumtopic + + :param chat_id: Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`) + :param name: Topic name, 1-128 characters + :param icon_color: Color of the topic icon in RGB format. Currently, must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F + :param icon_custom_emoji_id: Unique identifier of the custom emoji shown as the topic icon. Use :class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers` to get all allowed custom emoji identifiers. + :param request_timeout: Request timeout + :return: Returns information about the created topic as a ForumTopic object. + """ + call = CreateForumTopic( + chat_id=chat_id, + name=name, + icon_color=icon_color, + icon_custom_emoji_id=icon_custom_emoji_id, + ) + return await self(call, request_timeout=request_timeout) + + async def edit_forum_topic( + self, + chat_id: Union[int, str], + message_thread_id: int, + name: str, + icon_custom_emoji_id: str, + request_timeout: Optional[int] = None, + ) -> bool: + """ + 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. + + Source: https://core.telegram.org/bots/api#editforumtopic + + :param chat_id: Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`) + :param message_thread_id: Unique identifier for the target message thread of the forum topic + :param name: New topic name, 1-128 characters + :param icon_custom_emoji_id: New unique identifier of the custom emoji shown as the topic icon. Use :class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers` to get all allowed custom emoji identifiers + :param request_timeout: Request timeout + :return: Returns True on success. + """ + call = EditForumTopic( + chat_id=chat_id, + message_thread_id=message_thread_id, + name=name, + icon_custom_emoji_id=icon_custom_emoji_id, + ) + return await self(call, request_timeout=request_timeout) + + async def close_forum_topic( + self, + chat_id: Union[int, str], + message_thread_id: int, + request_timeout: Optional[int] = None, + ) -> bool: + """ + Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can_manage_topics* administrator rights, unless it is the creator of the topic. Returns :code:`True` on success. + + Source: https://core.telegram.org/bots/api#closeforumtopic + + :param chat_id: Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`) + :param message_thread_id: Unique identifier for the target message thread of the forum topic + :param request_timeout: Request timeout + :return: Returns True on success. + """ + call = CloseForumTopic( + chat_id=chat_id, + message_thread_id=message_thread_id, + ) + return await self(call, request_timeout=request_timeout) + + async def reopen_forum_topic( + self, + chat_id: Union[int, str], + message_thread_id: int, + request_timeout: Optional[int] = None, + ) -> bool: + """ + Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can_manage_topics* administrator rights, unless it is the creator of the topic. Returns :code:`True` on success. + + Source: https://core.telegram.org/bots/api#reopenforumtopic + + :param chat_id: Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`) + :param message_thread_id: Unique identifier for the target message thread of the forum topic + :param request_timeout: Request timeout + :return: Returns True on success. + """ + call = ReopenForumTopic( + chat_id=chat_id, + message_thread_id=message_thread_id, + ) + return await self(call, request_timeout=request_timeout) + + async def delete_forum_topic( + self, + chat_id: Union[int, str], + message_thread_id: int, + request_timeout: Optional[int] = None, + ) -> bool: + """ + Use this method to delete a forum topic along with all its messages in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can_delete_messages* administrator rights. Returns :code:`True` on success. + + Source: https://core.telegram.org/bots/api#deleteforumtopic + + :param chat_id: Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`) + :param message_thread_id: Unique identifier for the target message thread of the forum topic + :param request_timeout: Request timeout + :return: Returns True on success. + """ + call = DeleteForumTopic( + chat_id=chat_id, + message_thread_id=message_thread_id, + ) + return await self(call, request_timeout=request_timeout) + + async def unpin_all_forum_topic_messages( + self, + chat_id: Union[int, str], + message_thread_id: int, + request_timeout: Optional[int] = None, + ) -> bool: + """ + Use this method to clear the list of pinned messages in a forum topic. The bot must be an administrator in the chat for this to work and must have the *can_pin_messages* administrator right in the supergroup. Returns :code:`True` on success. + + Source: https://core.telegram.org/bots/api#unpinallforumtopicmessages + + :param chat_id: Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`) + :param message_thread_id: Unique identifier for the target message thread of the forum topic + :param request_timeout: Request timeout + :return: Returns True on success. + """ + call = UnpinAllForumTopicMessages( + chat_id=chat_id, + message_thread_id=message_thread_id, + ) + return await self(call, request_timeout=request_timeout) + async def answer_callback_query( self, callback_query_id: str, @@ -2265,7 +2485,7 @@ class Bot(ContextInstanceMixin["Bot"]): request_timeout: Optional[int] = None, ) -> bool: """ - Use this method to send answers to callback queries sent from `inline keyboards `_. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, :code:`True` is returned. + Use this method to send answers to callback queries sent from `inline keyboards `_. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, :code:`True` is returned. Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via `@BotFather `_ and accept the terms. Otherwise, you may use links like :code:`t.me/your_bot?start=XXXX` that open your bot with a parameter. @@ -2296,7 +2516,7 @@ class Bot(ContextInstanceMixin["Bot"]): request_timeout: Optional[int] = None, ) -> bool: """ - Use this method to change the list of the bot's commands. See `https://core.telegram.org/bots#commands `_`https://core.telegram.org/bots#commands `_ for more details about bot commands. Returns :code:`True` on success. + Use this method to change the list of the bot's commands. See `this manual `_ for more details about bot commands. Returns :code:`True` on success. Source: https://core.telegram.org/bots/api#setmycommands @@ -2361,7 +2581,9 @@ class Bot(ContextInstanceMixin["Bot"]): async def set_chat_menu_button( self, chat_id: Optional[int] = None, - menu_button: Optional[MenuButton] = None, + menu_button: Optional[ + Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands] + ] = None, request_timeout: Optional[int] = None, ) -> bool: """ @@ -2384,7 +2606,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: Optional[int] = None, request_timeout: Optional[int] = None, - ) -> MenuButton: + ) -> Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands]: """ 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. @@ -2469,7 +2691,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param parse_mode: Mode for parsing entities in the message text. See `formatting options `_ for more details. :param entities: A JSON-serialized list of special entities that appear in message text, which can be specified instead of *parse_mode* :param disable_web_page_preview: Disables link previews for links in this message - :param reply_markup: A JSON-serialized object for an `inline keyboard `_. + :param reply_markup: A JSON-serialized object for an `inline keyboard `_. :param request_timeout: Request timeout :return: On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. @@ -2508,7 +2730,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param caption: New caption of the message, 0-1024 characters after entities parsing :param parse_mode: Mode for parsing entities in the message caption. See `formatting options `_ for more details. :param caption_entities: A JSON-serialized list of special entities that appear in the caption, which can be specified instead of *parse_mode* - :param reply_markup: A JSON-serialized object for an `inline keyboard `_. + :param reply_markup: A JSON-serialized object for an `inline keyboard `_. :param request_timeout: Request timeout :return: On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. @@ -2542,7 +2764,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: 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`) :param message_id: Required if *inline_message_id* is not specified. Identifier of the message to edit :param inline_message_id: Required if *chat_id* and *message_id* are not specified. Identifier of the inline message - :param reply_markup: A JSON-serialized object for a new `inline keyboard `_. + :param reply_markup: A JSON-serialized object for a new `inline keyboard `_. :param request_timeout: Request timeout :return: On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. @@ -2572,7 +2794,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: 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`) :param message_id: Required if *inline_message_id* is not specified. Identifier of the message to edit :param inline_message_id: Required if *chat_id* and *message_id* are not specified. Identifier of the inline message - :param reply_markup: A JSON-serialized object for an `inline keyboard `_. + :param reply_markup: A JSON-serialized object for an `inline keyboard `_. :param request_timeout: Request timeout :return: On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. @@ -2599,7 +2821,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param message_id: Identifier of the original message with the poll - :param reply_markup: A JSON-serialized object for a new message `inline keyboard `_. + :param reply_markup: A JSON-serialized object for a new message `inline keyboard `_. :param request_timeout: Request timeout :return: On success, the stopped Poll is returned. """ @@ -2621,6 +2843,8 @@ class Bot(ContextInstanceMixin["Bot"]): - A message can only be deleted if it was sent less than 48 hours ago. + - Service messages about a supergroup, channel, or forum topic creation can't be deleted. + - A dice message in a private chat can only be deleted if it was sent more than 24 hours ago. - Bots can delete outgoing messages in private chats, groups, and supergroups. @@ -2657,6 +2881,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: Union[int, str], sticker: Union[InputFile, str], + message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, protect_content: Optional[bool] = None, reply_to_message_id: Optional[int] = None, @@ -2673,17 +2898,19 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`) :param sticker: 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 file from the Internet, or upload a new one using multipart/form-data. :ref:`More information on Sending Files » ` + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param disable_notification: Sends the message `silently `_. Users will receive a notification with no sound. :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ call = SendSticker( chat_id=chat_id, sticker=sticker, + message_thread_id=message_thread_id, disable_notification=disable_notification, protect_content=protect_content, reply_to_message_id=reply_to_message_id, @@ -2927,7 +3154,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param is_personal: Pass :code:`True` if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query :param next_offset: Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes. :param switch_pm_text: If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter *switch_pm_parameter* - :param switch_pm_parameter: `Deep-linking `_ parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, :code:`0-9`, :code:`_` and :code:`-` are allowed. + :param switch_pm_parameter: `Deep-linking `_ parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, :code:`0-9`, :code:`_` and :code:`-` are allowed. :param request_timeout: Request timeout :return: On success, True is returned. """ @@ -2978,6 +3205,7 @@ class Bot(ContextInstanceMixin["Bot"]): provider_token: str, currency: str, prices: List[LabeledPrice], + message_thread_id: Optional[int] = None, max_tip_amount: Optional[int] = None, suggested_tip_amounts: Optional[List[int]] = None, start_parameter: Optional[str] = None, @@ -3012,6 +3240,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param provider_token: Payment provider token, obtained via `@BotFather `_ :param currency: Three-letter ISO 4217 currency code, see `more on currencies `_ :param prices: Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.) + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param max_tip_amount: 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 :param suggested_tip_amounts: 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*. :param start_parameter: 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 @@ -3031,7 +3260,7 @@ class Bot(ContextInstanceMixin["Bot"]): :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ @@ -3043,6 +3272,7 @@ class Bot(ContextInstanceMixin["Bot"]): provider_token=provider_token, currency=currency, prices=prices, + message_thread_id=message_thread_id, max_tip_amount=max_tip_amount, suggested_tip_amounts=suggested_tip_amounts, start_parameter=start_parameter, @@ -3234,6 +3464,7 @@ class Bot(ContextInstanceMixin["Bot"]): self, chat_id: int, game_short_name: str, + message_thread_id: Optional[int] = None, disable_notification: Optional[bool] = None, protect_content: Optional[bool] = None, reply_to_message_id: Optional[int] = None, @@ -3248,17 +3479,19 @@ class Bot(ContextInstanceMixin["Bot"]): :param chat_id: Unique identifier for the target chat :param game_short_name: Short name of the game, serves as the unique identifier for the game. Set up your games via `@BotFather `_. + :param message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only :param disable_notification: Sends the message `silently `_. Users will receive a notification with no sound. :param protect_content: Protects the contents of the sent message from forwarding and saving :param reply_to_message_id: If the message is a reply, ID of the original message :param allow_sending_without_reply: Pass :code:`True` if the message should be sent even if the specified replied-to message is not found - :param reply_markup: 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. + :param reply_markup: 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. :param request_timeout: Request timeout :return: On success, the sent Message is returned. """ call = SendGame( chat_id=chat_id, game_short_name=game_short_name, + message_thread_id=message_thread_id, disable_notification=disable_notification, protect_content=protect_content, reply_to_message_id=reply_to_message_id, diff --git a/aiogram/methods/__init__.py b/aiogram/methods/__init__.py index c62577b9..e5aac860 100644 --- a/aiogram/methods/__init__.py +++ b/aiogram/methods/__init__.py @@ -9,18 +9,22 @@ from .ban_chat_member import BanChatMember from .ban_chat_sender_chat import BanChatSenderChat from .base import Request, Response, TelegramMethod from .close import Close +from .close_forum_topic import CloseForumTopic from .copy_message import CopyMessage from .create_chat_invite_link import CreateChatInviteLink +from .create_forum_topic import CreateForumTopic from .create_invoice_link import CreateInvoiceLink from .create_new_sticker_set import CreateNewStickerSet from .decline_chat_join_request import DeclineChatJoinRequest from .delete_chat_photo import DeleteChatPhoto from .delete_chat_sticker_set import DeleteChatStickerSet +from .delete_forum_topic import DeleteForumTopic from .delete_message import DeleteMessage from .delete_my_commands import DeleteMyCommands from .delete_sticker_from_set import DeleteStickerFromSet from .delete_webhook import DeleteWebhook from .edit_chat_invite_link import EditChatInviteLink +from .edit_forum_topic import EditForumTopic from .edit_message_caption import EditMessageCaption from .edit_message_live_location import EditMessageLiveLocation from .edit_message_media import EditMessageMedia @@ -36,6 +40,7 @@ from .get_chat_members_count import GetChatMembersCount from .get_chat_menu_button import GetChatMenuButton from .get_custom_emoji_stickers import GetCustomEmojiStickers from .get_file import GetFile +from .get_forum_topic_icon_stickers import GetForumTopicIconStickers from .get_game_high_scores import GetGameHighScores from .get_me import GetMe from .get_my_commands import GetMyCommands @@ -49,6 +54,7 @@ from .leave_chat import LeaveChat from .log_out import LogOut from .pin_chat_message import PinChatMessage from .promote_chat_member import PromoteChatMember +from .reopen_forum_topic import ReopenForumTopic from .restrict_chat_member import RestrictChatMember from .revoke_chat_invite_link import RevokeChatInviteLink from .send_animation import SendAnimation @@ -88,6 +94,7 @@ from .stop_poll import StopPoll from .unban_chat_member import UnbanChatMember from .unban_chat_sender_chat import UnbanChatSenderChat from .unpin_all_chat_messages import UnpinAllChatMessages +from .unpin_all_forum_topic_messages import UnpinAllForumTopicMessages from .unpin_chat_message import UnpinChatMessage from .upload_sticker_file import UploadStickerFile @@ -153,6 +160,13 @@ __all__ = ( "GetChatMember", "SetChatStickerSet", "DeleteChatStickerSet", + "GetForumTopicIconStickers", + "CreateForumTopic", + "EditForumTopic", + "CloseForumTopic", + "ReopenForumTopic", + "DeleteForumTopic", + "UnpinAllForumTopicMessages", "AnswerCallbackQuery", "SetMyCommands", "DeleteMyCommands", diff --git a/aiogram/methods/answer_callback_query.py b/aiogram/methods/answer_callback_query.py index 3059fc1c..8d932f51 100644 --- a/aiogram/methods/answer_callback_query.py +++ b/aiogram/methods/answer_callback_query.py @@ -10,7 +10,7 @@ if TYPE_CHECKING: class AnswerCallbackQuery(TelegramMethod[bool]): """ - Use this method to send answers to callback queries sent from `inline keyboards `_. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, :code:`True` is returned. + Use this method to send answers to callback queries sent from `inline keyboards `_. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, :code:`True` is returned. Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via `@BotFather `_ and accept the terms. Otherwise, you may use links like :code:`t.me/your_bot?start=XXXX` that open your bot with a parameter. diff --git a/aiogram/methods/answer_inline_query.py b/aiogram/methods/answer_inline_query.py index 39446226..56422180 100644 --- a/aiogram/methods/answer_inline_query.py +++ b/aiogram/methods/answer_inline_query.py @@ -33,7 +33,7 @@ class AnswerInlineQuery(TelegramMethod[bool]): switch_pm_text: Optional[str] = None """If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter *switch_pm_parameter*""" switch_pm_parameter: Optional[str] = None - """`Deep-linking `_ parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, :code:`0-9`, :code:`_` and :code:`-` are allowed.""" + """`Deep-linking `_ parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, :code:`0-9`, :code:`_` and :code:`-` are allowed.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/close_forum_topic.py b/aiogram/methods/close_forum_topic.py new file mode 100644 index 00000000..da9eedec --- /dev/null +++ b/aiogram/methods/close_forum_topic.py @@ -0,0 +1,28 @@ +from __future__ import annotations + +from typing import TYPE_CHECKING, Any, Dict, Union + +from .base import Request, TelegramMethod + +if TYPE_CHECKING: + from ..client.bot import Bot + + +class CloseForumTopic(TelegramMethod[bool]): + """ + Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can_manage_topics* administrator rights, unless it is the creator of the topic. Returns :code:`True` on success. + + Source: https://core.telegram.org/bots/api#closeforumtopic + """ + + __returning__ = bool + + chat_id: Union[int, str] + """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""" + + def build_request(self, bot: Bot) -> Request: + data: Dict[str, Any] = self.dict() + + return Request(method="closeForumTopic", data=data) diff --git a/aiogram/methods/copy_message.py b/aiogram/methods/copy_message.py index 0b602d1e..fc30b8fe 100644 --- a/aiogram/methods/copy_message.py +++ b/aiogram/methods/copy_message.py @@ -32,6 +32,8 @@ class CopyMessage(TelegramMethod[MessageId]): """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""" caption: Optional[str] = None """New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept""" parse_mode: Optional[str] = UNSET @@ -49,7 +51,7 @@ class CopyMessage(TelegramMethod[MessageId]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/create_forum_topic.py b/aiogram/methods/create_forum_topic.py new file mode 100644 index 00000000..13111873 --- /dev/null +++ b/aiogram/methods/create_forum_topic.py @@ -0,0 +1,33 @@ +from __future__ import annotations + +from typing import TYPE_CHECKING, Any, Dict, Optional, Union + +from ..types import ForumTopic +from .base import Request, TelegramMethod + +if TYPE_CHECKING: + from ..client.bot import Bot + + +class CreateForumTopic(TelegramMethod[ForumTopic]): + """ + Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can_manage_topics* administrator rights. Returns information about the created topic as a :class:`aiogram.types.forum_topic.ForumTopic` object. + + Source: https://core.telegram.org/bots/api#createforumtopic + """ + + __returning__ = ForumTopic + + chat_id: Union[int, str] + """Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)""" + name: str + """Topic name, 1-128 characters""" + icon_color: Optional[int] = None + """Color of the topic icon in RGB format. Currently, must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F""" + icon_custom_emoji_id: Optional[str] = None + """Unique identifier of the custom emoji shown as the topic icon. Use :class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers` to get all allowed custom emoji identifiers.""" + + def build_request(self, bot: Bot) -> Request: + data: Dict[str, Any] = self.dict() + + return Request(method="createForumTopic", data=data) diff --git a/aiogram/methods/delete_forum_topic.py b/aiogram/methods/delete_forum_topic.py new file mode 100644 index 00000000..acbe8858 --- /dev/null +++ b/aiogram/methods/delete_forum_topic.py @@ -0,0 +1,28 @@ +from __future__ import annotations + +from typing import TYPE_CHECKING, Any, Dict, Union + +from .base import Request, TelegramMethod + +if TYPE_CHECKING: + from ..client.bot import Bot + + +class DeleteForumTopic(TelegramMethod[bool]): + """ + Use this method to delete a forum topic along with all its messages in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can_delete_messages* administrator rights. Returns :code:`True` on success. + + Source: https://core.telegram.org/bots/api#deleteforumtopic + """ + + __returning__ = bool + + chat_id: Union[int, str] + """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""" + + def build_request(self, bot: Bot) -> Request: + data: Dict[str, Any] = self.dict() + + return Request(method="deleteForumTopic", data=data) diff --git a/aiogram/methods/delete_message.py b/aiogram/methods/delete_message.py index 2e01cca4..09279969 100644 --- a/aiogram/methods/delete_message.py +++ b/aiogram/methods/delete_message.py @@ -14,6 +14,8 @@ class DeleteMessage(TelegramMethod[bool]): - A message can only be deleted if it was sent less than 48 hours ago. + - Service messages about a supergroup, channel, or forum topic creation can't be deleted. + - A dice message in a private chat can only be deleted if it was sent more than 24 hours ago. - Bots can delete outgoing messages in private chats, groups, and supergroups. diff --git a/aiogram/methods/edit_forum_topic.py b/aiogram/methods/edit_forum_topic.py new file mode 100644 index 00000000..c10bb6fd --- /dev/null +++ b/aiogram/methods/edit_forum_topic.py @@ -0,0 +1,32 @@ +from __future__ import annotations + +from typing import TYPE_CHECKING, Any, Dict, Union + +from .base import Request, TelegramMethod + +if TYPE_CHECKING: + from ..client.bot import Bot + + +class EditForumTopic(TelegramMethod[bool]): + """ + 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. + + Source: https://core.telegram.org/bots/api#editforumtopic + """ + + __returning__ = bool + + chat_id: Union[int, str] + """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""" + name: str + """New topic name, 1-128 characters""" + icon_custom_emoji_id: str + """New unique identifier of the custom emoji shown as the topic icon. Use :class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers` to get all allowed custom emoji identifiers""" + + def build_request(self, bot: Bot) -> Request: + data: Dict[str, Any] = self.dict() + + return Request(method="editForumTopic", data=data) diff --git a/aiogram/methods/edit_message_caption.py b/aiogram/methods/edit_message_caption.py index 40e4459b..8360ccf5 100644 --- a/aiogram/methods/edit_message_caption.py +++ b/aiogram/methods/edit_message_caption.py @@ -31,7 +31,7 @@ class EditMessageCaption(TelegramMethod[Union[Message, bool]]): caption_entities: Optional[List[MessageEntity]] = None """A JSON-serialized list of special entities that appear in the caption, which can be specified instead of *parse_mode*""" reply_markup: Optional[InlineKeyboardMarkup] = None - """A JSON-serialized object for an `inline keyboard `_.""" + """A JSON-serialized object for an `inline keyboard `_.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/edit_message_live_location.py b/aiogram/methods/edit_message_live_location.py index 52e6acfa..35a72912 100644 --- a/aiogram/methods/edit_message_live_location.py +++ b/aiogram/methods/edit_message_live_location.py @@ -35,7 +35,7 @@ class EditMessageLiveLocation(TelegramMethod[Union[Message, bool]]): proximity_alert_radius: Optional[int] = None """The 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 - """A JSON-serialized object for a new `inline keyboard `_.""" + """A JSON-serialized object for a new `inline keyboard `_.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/edit_message_media.py b/aiogram/methods/edit_message_media.py index 10882e81..b2434105 100644 --- a/aiogram/methods/edit_message_media.py +++ b/aiogram/methods/edit_message_media.py @@ -27,7 +27,7 @@ class EditMessageMedia(TelegramMethod[Union[Message, bool]]): inline_message_id: Optional[str] = None """Required if *chat_id* and *message_id* are not specified. Identifier of the inline message""" reply_markup: Optional[InlineKeyboardMarkup] = None - """A JSON-serialized object for a new `inline keyboard `_.""" + """A JSON-serialized object for a new `inline keyboard `_.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/edit_message_reply_markup.py b/aiogram/methods/edit_message_reply_markup.py index 0304012c..4b871d58 100644 --- a/aiogram/methods/edit_message_reply_markup.py +++ b/aiogram/methods/edit_message_reply_markup.py @@ -25,7 +25,7 @@ class EditMessageReplyMarkup(TelegramMethod[Union[Message, bool]]): inline_message_id: Optional[str] = None """Required if *chat_id* and *message_id* are not specified. Identifier of the inline message""" reply_markup: Optional[InlineKeyboardMarkup] = None - """A JSON-serialized object for an `inline keyboard `_.""" + """A JSON-serialized object for an `inline keyboard `_.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/edit_message_text.py b/aiogram/methods/edit_message_text.py index 92184b90..f47ef15a 100644 --- a/aiogram/methods/edit_message_text.py +++ b/aiogram/methods/edit_message_text.py @@ -33,7 +33,7 @@ class EditMessageText(TelegramMethod[Union[Message, bool]]): disable_web_page_preview: Optional[bool] = None """Disables link previews for links in this message""" reply_markup: Optional[InlineKeyboardMarkup] = None - """A JSON-serialized object for an `inline keyboard `_.""" + """A JSON-serialized object for an `inline keyboard `_.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/forward_message.py b/aiogram/methods/forward_message.py index ec4e7623..c75aac76 100644 --- a/aiogram/methods/forward_message.py +++ b/aiogram/methods/forward_message.py @@ -24,6 +24,8 @@ class ForwardMessage(TelegramMethod[Message]): """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""" disable_notification: Optional[bool] = None """Sends the message `silently `_. Users will receive a notification with no sound.""" protect_content: Optional[bool] = None diff --git a/aiogram/methods/get_chat_menu_button.py b/aiogram/methods/get_chat_menu_button.py index e2a97134..bdf07c38 100644 --- a/aiogram/methods/get_chat_menu_button.py +++ b/aiogram/methods/get_chat_menu_button.py @@ -2,14 +2,16 @@ from __future__ import annotations from typing import TYPE_CHECKING, Any, Dict, Optional, Union -from ..types import MenuButton, MenuButtonCommands, MenuButtonDefault, MenuButtonWebApp +from ..types import MenuButtonCommands, MenuButtonDefault, MenuButtonWebApp from .base import Request, TelegramMethod if TYPE_CHECKING: from ..client.bot import Bot -class GetChatMenuButton(TelegramMethod[MenuButton]): +class GetChatMenuButton( + TelegramMethod[Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands]] +): """ 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. diff --git a/aiogram/methods/get_forum_topic_icon_stickers.py b/aiogram/methods/get_forum_topic_icon_stickers.py new file mode 100644 index 00000000..f00a8caa --- /dev/null +++ b/aiogram/methods/get_forum_topic_icon_stickers.py @@ -0,0 +1,24 @@ +from __future__ import annotations + +from typing import TYPE_CHECKING, Any, Dict, List + +from ..types import Sticker +from .base import Request, TelegramMethod + +if TYPE_CHECKING: + from ..client.bot import Bot + + +class GetForumTopicIconStickers(TelegramMethod[List[Sticker]]): + """ + Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user. Requires no parameters. Returns an Array of :class:`aiogram.types.sticker.Sticker` objects. + + Source: https://core.telegram.org/bots/api#getforumtopiciconstickers + """ + + __returning__ = List[Sticker] + + def build_request(self, bot: Bot) -> Request: + data: Dict[str, Any] = self.dict() + + return Request(method="getForumTopicIconStickers", data=data) diff --git a/aiogram/methods/promote_chat_member.py b/aiogram/methods/promote_chat_member.py index 042e0afa..3ae62cf0 100644 --- a/aiogram/methods/promote_chat_member.py +++ b/aiogram/methods/promote_chat_member.py @@ -43,6 +43,8 @@ class PromoteChatMember(TelegramMethod[bool]): """Pass :code:`True` if the administrator can invite new users to the chat""" can_pin_messages: Optional[bool] = None """Pass :code:`True` if the administrator can pin messages, supergroups only""" + can_manage_topics: Optional[bool] = None + """Pass :code:`True` if the user is allowed to create, rename, close, and reopen forum topics, supergroups only""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/reopen_forum_topic.py b/aiogram/methods/reopen_forum_topic.py new file mode 100644 index 00000000..1efa2366 --- /dev/null +++ b/aiogram/methods/reopen_forum_topic.py @@ -0,0 +1,28 @@ +from __future__ import annotations + +from typing import TYPE_CHECKING, Any, Dict, Union + +from .base import Request, TelegramMethod + +if TYPE_CHECKING: + from ..client.bot import Bot + + +class ReopenForumTopic(TelegramMethod[bool]): + """ + Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can_manage_topics* administrator rights, unless it is the creator of the topic. Returns :code:`True` on success. + + Source: https://core.telegram.org/bots/api#reopenforumtopic + """ + + __returning__ = bool + + chat_id: Union[int, str] + """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""" + + def build_request(self, bot: Bot) -> Request: + data: Dict[str, Any] = self.dict() + + return Request(method="reopenForumTopic", data=data) diff --git a/aiogram/methods/send_animation.py b/aiogram/methods/send_animation.py index 6c59bf27..18533414 100644 --- a/aiogram/methods/send_animation.py +++ b/aiogram/methods/send_animation.py @@ -31,6 +31,8 @@ class SendAnimation(TelegramMethod[Message]): """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" animation: Union[InputFile, str] """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 » `""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" duration: Optional[int] = None """Duration of sent animation in seconds""" width: Optional[int] = None @@ -56,7 +58,7 @@ class SendAnimation(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict(exclude={"animation", "thumb"}) diff --git a/aiogram/methods/send_audio.py b/aiogram/methods/send_audio.py index 2a687ac2..1786f751 100644 --- a/aiogram/methods/send_audio.py +++ b/aiogram/methods/send_audio.py @@ -32,6 +32,8 @@ class SendAudio(TelegramMethod[Message]): """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" audio: Union[InputFile, str] """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 » `""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" caption: Optional[str] = None """Audio caption, 0-1024 characters after entities parsing""" parse_mode: Optional[str] = UNSET @@ -57,7 +59,7 @@ class SendAudio(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict(exclude={"audio", "thumb"}) diff --git a/aiogram/methods/send_contact.py b/aiogram/methods/send_contact.py index fafe8177..41e1110b 100644 --- a/aiogram/methods/send_contact.py +++ b/aiogram/methods/send_contact.py @@ -30,6 +30,8 @@ class SendContact(TelegramMethod[Message]): """Contact's phone number""" first_name: str """Contact's first name""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" last_name: Optional[str] = None """Contact's last name""" vcard: Optional[str] = None @@ -45,7 +47,7 @@ class SendContact(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """Additional interface options. A JSON-serialized object for an `inline keyboard `_, `custom reply keyboard `_, instructions to remove keyboard or to force a reply from the user.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/send_dice.py b/aiogram/methods/send_dice.py index e6ed3004..d898a742 100644 --- a/aiogram/methods/send_dice.py +++ b/aiogram/methods/send_dice.py @@ -26,6 +26,8 @@ class SendDice(TelegramMethod[Message]): chat_id: Union[int, str] """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" emoji: Optional[str] = None """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 '🎲'""" disable_notification: Optional[bool] = None @@ -39,7 +41,7 @@ class SendDice(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/send_document.py b/aiogram/methods/send_document.py index b8ced8b1..6f99e756 100644 --- a/aiogram/methods/send_document.py +++ b/aiogram/methods/send_document.py @@ -31,6 +31,8 @@ class SendDocument(TelegramMethod[Message]): """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" document: Union[InputFile, str] """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 » `""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" thumb: Optional[Union[InputFile, str]] = 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 » `""" caption: Optional[str] = None @@ -52,7 +54,7 @@ class SendDocument(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict(exclude={"document", "thumb"}) diff --git a/aiogram/methods/send_game.py b/aiogram/methods/send_game.py index 9f538e67..f6301562 100644 --- a/aiogram/methods/send_game.py +++ b/aiogram/methods/send_game.py @@ -22,6 +22,8 @@ class SendGame(TelegramMethod[Message]): """Unique identifier for the target chat""" game_short_name: str """Short name of the game, serves as the unique identifier for the game. Set up your games via `@BotFather `_.""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" disable_notification: Optional[bool] = None """Sends the message `silently `_. Users will receive a notification with no sound.""" protect_content: Optional[bool] = None @@ -31,7 +33,7 @@ class SendGame(TelegramMethod[Message]): allow_sending_without_reply: Optional[bool] = None """Pass :code:`True` if the message should be sent even if the specified replied-to message is not found""" reply_markup: Optional[InlineKeyboardMarkup] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/send_invoice.py b/aiogram/methods/send_invoice.py index d5b113a9..9f085fbd 100644 --- a/aiogram/methods/send_invoice.py +++ b/aiogram/methods/send_invoice.py @@ -32,6 +32,8 @@ class SendInvoice(TelegramMethod[Message]): """Three-letter ISO 4217 currency code, see `more on currencies `_""" prices: List[LabeledPrice] """Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" max_tip_amount: Optional[int] = None """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""" suggested_tip_amounts: Optional[List[int]] = None @@ -71,7 +73,7 @@ class SendInvoice(TelegramMethod[Message]): allow_sending_without_reply: Optional[bool] = None """Pass :code:`True` if the message should be sent even if the specified replied-to message is not found""" reply_markup: Optional[InlineKeyboardMarkup] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/send_location.py b/aiogram/methods/send_location.py index 114f9020..350157b8 100644 --- a/aiogram/methods/send_location.py +++ b/aiogram/methods/send_location.py @@ -30,6 +30,8 @@ class SendLocation(TelegramMethod[Message]): """Latitude of the location""" longitude: float """Longitude of the location""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" horizontal_accuracy: Optional[float] = None """The radius of uncertainty for the location, measured in meters; 0-1500""" live_period: Optional[int] = None @@ -49,7 +51,7 @@ class SendLocation(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/send_media_group.py b/aiogram/methods/send_media_group.py index 316a25d4..7d97a665 100644 --- a/aiogram/methods/send_media_group.py +++ b/aiogram/methods/send_media_group.py @@ -29,6 +29,8 @@ class SendMediaGroup(TelegramMethod[List[Message]]): """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" media: List[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]] """A JSON-serialized array describing messages to be sent, must include 2-10 items""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" disable_notification: Optional[bool] = None """Sends messages `silently `_. Users will receive a notification with no sound.""" protect_content: Optional[bool] = None diff --git a/aiogram/methods/send_message.py b/aiogram/methods/send_message.py index 95d1d48e..a3c83bad 100644 --- a/aiogram/methods/send_message.py +++ b/aiogram/methods/send_message.py @@ -30,6 +30,8 @@ class SendMessage(TelegramMethod[Message]): """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""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" parse_mode: Optional[str] = UNSET """Mode for parsing entities in the message text. See `formatting options `_ for more details.""" entities: Optional[List[MessageEntity]] = None @@ -47,7 +49,7 @@ class SendMessage(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/send_photo.py b/aiogram/methods/send_photo.py index 6c50c8c6..0534c841 100644 --- a/aiogram/methods/send_photo.py +++ b/aiogram/methods/send_photo.py @@ -31,6 +31,8 @@ class SendPhoto(TelegramMethod[Message]): """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" photo: Union[InputFile, str] """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 » `""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" caption: Optional[str] = None """Photo caption (may also be used when resending photos by *file_id*), 0-1024 characters after entities parsing""" parse_mode: Optional[str] = UNSET @@ -48,7 +50,7 @@ class SendPhoto(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict(exclude={"photo"}) diff --git a/aiogram/methods/send_poll.py b/aiogram/methods/send_poll.py index 30ae17b3..be67fcda 100644 --- a/aiogram/methods/send_poll.py +++ b/aiogram/methods/send_poll.py @@ -33,6 +33,8 @@ class SendPoll(TelegramMethod[Message]): """Poll question, 1-300 characters""" options: List[str] """A JSON-serialized list of answer options, 2-10 strings 1-100 characters each""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" is_anonymous: Optional[bool] = None """:code:`True`, if the poll needs to be anonymous, defaults to :code:`True`""" type: Optional[str] = None @@ -64,7 +66,7 @@ class SendPoll(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/send_sticker.py b/aiogram/methods/send_sticker.py index 7cb1bc96..81ab698d 100644 --- a/aiogram/methods/send_sticker.py +++ b/aiogram/methods/send_sticker.py @@ -29,6 +29,8 @@ class SendSticker(TelegramMethod[Message]): """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" sticker: Union[InputFile, str] """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 file from the Internet, or upload a new one using multipart/form-data. :ref:`More information on Sending Files » `""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" disable_notification: Optional[bool] = None """Sends the message `silently `_. Users will receive a notification with no sound.""" protect_content: Optional[bool] = None @@ -40,7 +42,7 @@ class SendSticker(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict(exclude={"sticker"}) diff --git a/aiogram/methods/send_venue.py b/aiogram/methods/send_venue.py index 9b0a06e8..b9f3c464 100644 --- a/aiogram/methods/send_venue.py +++ b/aiogram/methods/send_venue.py @@ -34,6 +34,8 @@ class SendVenue(TelegramMethod[Message]): """Name of the venue""" address: str """Address of the venue""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" foursquare_id: Optional[str] = None """Foursquare identifier of the venue""" foursquare_type: Optional[str] = None @@ -53,7 +55,7 @@ class SendVenue(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/send_video.py b/aiogram/methods/send_video.py index 02496abe..d30f5fed 100644 --- a/aiogram/methods/send_video.py +++ b/aiogram/methods/send_video.py @@ -31,6 +31,8 @@ class SendVideo(TelegramMethod[Message]): """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" video: Union[InputFile, str] """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 » `""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" duration: Optional[int] = None """Duration of sent video in seconds""" width: Optional[int] = None @@ -58,7 +60,7 @@ class SendVideo(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict(exclude={"video", "thumb"}) diff --git a/aiogram/methods/send_video_note.py b/aiogram/methods/send_video_note.py index e20960cf..19776e62 100644 --- a/aiogram/methods/send_video_note.py +++ b/aiogram/methods/send_video_note.py @@ -29,6 +29,8 @@ class SendVideoNote(TelegramMethod[Message]): """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" video_note: Union[InputFile, str] """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""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" duration: Optional[int] = None """Duration of sent video in seconds""" length: Optional[int] = None @@ -46,7 +48,7 @@ class SendVideoNote(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict(exclude={"video_note", "thumb"}) diff --git a/aiogram/methods/send_voice.py b/aiogram/methods/send_voice.py index 0cc1d602..e9bc9a37 100644 --- a/aiogram/methods/send_voice.py +++ b/aiogram/methods/send_voice.py @@ -31,6 +31,8 @@ class SendVoice(TelegramMethod[Message]): """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" voice: Union[InputFile, str] """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 » `""" + message_thread_id: Optional[int] = None + """Unique identifier for the target message thread (topic) of the forum; for forum supergroups only""" caption: Optional[str] = None """Voice message caption, 0-1024 characters after entities parsing""" parse_mode: Optional[str] = UNSET @@ -50,7 +52,7 @@ class SendVoice(TelegramMethod[Message]): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None - """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.""" + """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.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict(exclude={"voice"}) diff --git a/aiogram/methods/set_chat_menu_button.py b/aiogram/methods/set_chat_menu_button.py index 25301431..9a7caaf1 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, Dict, Optional +from typing import TYPE_CHECKING, Any, Dict, Optional, Union -from ..types import MenuButton +from ..types import MenuButtonCommands, MenuButtonDefault, MenuButtonWebApp from .base import Request, TelegramMethod if TYPE_CHECKING: @@ -20,7 +20,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[MenuButton] = None + menu_button: Optional[Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands]] = None """A JSON-serialized object for the bot's new menu button. Defaults to :class:`aiogram.types.menu_button_default.MenuButtonDefault`""" def build_request(self, bot: Bot) -> Request: diff --git a/aiogram/methods/set_chat_title.py b/aiogram/methods/set_chat_title.py index c4793233..edad33cc 100644 --- a/aiogram/methods/set_chat_title.py +++ b/aiogram/methods/set_chat_title.py @@ -20,7 +20,7 @@ class SetChatTitle(TelegramMethod[bool]): chat_id: Union[int, str] """Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)""" title: str - """New chat title, 1-255 characters""" + """New chat title, 1-128 characters""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/set_my_commands.py b/aiogram/methods/set_my_commands.py index 3dcebbb3..98e47aff 100644 --- a/aiogram/methods/set_my_commands.py +++ b/aiogram/methods/set_my_commands.py @@ -11,7 +11,7 @@ if TYPE_CHECKING: class SetMyCommands(TelegramMethod[bool]): """ - Use this method to change the list of the bot's commands. See `https://core.telegram.org/bots#commands `_`https://core.telegram.org/bots#commands `_ for more details about bot commands. Returns :code:`True` on success. + Use this method to change the list of the bot's commands. See `this manual `_ for more details about bot commands. Returns :code:`True` on success. Source: https://core.telegram.org/bots/api#setmycommands """ diff --git a/aiogram/methods/stop_message_live_location.py b/aiogram/methods/stop_message_live_location.py index 7b2ddca4..50297930 100644 --- a/aiogram/methods/stop_message_live_location.py +++ b/aiogram/methods/stop_message_live_location.py @@ -25,7 +25,7 @@ class StopMessageLiveLocation(TelegramMethod[Union[Message, bool]]): inline_message_id: Optional[str] = None """Required if *chat_id* and *message_id* are not specified. Identifier of the inline message""" reply_markup: Optional[InlineKeyboardMarkup] = None - """A JSON-serialized object for a new `inline keyboard `_.""" + """A JSON-serialized object for a new `inline keyboard `_.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/stop_poll.py b/aiogram/methods/stop_poll.py index fa90766a..92662285 100644 --- a/aiogram/methods/stop_poll.py +++ b/aiogram/methods/stop_poll.py @@ -23,7 +23,7 @@ class StopPoll(TelegramMethod[Poll]): message_id: int """Identifier of the original message with the poll""" reply_markup: Optional[InlineKeyboardMarkup] = None - """A JSON-serialized object for a new message `inline keyboard `_.""" + """A JSON-serialized object for a new message `inline keyboard `_.""" def build_request(self, bot: Bot) -> Request: data: Dict[str, Any] = self.dict() diff --git a/aiogram/methods/unpin_all_forum_topic_messages.py b/aiogram/methods/unpin_all_forum_topic_messages.py new file mode 100644 index 00000000..6a94c218 --- /dev/null +++ b/aiogram/methods/unpin_all_forum_topic_messages.py @@ -0,0 +1,28 @@ +from __future__ import annotations + +from typing import TYPE_CHECKING, Any, Dict, Union + +from .base import Request, TelegramMethod + +if TYPE_CHECKING: + from ..client.bot import Bot + + +class UnpinAllForumTopicMessages(TelegramMethod[bool]): + """ + Use this method to clear the list of pinned messages in a forum topic. The bot must be an administrator in the chat for this to work and must have the *can_pin_messages* administrator right in the supergroup. Returns :code:`True` on success. + + Source: https://core.telegram.org/bots/api#unpinallforumtopicmessages + """ + + __returning__ = bool + + chat_id: Union[int, str] + """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""" + + def build_request(self, bot: Bot) -> Request: + data: Dict[str, Any] = self.dict() + + return Request(method="unpinAllForumTopicMessages", data=data) diff --git a/aiogram/types/__init__.py b/aiogram/types/__init__.py index 739882cf..8c262c74 100644 --- a/aiogram/types/__init__.py +++ b/aiogram/types/__init__.py @@ -39,6 +39,10 @@ from .encrypted_credentials import EncryptedCredentials from .encrypted_passport_element import EncryptedPassportElement from .file import File from .force_reply import ForceReply +from .forum_topic import ForumTopic +from .forum_topic_closed import ForumTopicClosed +from .forum_topic_created import ForumTopicCreated +from .forum_topic_reopened import ForumTopicReopened from .game import Game from .game_high_score import GameHighScore from .inline_keyboard_button import InlineKeyboardButton @@ -169,6 +173,9 @@ __all__ = ( "WebAppData", "ProximityAlertTriggered", "MessageAutoDeleteTimerChanged", + "ForumTopicCreated", + "ForumTopicClosed", + "ForumTopicReopened", "VideoChatScheduled", "VideoChatStarted", "VideoChatEnded", @@ -199,6 +206,7 @@ __all__ = ( "ChatJoinRequest", "ChatPermissions", "ChatLocation", + "ForumTopic", "BotCommand", "BotCommandScope", "BotCommandScopeDefault", diff --git a/aiogram/types/callback_query.py b/aiogram/types/callback_query.py index f9929bca..4f96c8a3 100644 --- a/aiogram/types/callback_query.py +++ b/aiogram/types/callback_query.py @@ -14,7 +14,7 @@ if TYPE_CHECKING: class CallbackQuery(TelegramObject): """ - This object represents an incoming callback query from a callback button in an `inline keyboard `_. If the button that originated the query was attached to a message sent by the bot, the field *message* will be present. If the button was attached to a message sent via the bot (in `inline mode `_), the field *inline_message_id* will be present. Exactly one of the fields *data* or *game_short_name* will be present. + This object represents an incoming callback query from a callback button in an `inline keyboard `_. If the button that originated the query was attached to a message sent by the bot, the field *message* will be present. If the button was attached to a message sent via the bot (in `inline mode `_), the field *inline_message_id* will be present. Exactly one of the fields *data* or *game_short_name* will be present. **NOTE:** After the user presses a callback button, Telegram clients will display a progress bar until you call :class:`aiogram.methods.answer_callback_query.AnswerCallbackQuery`. It is, therefore, necessary to react by calling :class:`aiogram.methods.answer_callback_query.AnswerCallbackQuery` even if no notification to the user is needed (e.g., without specifying any of the optional parameters). diff --git a/aiogram/types/chat.py b/aiogram/types/chat.py index 875ef36c..7e276c25 100644 --- a/aiogram/types/chat.py +++ b/aiogram/types/chat.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Optional +from typing import TYPE_CHECKING, List, Optional from .base import TelegramObject @@ -31,8 +31,14 @@ class Chat(TelegramObject): """*Optional*. First name of the other party in a private chat""" last_name: Optional[str] = None """*Optional*. Last name of the other party in a private chat""" + is_forum: Optional[bool] = None + """*Optional*. :code:`True`, if the supergroup chat is a forum (has `topics `_ enabled)""" photo: Optional[ChatPhoto] = None """*Optional*. Chat photo. Returned only in :class:`aiogram.methods.get_chat.GetChat`.""" + active_usernames: Optional[List[str]] = None + """*Optional*. If non-empty, the list of all `active chat usernames `_; for private chats, supergroups and channels. Returned only in :class:`aiogram.methods.get_chat.GetChat`.""" + emoji_status_custom_emoji_id: Optional[str] = None + """*Optional*. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in :class:`aiogram.methods.get_chat.GetChat`.""" bio: Optional[str] = None """*Optional*. Bio of the other party in a private chat. Returned only in :class:`aiogram.methods.get_chat.GetChat`.""" has_private_forwards: Optional[bool] = None diff --git a/aiogram/types/chat_administrator_rights.py b/aiogram/types/chat_administrator_rights.py index 20f4b65c..eb38b693 100644 --- a/aiogram/types/chat_administrator_rights.py +++ b/aiogram/types/chat_administrator_rights.py @@ -37,3 +37,5 @@ class ChatAdministratorRights(TelegramObject): """*Optional*. :code:`True`, if the administrator can edit messages of other users and can pin messages; channels only""" can_pin_messages: Optional[bool] = None """*Optional*. :code:`True`, if the user is allowed to pin messages; groups and supergroups only""" + can_manage_topics: Optional[bool] = None + """*Optional*. :code:`True`, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only""" diff --git a/aiogram/types/chat_member.py b/aiogram/types/chat_member.py index d430e0ce..5d306177 100644 --- a/aiogram/types/chat_member.py +++ b/aiogram/types/chat_member.py @@ -53,6 +53,8 @@ class ChatMember(TelegramObject): """*Optional*. :code:`True`, if the administrator can edit messages of other users and can pin messages; channels only""" can_pin_messages: Optional[bool] = None """*Optional*. :code:`True`, if the user is allowed to pin messages; groups and supergroups only""" + can_manage_topics: Optional[bool] = None + """*Optional*. :code:`True`, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only""" is_member: Optional[bool] = None """*Optional*. :code:`True`, if the user is a member of the chat at the moment of the request""" can_send_messages: Optional[bool] = None diff --git a/aiogram/types/chat_member_administrator.py b/aiogram/types/chat_member_administrator.py index 896033d2..1c9a8aae 100644 --- a/aiogram/types/chat_member_administrator.py +++ b/aiogram/types/chat_member_administrator.py @@ -45,5 +45,7 @@ class ChatMemberAdministrator(ChatMember): """*Optional*. :code:`True`, if the administrator can edit messages of other users and can pin messages; channels only""" can_pin_messages: Optional[bool] = None """*Optional*. :code:`True`, if the user is allowed to pin messages; groups and supergroups only""" + can_manage_topics: Optional[bool] = None + """*Optional*. :code:`True`, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only""" custom_title: Optional[str] = None """*Optional*. Custom title for this user""" diff --git a/aiogram/types/chat_member_restricted.py b/aiogram/types/chat_member_restricted.py index 7e244024..6cff8f53 100644 --- a/aiogram/types/chat_member_restricted.py +++ b/aiogram/types/chat_member_restricted.py @@ -30,6 +30,8 @@ class ChatMemberRestricted(ChatMember): """:code:`True`, if the user is allowed to invite new users to the chat""" can_pin_messages: bool """:code:`True`, if the user is allowed to pin messages""" + can_manage_topics: bool + """:code:`True`, if the user is allowed to create forum topics""" can_send_messages: bool """:code:`True`, if the user is allowed to send text messages, contacts, locations and venues""" can_send_media_messages: bool diff --git a/aiogram/types/chat_permissions.py b/aiogram/types/chat_permissions.py index 15ddaba4..0263ada2 100644 --- a/aiogram/types/chat_permissions.py +++ b/aiogram/types/chat_permissions.py @@ -28,3 +28,5 @@ class ChatPermissions(MutableTelegramObject): """*Optional*. :code:`True`, if the user is allowed to invite new users to the chat""" can_pin_messages: Optional[bool] = None """*Optional*. :code:`True`, if the user is allowed to pin messages. Ignored in public supergroups""" + can_manage_topics: Optional[bool] = None + """*Optional*. :code:`True`, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages""" diff --git a/aiogram/types/force_reply.py b/aiogram/types/force_reply.py index 55f1b6c9..c27af31e 100644 --- a/aiogram/types/force_reply.py +++ b/aiogram/types/force_reply.py @@ -9,7 +9,7 @@ from .base import MutableTelegramObject class ForceReply(MutableTelegramObject): """ - 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 `_. + 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 `_. **Example:** A `poll bot `_ for groups runs in privacy mode (only receives commands, replies to its messages and mentions). There could be two ways to create a new poll: diff --git a/aiogram/types/forum_topic.py b/aiogram/types/forum_topic.py new file mode 100644 index 00000000..09592077 --- /dev/null +++ b/aiogram/types/forum_topic.py @@ -0,0 +1,22 @@ +from __future__ import annotations + +from typing import Optional + +from .base import TelegramObject + + +class ForumTopic(TelegramObject): + """ + This object represents a forum topic. + + Source: https://core.telegram.org/bots/api#forumtopic + """ + + message_thread_id: int + """Unique identifier of the forum topic""" + name: str + """Name of the topic""" + icon_color: int + """Color of the topic icon in RGB format""" + icon_custom_emoji_id: Optional[str] = None + """*Optional*. Unique identifier of the custom emoji shown as the topic icon""" diff --git a/aiogram/types/forum_topic_closed.py b/aiogram/types/forum_topic_closed.py new file mode 100644 index 00000000..390b3317 --- /dev/null +++ b/aiogram/types/forum_topic_closed.py @@ -0,0 +1,11 @@ +from __future__ import annotations + +from .base import TelegramObject + + +class ForumTopicClosed(TelegramObject): + """ + This object represents a service message about a forum topic closed in the chat. Currently holds no information. + + Source: https://core.telegram.org/bots/api#forumtopicclosed + """ diff --git a/aiogram/types/forum_topic_created.py b/aiogram/types/forum_topic_created.py new file mode 100644 index 00000000..25448cf8 --- /dev/null +++ b/aiogram/types/forum_topic_created.py @@ -0,0 +1,20 @@ +from __future__ import annotations + +from typing import Optional + +from .base import TelegramObject + + +class ForumTopicCreated(TelegramObject): + """ + This object represents a service message about a new forum topic created in the chat. + + Source: https://core.telegram.org/bots/api#forumtopiccreated + """ + + name: str + """Name of the topic""" + icon_color: int + """Color of the topic icon in RGB format""" + icon_custom_emoji_id: Optional[str] = None + """*Optional*. Unique identifier of the custom emoji shown as the topic icon""" diff --git a/aiogram/types/forum_topic_reopened.py b/aiogram/types/forum_topic_reopened.py new file mode 100644 index 00000000..e02fbafb --- /dev/null +++ b/aiogram/types/forum_topic_reopened.py @@ -0,0 +1,11 @@ +from __future__ import annotations + +from .base import TelegramObject + + +class ForumTopicReopened(TelegramObject): + """ + This object represents a service message about a forum topic reopened in the chat. Currently holds no information. + + Source: https://core.telegram.org/bots/api#forumtopicreopened + """ diff --git a/aiogram/types/inline_keyboard_markup.py b/aiogram/types/inline_keyboard_markup.py index 0bbdee37..473e292c 100644 --- a/aiogram/types/inline_keyboard_markup.py +++ b/aiogram/types/inline_keyboard_markup.py @@ -10,7 +10,7 @@ if TYPE_CHECKING: class InlineKeyboardMarkup(MutableTelegramObject): """ - This object represents an `inline keyboard `_ that appears right next to the message it belongs to. + 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*. Source: https://core.telegram.org/bots/api#inlinekeyboardmarkup diff --git a/aiogram/types/inline_query_result_article.py b/aiogram/types/inline_query_result_article.py index 9fa6a9c6..0b4578dd 100644 --- a/aiogram/types/inline_query_result_article.py +++ b/aiogram/types/inline_query_result_article.py @@ -27,7 +27,7 @@ class InlineQueryResultArticle(InlineQueryResult): input_message_content: InputMessageContent """Content of the message to be sent""" reply_markup: Optional[InlineKeyboardMarkup] = None - """*Optional*. `Inline keyboard `_ attached to the message""" + """*Optional*. `Inline keyboard `_ attached to the message""" url: Optional[str] = None """*Optional*. URL of the result""" hide_url: Optional[bool] = None diff --git a/aiogram/types/inline_query_result_audio.py b/aiogram/types/inline_query_result_audio.py index 97141268..615980f6 100644 --- a/aiogram/types/inline_query_result_audio.py +++ b/aiogram/types/inline_query_result_audio.py @@ -40,6 +40,6 @@ class InlineQueryResultAudio(InlineQueryResult): audio_duration: Optional[int] = None """*Optional*. Audio duration in seconds""" reply_markup: Optional[InlineKeyboardMarkup] = None - """*Optional*. `Inline keyboard `_ attached to the message""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the audio""" diff --git a/aiogram/types/inline_query_result_cached_audio.py b/aiogram/types/inline_query_result_cached_audio.py index d9f12668..08971c79 100644 --- a/aiogram/types/inline_query_result_cached_audio.py +++ b/aiogram/types/inline_query_result_cached_audio.py @@ -34,6 +34,6 @@ class InlineQueryResultCachedAudio(InlineQueryResult): caption_entities: Optional[List[MessageEntity]] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the audio""" diff --git a/aiogram/types/inline_query_result_cached_document.py b/aiogram/types/inline_query_result_cached_document.py index bb4f1349..f5fc741f 100644 --- a/aiogram/types/inline_query_result_cached_document.py +++ b/aiogram/types/inline_query_result_cached_document.py @@ -38,6 +38,6 @@ class InlineQueryResultCachedDocument(InlineQueryResult): caption_entities: Optional[List[MessageEntity]] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the file""" diff --git a/aiogram/types/inline_query_result_cached_gif.py b/aiogram/types/inline_query_result_cached_gif.py index 053dfd43..03abe92e 100644 --- a/aiogram/types/inline_query_result_cached_gif.py +++ b/aiogram/types/inline_query_result_cached_gif.py @@ -35,6 +35,6 @@ class InlineQueryResultCachedGif(InlineQueryResult): caption_entities: Optional[List[MessageEntity]] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the GIF animation""" diff --git a/aiogram/types/inline_query_result_cached_mpeg4_gif.py b/aiogram/types/inline_query_result_cached_mpeg4_gif.py index 0500603f..6ff85564 100644 --- a/aiogram/types/inline_query_result_cached_mpeg4_gif.py +++ b/aiogram/types/inline_query_result_cached_mpeg4_gif.py @@ -35,6 +35,6 @@ class InlineQueryResultCachedMpeg4Gif(InlineQueryResult): caption_entities: Optional[List[MessageEntity]] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the video animation""" diff --git a/aiogram/types/inline_query_result_cached_photo.py b/aiogram/types/inline_query_result_cached_photo.py index 07ab3a50..9d570b66 100644 --- a/aiogram/types/inline_query_result_cached_photo.py +++ b/aiogram/types/inline_query_result_cached_photo.py @@ -37,6 +37,6 @@ class InlineQueryResultCachedPhoto(InlineQueryResult): caption_entities: Optional[List[MessageEntity]] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the photo""" diff --git a/aiogram/types/inline_query_result_cached_sticker.py b/aiogram/types/inline_query_result_cached_sticker.py index 80685ff2..850e08c6 100644 --- a/aiogram/types/inline_query_result_cached_sticker.py +++ b/aiogram/types/inline_query_result_cached_sticker.py @@ -26,6 +26,6 @@ class InlineQueryResultCachedSticker(InlineQueryResult): sticker_file_id: str """A valid file identifier of the sticker""" reply_markup: Optional[InlineKeyboardMarkup] = None - """*Optional*. `Inline keyboard `_ attached to the message""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the sticker""" diff --git a/aiogram/types/inline_query_result_cached_video.py b/aiogram/types/inline_query_result_cached_video.py index 334eafbf..75196161 100644 --- a/aiogram/types/inline_query_result_cached_video.py +++ b/aiogram/types/inline_query_result_cached_video.py @@ -37,6 +37,6 @@ class InlineQueryResultCachedVideo(InlineQueryResult): caption_entities: Optional[List[MessageEntity]] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the video""" diff --git a/aiogram/types/inline_query_result_cached_voice.py b/aiogram/types/inline_query_result_cached_voice.py index 3da9abf8..c62e467a 100644 --- a/aiogram/types/inline_query_result_cached_voice.py +++ b/aiogram/types/inline_query_result_cached_voice.py @@ -36,6 +36,6 @@ class InlineQueryResultCachedVoice(InlineQueryResult): caption_entities: Optional[List[MessageEntity]] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the voice message""" diff --git a/aiogram/types/inline_query_result_contact.py b/aiogram/types/inline_query_result_contact.py index dcbda121..d6bb278a 100644 --- a/aiogram/types/inline_query_result_contact.py +++ b/aiogram/types/inline_query_result_contact.py @@ -32,7 +32,7 @@ class InlineQueryResultContact(InlineQueryResult): vcard: Optional[str] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the contact""" thumb_url: Optional[str] = None diff --git a/aiogram/types/inline_query_result_game.py b/aiogram/types/inline_query_result_game.py index 4ece5b95..bcf56acb 100644 --- a/aiogram/types/inline_query_result_game.py +++ b/aiogram/types/inline_query_result_game.py @@ -25,4 +25,4 @@ class InlineQueryResultGame(InlineQueryResult): game_short_name: str """Short name of the game""" reply_markup: Optional[InlineKeyboardMarkup] = None - """*Optional*. `Inline keyboard `_ attached to the message""" + """*Optional*. `Inline keyboard `_ attached to the message""" diff --git a/aiogram/types/inline_query_result_gif.py b/aiogram/types/inline_query_result_gif.py index 2946437c..cf53e726 100644 --- a/aiogram/types/inline_query_result_gif.py +++ b/aiogram/types/inline_query_result_gif.py @@ -45,6 +45,6 @@ class InlineQueryResultGif(InlineQueryResult): caption_entities: Optional[List[MessageEntity]] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the GIF animation""" diff --git a/aiogram/types/inline_query_result_location.py b/aiogram/types/inline_query_result_location.py index b7e45919..339a967e 100644 --- a/aiogram/types/inline_query_result_location.py +++ b/aiogram/types/inline_query_result_location.py @@ -38,7 +38,7 @@ class InlineQueryResultLocation(InlineQueryResult): proximity_alert_radius: Optional[int] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the location""" thumb_url: Optional[str] = None diff --git a/aiogram/types/inline_query_result_mpeg4_gif.py b/aiogram/types/inline_query_result_mpeg4_gif.py index 242386f6..e4ed3e60 100644 --- a/aiogram/types/inline_query_result_mpeg4_gif.py +++ b/aiogram/types/inline_query_result_mpeg4_gif.py @@ -45,6 +45,6 @@ class InlineQueryResultMpeg4Gif(InlineQueryResult): caption_entities: Optional[List[MessageEntity]] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the video animation""" diff --git a/aiogram/types/inline_query_result_photo.py b/aiogram/types/inline_query_result_photo.py index c150ace7..6925b0bb 100644 --- a/aiogram/types/inline_query_result_photo.py +++ b/aiogram/types/inline_query_result_photo.py @@ -43,6 +43,6 @@ class InlineQueryResultPhoto(InlineQueryResult): caption_entities: Optional[List[MessageEntity]] = None """*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""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the photo""" diff --git a/aiogram/types/inline_query_result_venue.py b/aiogram/types/inline_query_result_venue.py index e27e6cd0..38d362b7 100644 --- a/aiogram/types/inline_query_result_venue.py +++ b/aiogram/types/inline_query_result_venue.py @@ -40,7 +40,7 @@ class InlineQueryResultVenue(InlineQueryResult): google_place_type: Optional[str] = None """*Optional*. Google Places type of the venue. (See `supported types `_.)""" reply_markup: Optional[InlineKeyboardMarkup] = None - """*Optional*. `Inline keyboard `_ attached to the message""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the venue""" thumb_url: Optional[str] = None diff --git a/aiogram/types/inline_query_result_video.py b/aiogram/types/inline_query_result_video.py index abd76c94..3848396f 100644 --- a/aiogram/types/inline_query_result_video.py +++ b/aiogram/types/inline_query_result_video.py @@ -49,6 +49,6 @@ class InlineQueryResultVideo(InlineQueryResult): description: Optional[str] = None """*Optional*. Short description of the result""" reply_markup: Optional[InlineKeyboardMarkup] = None - """*Optional*. `Inline keyboard `_ attached to the message""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = 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).""" diff --git a/aiogram/types/inline_query_result_voice.py b/aiogram/types/inline_query_result_voice.py index 2097f6b7..e0ed7296 100644 --- a/aiogram/types/inline_query_result_voice.py +++ b/aiogram/types/inline_query_result_voice.py @@ -38,6 +38,6 @@ class InlineQueryResultVoice(InlineQueryResult): voice_duration: Optional[int] = None """*Optional*. Recording duration in seconds""" reply_markup: Optional[InlineKeyboardMarkup] = None - """*Optional*. `Inline keyboard `_ attached to the message""" + """*Optional*. `Inline keyboard `_ attached to the message""" input_message_content: Optional[InputMessageContent] = None """*Optional*. Content of the message to be sent instead of the voice recording""" diff --git a/aiogram/types/menu_button_commands.py b/aiogram/types/menu_button_commands.py index 5f4e252b..f115bdd6 100644 --- a/aiogram/types/menu_button_commands.py +++ b/aiogram/types/menu_button_commands.py @@ -2,7 +2,7 @@ from __future__ import annotations from pydantic import Field -from . import MenuButton +from .menu_button import MenuButton class MenuButtonCommands(MenuButton): diff --git a/aiogram/types/menu_button_default.py b/aiogram/types/menu_button_default.py index 13cd3a37..2ff09546 100644 --- a/aiogram/types/menu_button_default.py +++ b/aiogram/types/menu_button_default.py @@ -2,7 +2,7 @@ from __future__ import annotations from pydantic import Field -from . import MenuButton +from .menu_button import MenuButton class MenuButtonDefault(MenuButton): diff --git a/aiogram/types/menu_button_web_app.py b/aiogram/types/menu_button_web_app.py index 0de45b94..982dfa06 100644 --- a/aiogram/types/menu_button_web_app.py +++ b/aiogram/types/menu_button_web_app.py @@ -4,7 +4,7 @@ from typing import TYPE_CHECKING from pydantic import Field -from . import MenuButton +from .menu_button import MenuButton if TYPE_CHECKING: from .web_app_info import WebAppInfo diff --git a/aiogram/types/message.py b/aiogram/types/message.py index 834503d1..d91fbefb 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -1,7 +1,7 @@ from __future__ import annotations import datetime -from typing import TYPE_CHECKING, List, Optional, Union +from typing import TYPE_CHECKING, Any, List, Optional, Union from pydantic import Field @@ -48,6 +48,9 @@ if TYPE_CHECKING: from .dice import Dice from .document import Document from .force_reply import ForceReply + from .forum_topic_closed import ForumTopicClosed + from .forum_topic_created import ForumTopicCreated + from .forum_topic_reopened import ForumTopicReopened from .game import Game from .inline_keyboard_markup import InlineKeyboardMarkup from .input_file import InputFile @@ -94,6 +97,8 @@ class Message(TelegramObject): """Date the message was sent in Unix time""" chat: Chat """Conversation the message belongs to""" + message_thread_id: Optional[int] = None + """*Optional*. Unique identifier of a message thread to which the message belongs; for supergroups only""" from_user: Optional[User] = Field(None, alias="from") """*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.""" sender_chat: Optional[Chat] = None @@ -110,6 +115,8 @@ class Message(TelegramObject): """*Optional*. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages""" forward_date: Optional[int] = None """*Optional*. For forwarded messages, date the original message was sent in Unix time""" + is_topic_message: Optional[bool] = None + """*Optional*. :code:`True`, if the message is sent to a forum topic""" is_automatic_forward: Optional[bool] = None """*Optional*. :code:`True`, if the message is a channel post that was automatically forwarded to the connected discussion group""" reply_to_message: Optional[Message] = None @@ -194,6 +201,12 @@ class Message(TelegramObject): """*Optional*. Telegram Passport data""" proximity_alert_triggered: Optional[ProximityAlertTriggered] = None """*Optional*. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.""" + forum_topic_created: Optional[ForumTopicCreated] = None + """*Optional*. Service message: forum topic created""" + forum_topic_closed: Optional[ForumTopicClosed] = None + """*Optional*. Service message: forum topic closed""" + forum_topic_reopened: Optional[ForumTopicReopened] = None + """*Optional*. Service message: forum topic reopened""" video_chat_scheduled: Optional[VideoChatScheduled] = None """*Optional*. Service message: video chat scheduled""" video_chat_started: Optional[VideoChatStarted] = None @@ -273,6 +286,12 @@ class Message(TelegramObject): return ContentType.DICE if self.message_auto_delete_timer_changed: return ContentType.MESSAGE_AUTO_DELETE_TIMER_CHANGED + if self.forum_topic_created: + return ContentType.FORUM_TOPIC_CREATED + if self.forum_topic_closed: + return ContentType.FORUM_TOPIC_CLOSED + if self.forum_topic_reopened: + return ContentType.FORUM_TOPIC_REOPENED if self.video_chat_scheduled: return ContentType.VIDEO_CHAT_SCHEDULED if self.video_chat_started: @@ -313,6 +332,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendAnimation: """ Reply with animation @@ -344,6 +364,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_animation( @@ -359,6 +381,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendAnimation: """ Answer with animation @@ -388,6 +411,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_audio( @@ -404,6 +429,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendAudio: """ Reply with audio @@ -435,6 +461,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_audio( @@ -450,6 +478,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendAudio: """ Answer with audio @@ -479,6 +508,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_contact( @@ -492,6 +523,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendContact: """ Reply with contact @@ -517,6 +549,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_contact( @@ -529,6 +563,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendContact: """ Answer with contact @@ -552,6 +587,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_document( @@ -565,6 +602,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendDocument: """ Reply with document @@ -590,6 +628,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_document( @@ -602,6 +642,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendDocument: """ Answer with document @@ -625,6 +666,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_game( @@ -633,6 +676,7 @@ class Message(TelegramObject): disable_notification: Optional[bool] = None, allow_sending_without_reply: Optional[bool] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, + **kwargs: Any, ) -> SendGame: """ Reply with game @@ -652,6 +696,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_game( @@ -659,6 +705,7 @@ class Message(TelegramObject): game_short_name: str, disable_notification: Optional[bool] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, + **kwargs: Any, ) -> SendGame: """ Answer with game @@ -676,6 +723,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_invoice( @@ -705,6 +754,7 @@ class Message(TelegramObject): protect_content: Optional[bool] = None, allow_sending_without_reply: Optional[bool] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, + **kwargs: Any, ) -> SendInvoice: """ Reply with invoice @@ -766,6 +816,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_invoice( @@ -794,6 +846,7 @@ class Message(TelegramObject): disable_notification: Optional[bool] = None, protect_content: Optional[bool] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, + **kwargs: Any, ) -> SendInvoice: """ Answer with invoice @@ -853,6 +906,8 @@ class Message(TelegramObject): protect_content=protect_content, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_location( @@ -865,6 +920,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendLocation: """ Reply with location @@ -888,6 +944,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_location( @@ -899,6 +957,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendLocation: """ Answer with location @@ -920,6 +979,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_media_group( @@ -927,6 +988,7 @@ class Message(TelegramObject): media: List[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]], disable_notification: Optional[bool] = None, allow_sending_without_reply: Optional[bool] = None, + **kwargs: Any, ) -> SendMediaGroup: """ Reply with media group @@ -944,12 +1006,15 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_media_group( self, media: List[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]], disable_notification: Optional[bool] = None, + **kwargs: Any, ) -> SendMediaGroup: """ Answer with media group @@ -965,6 +1030,8 @@ class Message(TelegramObject): media=media, disable_notification=disable_notification, reply_to_message_id=None, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply( @@ -977,6 +1044,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendMessage: """ Reply with text message @@ -1000,6 +1068,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer( @@ -1011,6 +1081,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendMessage: """ Answer with text message @@ -1032,6 +1103,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_photo( @@ -1044,6 +1117,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendPhoto: """ Reply with photo @@ -1067,6 +1141,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_photo( @@ -1078,6 +1154,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendPhoto: """ Answer with photo @@ -1099,6 +1176,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_poll( @@ -1119,6 +1198,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendPoll: """ Reply with poll @@ -1158,6 +1238,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_poll( @@ -1177,6 +1259,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendPoll: """ Answer with poll @@ -1214,6 +1297,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_dice( @@ -1224,6 +1309,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendDice: """ Reply with dice @@ -1243,6 +1329,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_dice( @@ -1252,6 +1340,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendDice: """ Answer with dice @@ -1269,6 +1358,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_sticker( @@ -1279,6 +1370,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendSticker: """ Reply with sticker @@ -1298,6 +1390,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_sticker( @@ -1307,6 +1401,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendSticker: """ Answer with sticker @@ -1324,6 +1419,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_venue( @@ -1339,6 +1436,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendVenue: """ Reply with venue @@ -1368,6 +1466,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_venue( @@ -1382,6 +1482,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendVenue: """ Answer with venue @@ -1409,6 +1510,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_video( @@ -1426,6 +1529,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendVideo: """ Reply with video @@ -1459,6 +1563,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_video( @@ -1475,6 +1581,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendVideo: """ Answer with video @@ -1506,6 +1613,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_video_note( @@ -1519,6 +1628,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendVideoNote: """ Reply wit video note @@ -1544,6 +1654,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_video_note( @@ -1556,6 +1668,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendVideoNote: """ Answer wit video note @@ -1579,6 +1692,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def reply_voice( @@ -1592,6 +1707,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendVoice: """ Reply with voice @@ -1617,6 +1733,8 @@ class Message(TelegramObject): reply_to_message_id=self.message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def answer_voice( @@ -1629,6 +1747,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> SendVoice: """ Answer with voice @@ -1652,6 +1771,8 @@ class Message(TelegramObject): disable_notification=disable_notification, reply_to_message_id=None, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def send_copy( @@ -1660,6 +1781,8 @@ class Message(TelegramObject): disable_notification: Optional[bool] = None, reply_to_message_id: Optional[int] = None, reply_markup: Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, None] = None, + allow_sending_without_reply: Optional[bool] = None, + message_thread_id: Optional[int] = None, ) -> Union[ SendAnimation, SendAudio, @@ -1691,6 +1814,7 @@ class Message(TelegramObject): :param disable_notification: :param reply_to_message_id: :param reply_markup: + :param message_thread_id: :return: """ from ..methods import ( @@ -1715,6 +1839,8 @@ class Message(TelegramObject): "reply_markup": reply_markup or self.reply_markup, "disable_notification": disable_notification, "reply_to_message_id": reply_to_message_id, + "message_thread_id": message_thread_id, + "allow_sending_without_reply": allow_sending_without_reply, } text = self.text or self.caption entities = self.entities or self.caption_entities @@ -1798,6 +1924,7 @@ class Message(TelegramObject): reply_markup: Optional[ Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] ] = None, + **kwargs: Any, ) -> CopyMessage: """ Copy message @@ -1825,6 +1952,8 @@ class Message(TelegramObject): reply_to_message_id=reply_to_message_id, allow_sending_without_reply=allow_sending_without_reply, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def edit_text( @@ -1834,6 +1963,7 @@ class Message(TelegramObject): entities: Optional[List[MessageEntity]] = None, disable_web_page_preview: Optional[bool] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, + **kwargs: Any, ) -> EditMessageText: from ..methods import EditMessageText @@ -1845,6 +1975,8 @@ class Message(TelegramObject): entities=entities, disable_web_page_preview=disable_web_page_preview, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def forward( @@ -1852,6 +1984,7 @@ class Message(TelegramObject): chat_id: Union[int, str], disable_notification: Optional[bool] = None, protect_content: Optional[bool] = None, + **kwargs: Any, ) -> ForwardMessage: from ..methods import ForwardMessage @@ -1861,12 +1994,15 @@ class Message(TelegramObject): message_id=self.message_id, disable_notification=disable_notification, protect_content=protect_content, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def edit_media( self, media: InputMedia, reply_markup: Optional[InlineKeyboardMarkup] = None, + **kwargs: Any, ) -> EditMessageMedia: from ..methods import EditMessageMedia @@ -1875,11 +2011,14 @@ class Message(TelegramObject): chat_id=self.chat.id, message_id=self.message_id, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def edit_reply_markup( self, reply_markup: Optional[InlineKeyboardMarkup] = None, + **kwargs: Any, ) -> EditMessageReplyMarkup: from ..methods import EditMessageReplyMarkup @@ -1887,6 +2026,8 @@ class Message(TelegramObject): chat_id=self.chat.id, message_id=self.message_id, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def delete_reply_markup(self) -> EditMessageReplyMarkup: @@ -1900,6 +2041,7 @@ class Message(TelegramObject): heading: Optional[int] = None, proximity_alert_radius: Optional[int] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, + **kwargs: Any, ) -> EditMessageLiveLocation: from ..methods import EditMessageLiveLocation @@ -1912,11 +2054,14 @@ class Message(TelegramObject): heading=heading, proximity_alert_radius=proximity_alert_radius, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def stop_live_location( self, reply_markup: Optional[InlineKeyboardMarkup] = None, + **kwargs: Any, ) -> StopMessageLiveLocation: from ..methods import StopMessageLiveLocation @@ -1924,6 +2069,8 @@ class Message(TelegramObject): chat_id=self.chat.id, message_id=self.message_id, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def edit_caption( @@ -1932,6 +2079,7 @@ class Message(TelegramObject): parse_mode: Optional[str] = UNSET, caption_entities: Optional[List[MessageEntity]] = None, reply_markup: Optional[InlineKeyboardMarkup] = None, + **kwargs: Any, ) -> EditMessageCaption: from ..methods import EditMessageCaption @@ -1942,16 +2090,27 @@ class Message(TelegramObject): parse_mode=parse_mode, caption_entities=caption_entities, reply_markup=reply_markup, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) - def delete(self) -> DeleteMessage: + def delete( + self, + **kwargs: Any, + ) -> DeleteMessage: from ..methods import DeleteMessage - return DeleteMessage(chat_id=self.chat.id, message_id=self.message_id) + return DeleteMessage( + chat_id=self.chat.id, + message_id=self.message_id, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, + ) def pin( self, disable_notification: Optional[bool] = None, + **kwargs: Any, ) -> PinChatMessage: from ..methods import PinChatMessage @@ -1959,14 +2118,21 @@ class Message(TelegramObject): chat_id=self.chat.id, message_id=self.message_id, disable_notification=disable_notification, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) - def unpin(self) -> UnpinChatMessage: + def unpin( + self, + **kwargs: Any, + ) -> UnpinChatMessage: from ..methods import UnpinChatMessage return UnpinChatMessage( chat_id=self.chat.id, message_id=self.message_id, + message_thread_id=self.message_thread_id if self.is_topic_message else None, + **kwargs, ) def get_url(self, force_private: bool = False) -> Optional[str]: @@ -2024,6 +2190,9 @@ class ContentType(helper.Helper): POLL = helper.Item() # poll DICE = helper.Item() # dice MESSAGE_AUTO_DELETE_TIMER_CHANGED = helper.Item() # message_auto_delete_timer_changed + FORUM_TOPIC_CREATED = helper.Item() # forum_topic_created + FORUM_TOPIC_CLOSED = helper.Item() # forum_topic_closed + FORUM_TOPIC_REOPENED = helper.Item() # forum_topic_reopened VIDEO_CHAT_SCHEDULED = helper.Item() # video_chat_scheduled VIDEO_CHAT_STARTED = helper.Item() # video_chat_started VIDEO_CHAT_ENDED = helper.Item() # video_chat_ended diff --git a/aiogram/types/user.py b/aiogram/types/user.py index f9e8af24..2308dbd4 100644 --- a/aiogram/types/user.py +++ b/aiogram/types/user.py @@ -2,14 +2,15 @@ from __future__ import annotations from typing import Optional -from ..utils.link import create_tg_link from ..utils import markdown +from ..utils.link import create_tg_link from .base import TelegramObject class User(TelegramObject): """ This object represents a Telegram user or bot. + Source: https://core.telegram.org/bots/api#user """ @@ -32,7 +33,7 @@ class User(TelegramObject): can_join_groups: Optional[bool] = None """*Optional*. :code:`True`, if the bot can be invited to groups. Returned only in :class:`aiogram.methods.get_me.GetMe`.""" can_read_all_group_messages: Optional[bool] = None - """*Optional*. :code:`True`, if `privacy mode `_ is disabled for the bot. Returned only in :class:`aiogram.methods.get_me.GetMe`.""" + """*Optional*. :code:`True`, if `privacy mode `_ is disabled for the bot. Returned only in :class:`aiogram.methods.get_me.GetMe`.""" supports_inline_queries: Optional[bool] = None """*Optional*. :code:`True`, if the bot supports inline queries. Returned only in :class:`aiogram.methods.get_me.GetMe`.""" diff --git a/aiogram/types/video_chat_ended.py b/aiogram/types/video_chat_ended.py index cb85a931..d890a153 100644 --- a/aiogram/types/video_chat_ended.py +++ b/aiogram/types/video_chat_ended.py @@ -1,12 +1,7 @@ from __future__ import annotations -from typing import TYPE_CHECKING - from .base import TelegramObject -if TYPE_CHECKING: - pass - class VideoChatEnded(TelegramObject): """ diff --git a/aiogram/types/video_chat_scheduled.py b/aiogram/types/video_chat_scheduled.py index 541e988a..508b1ce3 100644 --- a/aiogram/types/video_chat_scheduled.py +++ b/aiogram/types/video_chat_scheduled.py @@ -1,6 +1,6 @@ from __future__ import annotations -from datetime import datetime +import datetime from .base import TelegramObject @@ -12,5 +12,5 @@ class VideoChatScheduled(TelegramObject): Source: https://core.telegram.org/bots/api#videochatscheduled """ - start_date: datetime + start_date: datetime.datetime """Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator""" diff --git a/docs/api/methods/close_forum_topic.rst b/docs/api/methods/close_forum_topic.rst new file mode 100644 index 00000000..127813d0 --- /dev/null +++ b/docs/api/methods/close_forum_topic.rst @@ -0,0 +1,44 @@ +############### +closeForumTopic +############### + +Returns: :obj:`bool` + +.. automodule:: aiogram.methods.close_forum_topic + :members: + :member-order: bysource + :undoc-members: True + + +Usage +===== + +As bot method +------------- + +.. code-block:: + + result: bool = await bot.close_forum_topic(...) + + +Method as object +---------------- + +Imports: + +- :code:`from aiogram.methods.close_forum_topic import CloseForumTopic` +- alias: :code:`from aiogram.methods import CloseForumTopic` + +With specific bot +~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + result: bool = await bot(CloseForumTopic(...)) + +As reply into Webhook in handler +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + return CloseForumTopic(...) diff --git a/docs/api/methods/create_forum_topic.rst b/docs/api/methods/create_forum_topic.rst new file mode 100644 index 00000000..0c46afeb --- /dev/null +++ b/docs/api/methods/create_forum_topic.rst @@ -0,0 +1,44 @@ +################ +createForumTopic +################ + +Returns: :obj:`ForumTopic` + +.. automodule:: aiogram.methods.create_forum_topic + :members: + :member-order: bysource + :undoc-members: True + + +Usage +===== + +As bot method +------------- + +.. code-block:: + + result: ForumTopic = await bot.create_forum_topic(...) + + +Method as object +---------------- + +Imports: + +- :code:`from aiogram.methods.create_forum_topic import CreateForumTopic` +- alias: :code:`from aiogram.methods import CreateForumTopic` + +With specific bot +~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + result: ForumTopic = await bot(CreateForumTopic(...)) + +As reply into Webhook in handler +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + return CreateForumTopic(...) diff --git a/docs/api/methods/delete_forum_topic.rst b/docs/api/methods/delete_forum_topic.rst new file mode 100644 index 00000000..f17a204c --- /dev/null +++ b/docs/api/methods/delete_forum_topic.rst @@ -0,0 +1,44 @@ +################ +deleteForumTopic +################ + +Returns: :obj:`bool` + +.. automodule:: aiogram.methods.delete_forum_topic + :members: + :member-order: bysource + :undoc-members: True + + +Usage +===== + +As bot method +------------- + +.. code-block:: + + result: bool = await bot.delete_forum_topic(...) + + +Method as object +---------------- + +Imports: + +- :code:`from aiogram.methods.delete_forum_topic import DeleteForumTopic` +- alias: :code:`from aiogram.methods import DeleteForumTopic` + +With specific bot +~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + result: bool = await bot(DeleteForumTopic(...)) + +As reply into Webhook in handler +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + return DeleteForumTopic(...) diff --git a/docs/api/methods/edit_forum_topic.rst b/docs/api/methods/edit_forum_topic.rst new file mode 100644 index 00000000..daa6ff0e --- /dev/null +++ b/docs/api/methods/edit_forum_topic.rst @@ -0,0 +1,44 @@ +############## +editForumTopic +############## + +Returns: :obj:`bool` + +.. automodule:: aiogram.methods.edit_forum_topic + :members: + :member-order: bysource + :undoc-members: True + + +Usage +===== + +As bot method +------------- + +.. code-block:: + + result: bool = await bot.edit_forum_topic(...) + + +Method as object +---------------- + +Imports: + +- :code:`from aiogram.methods.edit_forum_topic import EditForumTopic` +- alias: :code:`from aiogram.methods import EditForumTopic` + +With specific bot +~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + result: bool = await bot(EditForumTopic(...)) + +As reply into Webhook in handler +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + return EditForumTopic(...) diff --git a/docs/api/methods/edit_message_live_location.rst b/docs/api/methods/edit_message_live_location.rst index 65af8bf1..3d9ec289 100644 --- a/docs/api/methods/edit_message_live_location.rst +++ b/docs/api/methods/edit_message_live_location.rst @@ -21,14 +21,6 @@ As bot method result: Union[Message, bool] = await bot.edit_message_live_location(...) -As message method ------------------ - -.. code-block:: - - result: Union[Message, bool] = await message.edit_live_location(...) - - Method as object ---------------- diff --git a/docs/api/methods/edit_message_media.rst b/docs/api/methods/edit_message_media.rst index 155a9eb6..efd8a3cb 100644 --- a/docs/api/methods/edit_message_media.rst +++ b/docs/api/methods/edit_message_media.rst @@ -21,14 +21,6 @@ As bot method result: Union[Message, bool] = await bot.edit_message_media(...) -As message method ------------------ - -.. code-block:: - - result: Union[Message, bool] = await message.edit_media(...) - - Method as object ---------------- diff --git a/docs/api/methods/forward_message.rst b/docs/api/methods/forward_message.rst index 0242715c..2b02dfdc 100644 --- a/docs/api/methods/forward_message.rst +++ b/docs/api/methods/forward_message.rst @@ -21,14 +21,6 @@ As bot method result: Message = await bot.forward_message(...) -As message method -------------- - -.. code-block:: - - result: Message = await message.forward(...) - - Method as object ---------------- diff --git a/docs/api/methods/get_chat_menu_button.rst b/docs/api/methods/get_chat_menu_button.rst index 85a6c6a3..5a3f5a6f 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:`MenuButton` +Returns: :obj:`Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands]` .. automodule:: aiogram.methods.get_chat_menu_button :members: @@ -18,7 +18,7 @@ As bot method .. code-block:: - result: MenuButton = await bot.get_chat_menu_button(...) + result: Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands] = await bot.get_chat_menu_button(...) Method as object @@ -34,4 +34,4 @@ With specific bot .. code-block:: python - result: MenuButton = await bot(GetChatMenuButton(...)) + result: Union[MenuButtonDefault, MenuButtonWebApp, MenuButtonCommands] = await bot(GetChatMenuButton(...)) diff --git a/docs/api/methods/get_forum_topic_icon_stickers.rst b/docs/api/methods/get_forum_topic_icon_stickers.rst new file mode 100644 index 00000000..ef3887e4 --- /dev/null +++ b/docs/api/methods/get_forum_topic_icon_stickers.rst @@ -0,0 +1,37 @@ +######################### +getForumTopicIconStickers +######################### + +Returns: :obj:`List[Sticker]` + +.. automodule:: aiogram.methods.get_forum_topic_icon_stickers + :members: + :member-order: bysource + :undoc-members: True + + +Usage +===== + +As bot method +------------- + +.. code-block:: + + result: List[Sticker] = await bot.get_forum_topic_icon_stickers(...) + + +Method as object +---------------- + +Imports: + +- :code:`from aiogram.methods.get_forum_topic_icon_stickers import GetForumTopicIconStickers` +- alias: :code:`from aiogram.methods import GetForumTopicIconStickers` + +With specific bot +~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + result: List[Sticker] = await bot(GetForumTopicIconStickers(...)) diff --git a/docs/api/methods/index.rst b/docs/api/methods/index.rst index d09d5881..a47ea7f6 100644 --- a/docs/api/methods/index.rst +++ b/docs/api/methods/index.rst @@ -78,6 +78,13 @@ Available methods get_chat_member set_chat_sticker_set delete_chat_sticker_set + get_forum_topic_icon_stickers + create_forum_topic + edit_forum_topic + close_forum_topic + reopen_forum_topic + delete_forum_topic + unpin_all_forum_topic_messages answer_callback_query set_my_commands delete_my_commands diff --git a/docs/api/methods/pin_chat_message.rst b/docs/api/methods/pin_chat_message.rst index d28eb9b4..ec730278 100644 --- a/docs/api/methods/pin_chat_message.rst +++ b/docs/api/methods/pin_chat_message.rst @@ -21,14 +21,6 @@ As bot method result: bool = await bot.pin_chat_message(...) -As message method ------------------ - -.. code-block:: - - result: bool = await message.pin(...) - - Method as object ---------------- diff --git a/docs/api/methods/reopen_forum_topic.rst b/docs/api/methods/reopen_forum_topic.rst new file mode 100644 index 00000000..c76b7adc --- /dev/null +++ b/docs/api/methods/reopen_forum_topic.rst @@ -0,0 +1,44 @@ +################ +reopenForumTopic +################ + +Returns: :obj:`bool` + +.. automodule:: aiogram.methods.reopen_forum_topic + :members: + :member-order: bysource + :undoc-members: True + + +Usage +===== + +As bot method +------------- + +.. code-block:: + + result: bool = await bot.reopen_forum_topic(...) + + +Method as object +---------------- + +Imports: + +- :code:`from aiogram.methods.reopen_forum_topic import ReopenForumTopic` +- alias: :code:`from aiogram.methods import ReopenForumTopic` + +With specific bot +~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + result: bool = await bot(ReopenForumTopic(...)) + +As reply into Webhook in handler +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + return ReopenForumTopic(...) diff --git a/docs/api/methods/stop_message_live_location.rst b/docs/api/methods/stop_message_live_location.rst index 2cdc3fb4..1ef6440a 100644 --- a/docs/api/methods/stop_message_live_location.rst +++ b/docs/api/methods/stop_message_live_location.rst @@ -21,14 +21,6 @@ As bot method result: Union[Message, bool] = await bot.stop_message_live_location(...) -As message method ------------------ - -.. code-block:: - - result: Union[Message, bool] = await message.stop_live_location(...) - - Method as object ---------------- diff --git a/docs/api/methods/unpin_all_forum_topic_messages.rst b/docs/api/methods/unpin_all_forum_topic_messages.rst new file mode 100644 index 00000000..7ae521f4 --- /dev/null +++ b/docs/api/methods/unpin_all_forum_topic_messages.rst @@ -0,0 +1,44 @@ +########################## +unpinAllForumTopicMessages +########################## + +Returns: :obj:`bool` + +.. automodule:: aiogram.methods.unpin_all_forum_topic_messages + :members: + :member-order: bysource + :undoc-members: True + + +Usage +===== + +As bot method +------------- + +.. code-block:: + + result: bool = await bot.unpin_all_forum_topic_messages(...) + + +Method as object +---------------- + +Imports: + +- :code:`from aiogram.methods.unpin_all_forum_topic_messages import UnpinAllForumTopicMessages` +- alias: :code:`from aiogram.methods import UnpinAllForumTopicMessages` + +With specific bot +~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + result: bool = await bot(UnpinAllForumTopicMessages(...)) + +As reply into Webhook in handler +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + return UnpinAllForumTopicMessages(...) diff --git a/docs/api/methods/unpin_chat_message.rst b/docs/api/methods/unpin_chat_message.rst index a4c5e7f1..1531ec19 100644 --- a/docs/api/methods/unpin_chat_message.rst +++ b/docs/api/methods/unpin_chat_message.rst @@ -21,14 +21,6 @@ As bot method result: bool = await bot.unpin_chat_message(...) -As message method ------------------ - -.. code-block:: - - result: bool = await message.unpin() - - Method as object ---------------- diff --git a/docs/api/types/forum_topic.rst b/docs/api/types/forum_topic.rst new file mode 100644 index 00000000..fa5e99a6 --- /dev/null +++ b/docs/api/types/forum_topic.rst @@ -0,0 +1,9 @@ +########## +ForumTopic +########## + + +.. automodule:: aiogram.types.forum_topic + :members: + :member-order: bysource + :undoc-members: True diff --git a/docs/api/types/forum_topic_closed.rst b/docs/api/types/forum_topic_closed.rst new file mode 100644 index 00000000..200b19a5 --- /dev/null +++ b/docs/api/types/forum_topic_closed.rst @@ -0,0 +1,9 @@ +################ +ForumTopicClosed +################ + + +.. automodule:: aiogram.types.forum_topic_closed + :members: + :member-order: bysource + :undoc-members: True diff --git a/docs/api/types/forum_topic_created.rst b/docs/api/types/forum_topic_created.rst new file mode 100644 index 00000000..5eeb2382 --- /dev/null +++ b/docs/api/types/forum_topic_created.rst @@ -0,0 +1,9 @@ +################# +ForumTopicCreated +################# + + +.. automodule:: aiogram.types.forum_topic_created + :members: + :member-order: bysource + :undoc-members: True diff --git a/docs/api/types/forum_topic_reopened.rst b/docs/api/types/forum_topic_reopened.rst new file mode 100644 index 00000000..8803cf1f --- /dev/null +++ b/docs/api/types/forum_topic_reopened.rst @@ -0,0 +1,9 @@ +################## +ForumTopicReopened +################## + + +.. automodule:: aiogram.types.forum_topic_reopened + :members: + :member-order: bysource + :undoc-members: True diff --git a/docs/api/types/index.rst b/docs/api/types/index.rst index 32b33b53..97a876e6 100644 --- a/docs/api/types/index.rst +++ b/docs/api/types/index.rst @@ -43,6 +43,9 @@ Available types web_app_data proximity_alert_triggered message_auto_delete_timer_changed + forum_topic_created + forum_topic_closed + forum_topic_reopened video_chat_scheduled video_chat_started video_chat_ended @@ -73,6 +76,7 @@ Available types chat_join_request chat_permissions chat_location + forum_topic bot_command bot_command_scope bot_command_scope_default diff --git a/docs/dispatcher/filters/index.rst b/docs/dispatcher/filters/index.rst index aba316c6..856b8677 100644 --- a/docs/dispatcher/filters/index.rst +++ b/docs/dispatcher/filters/index.rst @@ -59,8 +59,6 @@ For example if you need to make simple text filter: Combining Filters ================= -.. versionadded:: 3.0b6 - In general, all filters can be combined in two ways diff --git a/docs/locale/en/LC_MESSAGES/api/bot.po b/docs/locale/en/LC_MESSAGES/api/bot.po index 68e113ad..28acf660 100644 --- a/docs/locale/en/LC_MESSAGES/api/bot.po +++ b/docs/locale/en/LC_MESSAGES/api/bot.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -59,19 +59,23 @@ msgstr "" #: aiogram.client.bot.Bot.approve_chat_join_request #: aiogram.client.bot.Bot.ban_chat_member #: aiogram.client.bot.Bot.ban_chat_sender_chat aiogram.client.bot.Bot.close -#: aiogram.client.bot.Bot.context aiogram.client.bot.Bot.copy_message +#: aiogram.client.bot.Bot.close_forum_topic aiogram.client.bot.Bot.context +#: aiogram.client.bot.Bot.copy_message #: aiogram.client.bot.Bot.create_chat_invite_link +#: aiogram.client.bot.Bot.create_forum_topic #: aiogram.client.bot.Bot.create_invoice_link #: aiogram.client.bot.Bot.create_new_sticker_set #: aiogram.client.bot.Bot.decline_chat_join_request #: aiogram.client.bot.Bot.delete_chat_photo #: aiogram.client.bot.Bot.delete_chat_sticker_set +#: aiogram.client.bot.Bot.delete_forum_topic #: aiogram.client.bot.Bot.delete_message #: aiogram.client.bot.Bot.delete_my_commands #: aiogram.client.bot.Bot.delete_sticker_from_set #: aiogram.client.bot.Bot.delete_webhook aiogram.client.bot.Bot.download #: aiogram.client.bot.Bot.download_file #: aiogram.client.bot.Bot.edit_chat_invite_link +#: aiogram.client.bot.Bot.edit_forum_topic #: aiogram.client.bot.Bot.edit_message_caption #: aiogram.client.bot.Bot.edit_message_live_location #: aiogram.client.bot.Bot.edit_message_media @@ -85,8 +89,10 @@ msgstr "" #: aiogram.client.bot.Bot.get_chat_members_count #: aiogram.client.bot.Bot.get_chat_menu_button #: aiogram.client.bot.Bot.get_custom_emoji_stickers -#: aiogram.client.bot.Bot.get_file aiogram.client.bot.Bot.get_game_high_scores -#: aiogram.client.bot.Bot.get_me aiogram.client.bot.Bot.get_my_commands +#: aiogram.client.bot.Bot.get_file +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers +#: aiogram.client.bot.Bot.get_game_high_scores aiogram.client.bot.Bot.get_me +#: aiogram.client.bot.Bot.get_my_commands #: aiogram.client.bot.Bot.get_my_default_administrator_rights #: aiogram.client.bot.Bot.get_sticker_set aiogram.client.bot.Bot.get_updates #: aiogram.client.bot.Bot.get_user_profile_photos @@ -94,6 +100,7 @@ msgstr "" #: aiogram.client.bot.Bot.kick_chat_member aiogram.client.bot.Bot.leave_chat #: aiogram.client.bot.Bot.log_out aiogram.client.bot.Bot.pin_chat_message #: aiogram.client.bot.Bot.promote_chat_member +#: aiogram.client.bot.Bot.reopen_forum_topic #: aiogram.client.bot.Bot.restrict_chat_member #: aiogram.client.bot.Bot.revoke_chat_invite_link #: aiogram.client.bot.Bot.send_animation aiogram.client.bot.Bot.send_audio @@ -122,6 +129,7 @@ msgstr "" #: aiogram.client.bot.Bot.stop_poll aiogram.client.bot.Bot.unban_chat_member #: aiogram.client.bot.Bot.unban_chat_sender_chat #: aiogram.client.bot.Bot.unpin_all_chat_messages +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages #: aiogram.client.bot.Bot.unpin_chat_message #: aiogram.client.bot.Bot.upload_sticker_file of msgid "Parameters" @@ -164,18 +172,22 @@ msgstr "" #: aiogram.client.bot.Bot.approve_chat_join_request #: aiogram.client.bot.Bot.ban_chat_member #: aiogram.client.bot.Bot.ban_chat_sender_chat aiogram.client.bot.Bot.close -#: aiogram.client.bot.Bot.context aiogram.client.bot.Bot.copy_message +#: aiogram.client.bot.Bot.close_forum_topic aiogram.client.bot.Bot.context +#: aiogram.client.bot.Bot.copy_message #: aiogram.client.bot.Bot.create_chat_invite_link +#: aiogram.client.bot.Bot.create_forum_topic #: aiogram.client.bot.Bot.create_invoice_link #: aiogram.client.bot.Bot.create_new_sticker_set #: aiogram.client.bot.Bot.decline_chat_join_request #: aiogram.client.bot.Bot.delete_chat_photo #: aiogram.client.bot.Bot.delete_chat_sticker_set +#: aiogram.client.bot.Bot.delete_forum_topic #: aiogram.client.bot.Bot.delete_message #: aiogram.client.bot.Bot.delete_my_commands #: aiogram.client.bot.Bot.delete_sticker_from_set #: aiogram.client.bot.Bot.delete_webhook #: aiogram.client.bot.Bot.edit_chat_invite_link +#: aiogram.client.bot.Bot.edit_forum_topic #: aiogram.client.bot.Bot.edit_message_caption #: aiogram.client.bot.Bot.edit_message_live_location #: aiogram.client.bot.Bot.edit_message_media @@ -189,8 +201,10 @@ msgstr "" #: aiogram.client.bot.Bot.get_chat_members_count #: aiogram.client.bot.Bot.get_chat_menu_button #: aiogram.client.bot.Bot.get_custom_emoji_stickers -#: aiogram.client.bot.Bot.get_file aiogram.client.bot.Bot.get_game_high_scores -#: aiogram.client.bot.Bot.get_me aiogram.client.bot.Bot.get_my_commands +#: aiogram.client.bot.Bot.get_file +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers +#: aiogram.client.bot.Bot.get_game_high_scores aiogram.client.bot.Bot.get_me +#: aiogram.client.bot.Bot.get_my_commands #: aiogram.client.bot.Bot.get_my_default_administrator_rights #: aiogram.client.bot.Bot.get_sticker_set aiogram.client.bot.Bot.get_updates #: aiogram.client.bot.Bot.get_user_profile_photos @@ -198,6 +212,7 @@ msgstr "" #: aiogram.client.bot.Bot.kick_chat_member aiogram.client.bot.Bot.leave_chat #: aiogram.client.bot.Bot.log_out aiogram.client.bot.Bot.pin_chat_message #: aiogram.client.bot.Bot.promote_chat_member +#: aiogram.client.bot.Bot.reopen_forum_topic #: aiogram.client.bot.Bot.restrict_chat_member #: aiogram.client.bot.Bot.revoke_chat_invite_link #: aiogram.client.bot.Bot.send_animation aiogram.client.bot.Bot.send_audio @@ -226,6 +241,7 @@ msgstr "" #: aiogram.client.bot.Bot.stop_poll aiogram.client.bot.Bot.unban_chat_member #: aiogram.client.bot.Bot.unban_chat_sender_chat #: aiogram.client.bot.Bot.unpin_all_chat_messages +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages #: aiogram.client.bot.Bot.unpin_chat_message #: aiogram.client.bot.Bot.upload_sticker_file of msgid "Returns" @@ -351,25 +367,29 @@ msgstr "" #: aiogram.client.bot.Bot.approve_chat_join_request:7 #: aiogram.client.bot.Bot.ban_chat_member:9 #: aiogram.client.bot.Bot.ban_chat_sender_chat:7 aiogram.client.bot.Bot.close:5 -#: aiogram.client.bot.Bot.copy_message:16 +#: aiogram.client.bot.Bot.close_forum_topic:7 +#: aiogram.client.bot.Bot.copy_message:17 #: aiogram.client.bot.Bot.create_chat_invite_link:10 +#: aiogram.client.bot.Bot.create_forum_topic:9 #: aiogram.client.bot.Bot.create_invoice_link:25 #: aiogram.client.bot.Bot.create_new_sticker_set:14 #: aiogram.client.bot.Bot.decline_chat_join_request:7 #: aiogram.client.bot.Bot.delete_chat_photo:6 #: aiogram.client.bot.Bot.delete_chat_sticker_set:6 -#: aiogram.client.bot.Bot.delete_message:23 +#: aiogram.client.bot.Bot.delete_forum_topic:7 +#: aiogram.client.bot.Bot.delete_message:25 #: aiogram.client.bot.Bot.delete_my_commands:7 #: aiogram.client.bot.Bot.delete_sticker_from_set:6 #: aiogram.client.bot.Bot.delete_webhook:6 #: aiogram.client.bot.Bot.edit_chat_invite_link:11 +#: aiogram.client.bot.Bot.edit_forum_topic:9 #: aiogram.client.bot.Bot.edit_message_caption:12 #: aiogram.client.bot.Bot.edit_message_live_location:14 #: aiogram.client.bot.Bot.edit_message_media:10 #: aiogram.client.bot.Bot.edit_message_reply_markup:9 #: aiogram.client.bot.Bot.edit_message_text:13 #: aiogram.client.bot.Bot.export_chat_invite_link:8 -#: aiogram.client.bot.Bot.forward_message:10 aiogram.client.bot.Bot.get_chat:6 +#: aiogram.client.bot.Bot.forward_message:11 aiogram.client.bot.Bot.get_chat:6 #: aiogram.client.bot.Bot.get_chat_administrators:6 #: aiogram.client.bot.Bot.get_chat_member:7 #: aiogram.client.bot.Bot.get_chat_member_count:6 @@ -377,6 +397,7 @@ msgstr "" #: aiogram.client.bot.Bot.get_chat_menu_button:6 #: aiogram.client.bot.Bot.get_custom_emoji_stickers:6 #: aiogram.client.bot.Bot.get_file:7 +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers:5 #: aiogram.client.bot.Bot.get_game_high_scores:11 #: aiogram.client.bot.Bot.get_me:5 aiogram.client.bot.Bot.get_my_commands:7 #: aiogram.client.bot.Bot.get_my_default_administrator_rights:6 @@ -387,22 +408,23 @@ msgstr "" #: aiogram.client.bot.Bot.kick_chat_member:13 #: aiogram.client.bot.Bot.leave_chat:6 aiogram.client.bot.Bot.log_out:5 #: aiogram.client.bot.Bot.pin_chat_message:8 -#: aiogram.client.bot.Bot.promote_chat_member:18 +#: aiogram.client.bot.Bot.promote_chat_member:19 +#: aiogram.client.bot.Bot.reopen_forum_topic:7 #: aiogram.client.bot.Bot.restrict_chat_member:9 #: aiogram.client.bot.Bot.revoke_chat_invite_link:7 -#: aiogram.client.bot.Bot.send_animation:19 -#: aiogram.client.bot.Bot.send_audio:20 +#: aiogram.client.bot.Bot.send_animation:20 +#: aiogram.client.bot.Bot.send_audio:21 #: aiogram.client.bot.Bot.send_chat_action:11 -#: aiogram.client.bot.Bot.send_contact:15 aiogram.client.bot.Bot.send_dice:12 -#: aiogram.client.bot.Bot.send_document:17 aiogram.client.bot.Bot.send_game:12 -#: aiogram.client.bot.Bot.send_invoice:32 -#: aiogram.client.bot.Bot.send_location:17 -#: aiogram.client.bot.Bot.send_media_group:11 -#: aiogram.client.bot.Bot.send_message:15 aiogram.client.bot.Bot.send_photo:15 -#: aiogram.client.bot.Bot.send_poll:23 aiogram.client.bot.Bot.send_sticker:12 -#: aiogram.client.bot.Bot.send_venue:19 aiogram.client.bot.Bot.send_video:20 -#: aiogram.client.bot.Bot.send_video_note:15 -#: aiogram.client.bot.Bot.send_voice:16 +#: aiogram.client.bot.Bot.send_contact:16 aiogram.client.bot.Bot.send_dice:13 +#: aiogram.client.bot.Bot.send_document:18 aiogram.client.bot.Bot.send_game:13 +#: aiogram.client.bot.Bot.send_invoice:33 +#: aiogram.client.bot.Bot.send_location:18 +#: aiogram.client.bot.Bot.send_media_group:12 +#: aiogram.client.bot.Bot.send_message:16 aiogram.client.bot.Bot.send_photo:16 +#: aiogram.client.bot.Bot.send_poll:24 aiogram.client.bot.Bot.send_sticker:13 +#: aiogram.client.bot.Bot.send_venue:20 aiogram.client.bot.Bot.send_video:21 +#: aiogram.client.bot.Bot.send_video_note:16 +#: aiogram.client.bot.Bot.send_voice:17 #: aiogram.client.bot.Bot.set_chat_administrator_custom_title:8 #: aiogram.client.bot.Bot.set_chat_description:7 #: aiogram.client.bot.Bot.set_chat_menu_button:7 @@ -422,6 +444,7 @@ msgstr "" #: aiogram.client.bot.Bot.unban_chat_member:8 #: aiogram.client.bot.Bot.unban_chat_sender_chat:7 #: aiogram.client.bot.Bot.unpin_all_chat_messages:6 +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:7 #: aiogram.client.bot.Bot.unpin_chat_message:7 #: aiogram.client.bot.Bot.upload_sticker_file:7 of msgid "Request timeout" @@ -513,15 +536,20 @@ msgstr "" #: aiogram.client.bot.Bot.add_sticker_to_set:13 #: aiogram.client.bot.Bot.approve_chat_join_request:8 #: aiogram.client.bot.Bot.ban_chat_sender_chat:8 +#: aiogram.client.bot.Bot.close_forum_topic:8 #: aiogram.client.bot.Bot.create_new_sticker_set:15 #: aiogram.client.bot.Bot.decline_chat_join_request:8 #: aiogram.client.bot.Bot.delete_chat_photo:7 -#: aiogram.client.bot.Bot.delete_message:24 +#: aiogram.client.bot.Bot.delete_forum_topic:8 +#: aiogram.client.bot.Bot.delete_message:26 #: aiogram.client.bot.Bot.delete_my_commands:8 #: aiogram.client.bot.Bot.delete_sticker_from_set:7 -#: aiogram.client.bot.Bot.delete_webhook:7 aiogram.client.bot.Bot.leave_chat:7 -#: aiogram.client.bot.Bot.log_out:6 aiogram.client.bot.Bot.pin_chat_message:9 -#: aiogram.client.bot.Bot.promote_chat_member:19 +#: aiogram.client.bot.Bot.delete_webhook:7 +#: aiogram.client.bot.Bot.edit_forum_topic:10 +#: aiogram.client.bot.Bot.leave_chat:7 aiogram.client.bot.Bot.log_out:6 +#: aiogram.client.bot.Bot.pin_chat_message:9 +#: aiogram.client.bot.Bot.promote_chat_member:20 +#: aiogram.client.bot.Bot.reopen_forum_topic:8 #: aiogram.client.bot.Bot.restrict_chat_member:10 #: aiogram.client.bot.Bot.send_chat_action:12 #: aiogram.client.bot.Bot.set_chat_administrator_custom_title:9 @@ -537,6 +565,7 @@ msgstr "" #: aiogram.client.bot.Bot.set_webhook:23 #: aiogram.client.bot.Bot.unban_chat_sender_chat:8 #: aiogram.client.bot.Bot.unpin_all_chat_messages:7 +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:8 #: aiogram.client.bot.Bot.unpin_chat_message:8 of msgid "Returns True on success." msgstr "" @@ -635,7 +664,7 @@ msgstr "" #: aiogram.client.bot.Bot.create_chat_invite_link:5 #: aiogram.client.bot.Bot.decline_chat_join_request:5 #: aiogram.client.bot.Bot.delete_chat_photo:5 -#: aiogram.client.bot.Bot.delete_message:21 +#: aiogram.client.bot.Bot.delete_message:23 #: aiogram.client.bot.Bot.edit_chat_invite_link:5 #: aiogram.client.bot.Bot.export_chat_invite_link:7 #: aiogram.client.bot.Bot.forward_message:5 @@ -666,8 +695,26 @@ msgstr "" msgid "Text of the message to be sent, 1-4096 characters after entities parsing" msgstr "" +#: aiogram.client.bot.Bot.copy_message:8 +#: aiogram.client.bot.Bot.forward_message:8 +#: aiogram.client.bot.Bot.send_animation:7 aiogram.client.bot.Bot.send_audio:8 +#: aiogram.client.bot.Bot.send_contact:8 aiogram.client.bot.Bot.send_dice:6 +#: aiogram.client.bot.Bot.send_document:7 aiogram.client.bot.Bot.send_game:7 +#: aiogram.client.bot.Bot.send_invoice:12 +#: aiogram.client.bot.Bot.send_location:8 +#: aiogram.client.bot.Bot.send_media_group:7 +#: aiogram.client.bot.Bot.send_message:7 aiogram.client.bot.Bot.send_photo:7 +#: aiogram.client.bot.Bot.send_poll:8 aiogram.client.bot.Bot.send_sticker:7 +#: aiogram.client.bot.Bot.send_venue:10 aiogram.client.bot.Bot.send_video:7 +#: aiogram.client.bot.Bot.send_video_note:7 aiogram.client.bot.Bot.send_voice:7 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: aiogram.client.bot.Bot.edit_message_text:9 -#: aiogram.client.bot.Bot.send_message:7 of +#: aiogram.client.bot.Bot.send_message:8 of msgid "" "Mode for parsing entities in the message text. See `formatting options " "`_ for more " @@ -675,60 +722,46 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.edit_message_text:10 -#: aiogram.client.bot.Bot.send_message:8 of +#: aiogram.client.bot.Bot.send_message:9 of msgid "" "A JSON-serialized list of special entities that appear in message text, " "which can be specified instead of *parse_mode*" msgstr "" #: aiogram.client.bot.Bot.edit_message_text:11 -#: aiogram.client.bot.Bot.send_message:9 of +#: aiogram.client.bot.Bot.send_message:10 of msgid "Disables link previews for links in this message" msgstr "" -#: aiogram.client.bot.Bot.copy_message:11 -#: aiogram.client.bot.Bot.forward_message:8 -#: aiogram.client.bot.Bot.send_animation:14 -#: aiogram.client.bot.Bot.send_audio:15 aiogram.client.bot.Bot.send_contact:10 -#: aiogram.client.bot.Bot.send_dice:7 aiogram.client.bot.Bot.send_document:12 -#: aiogram.client.bot.Bot.send_game:7 aiogram.client.bot.Bot.send_invoice:27 -#: aiogram.client.bot.Bot.send_location:12 -#: aiogram.client.bot.Bot.send_message:10 aiogram.client.bot.Bot.send_photo:10 -#: aiogram.client.bot.Bot.send_poll:18 aiogram.client.bot.Bot.send_sticker:7 -#: aiogram.client.bot.Bot.send_venue:14 aiogram.client.bot.Bot.send_video:15 -#: aiogram.client.bot.Bot.send_video_note:10 -#: aiogram.client.bot.Bot.send_voice:11 of -msgid "" -"Sends the message `silently `_. Users will receive a notification with no sound." -msgstr "" - #: aiogram.client.bot.Bot.copy_message:12 +#: aiogram.client.bot.Bot.forward_message:9 #: aiogram.client.bot.Bot.send_animation:15 #: aiogram.client.bot.Bot.send_audio:16 aiogram.client.bot.Bot.send_contact:11 -#: aiogram.client.bot.Bot.send_document:13 aiogram.client.bot.Bot.send_game:8 -#: aiogram.client.bot.Bot.send_invoice:28 +#: aiogram.client.bot.Bot.send_dice:8 aiogram.client.bot.Bot.send_document:13 +#: aiogram.client.bot.Bot.send_game:8 aiogram.client.bot.Bot.send_invoice:28 #: aiogram.client.bot.Bot.send_location:13 #: aiogram.client.bot.Bot.send_message:11 aiogram.client.bot.Bot.send_photo:11 #: aiogram.client.bot.Bot.send_poll:19 aiogram.client.bot.Bot.send_sticker:8 #: aiogram.client.bot.Bot.send_venue:15 aiogram.client.bot.Bot.send_video:16 #: aiogram.client.bot.Bot.send_video_note:11 #: aiogram.client.bot.Bot.send_voice:12 of -msgid "Protects the contents of the sent message from forwarding and saving" +msgid "" +"Sends the message `silently `_. Users will receive a notification with no sound." msgstr "" #: aiogram.client.bot.Bot.copy_message:13 #: aiogram.client.bot.Bot.send_animation:16 #: aiogram.client.bot.Bot.send_audio:17 aiogram.client.bot.Bot.send_contact:12 -#: aiogram.client.bot.Bot.send_dice:9 aiogram.client.bot.Bot.send_document:14 -#: aiogram.client.bot.Bot.send_game:9 aiogram.client.bot.Bot.send_invoice:29 +#: aiogram.client.bot.Bot.send_document:14 aiogram.client.bot.Bot.send_game:9 +#: aiogram.client.bot.Bot.send_invoice:29 #: aiogram.client.bot.Bot.send_location:14 #: aiogram.client.bot.Bot.send_message:12 aiogram.client.bot.Bot.send_photo:12 #: aiogram.client.bot.Bot.send_poll:20 aiogram.client.bot.Bot.send_sticker:9 #: aiogram.client.bot.Bot.send_venue:16 aiogram.client.bot.Bot.send_video:17 #: aiogram.client.bot.Bot.send_video_note:12 #: aiogram.client.bot.Bot.send_voice:13 of -msgid "If the message is a reply, ID of the original message" +msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" #: aiogram.client.bot.Bot.copy_message:14 @@ -737,46 +770,60 @@ msgstr "" #: aiogram.client.bot.Bot.send_dice:10 aiogram.client.bot.Bot.send_document:15 #: aiogram.client.bot.Bot.send_game:10 aiogram.client.bot.Bot.send_invoice:30 #: aiogram.client.bot.Bot.send_location:15 -#: aiogram.client.bot.Bot.send_media_group:10 #: aiogram.client.bot.Bot.send_message:13 aiogram.client.bot.Bot.send_photo:13 #: aiogram.client.bot.Bot.send_poll:21 aiogram.client.bot.Bot.send_sticker:10 #: aiogram.client.bot.Bot.send_venue:17 aiogram.client.bot.Bot.send_video:18 #: aiogram.client.bot.Bot.send_video_note:13 #: aiogram.client.bot.Bot.send_voice:14 of -msgid "" -"Pass :code:`True` if the message should be sent even if the specified " -"replied-to message is not found" +msgid "If the message is a reply, ID of the original message" msgstr "" #: aiogram.client.bot.Bot.copy_message:15 #: aiogram.client.bot.Bot.send_animation:18 -#: aiogram.client.bot.Bot.send_audio:19 aiogram.client.bot.Bot.send_dice:11 -#: aiogram.client.bot.Bot.send_document:16 +#: aiogram.client.bot.Bot.send_audio:19 aiogram.client.bot.Bot.send_contact:14 +#: aiogram.client.bot.Bot.send_dice:11 aiogram.client.bot.Bot.send_document:16 +#: aiogram.client.bot.Bot.send_game:11 aiogram.client.bot.Bot.send_invoice:31 #: aiogram.client.bot.Bot.send_location:16 +#: aiogram.client.bot.Bot.send_media_group:11 #: aiogram.client.bot.Bot.send_message:14 aiogram.client.bot.Bot.send_photo:14 #: aiogram.client.bot.Bot.send_poll:22 aiogram.client.bot.Bot.send_sticker:11 #: aiogram.client.bot.Bot.send_venue:18 aiogram.client.bot.Bot.send_video:19 #: aiogram.client.bot.Bot.send_video_note:14 #: aiogram.client.bot.Bot.send_voice:15 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` if the message should be sent even if the specified " +"replied-to message is not found" msgstr "" -#: aiogram.client.bot.Bot.forward_message:11 -#: aiogram.client.bot.Bot.send_animation:20 -#: aiogram.client.bot.Bot.send_audio:21 aiogram.client.bot.Bot.send_contact:16 -#: aiogram.client.bot.Bot.send_dice:13 aiogram.client.bot.Bot.send_document:18 -#: aiogram.client.bot.Bot.send_game:13 aiogram.client.bot.Bot.send_invoice:33 -#: aiogram.client.bot.Bot.send_location:18 -#: aiogram.client.bot.Bot.send_message:16 aiogram.client.bot.Bot.send_photo:16 -#: aiogram.client.bot.Bot.send_poll:24 aiogram.client.bot.Bot.send_sticker:13 -#: aiogram.client.bot.Bot.send_venue:20 aiogram.client.bot.Bot.send_video:21 -#: aiogram.client.bot.Bot.send_video_note:16 -#: aiogram.client.bot.Bot.send_voice:17 of +#: aiogram.client.bot.Bot.copy_message:16 +#: aiogram.client.bot.Bot.send_animation:19 +#: aiogram.client.bot.Bot.send_audio:20 aiogram.client.bot.Bot.send_contact:15 +#: aiogram.client.bot.Bot.send_dice:12 aiogram.client.bot.Bot.send_document:17 +#: aiogram.client.bot.Bot.send_location:17 +#: aiogram.client.bot.Bot.send_message:15 aiogram.client.bot.Bot.send_photo:15 +#: aiogram.client.bot.Bot.send_poll:23 aiogram.client.bot.Bot.send_sticker:12 +#: aiogram.client.bot.Bot.send_venue:19 aiogram.client.bot.Bot.send_video:20 +#: aiogram.client.bot.Bot.send_video_note:15 +#: aiogram.client.bot.Bot.send_voice:16 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." +msgstr "" + +#: aiogram.client.bot.Bot.forward_message:12 +#: aiogram.client.bot.Bot.send_animation:21 +#: aiogram.client.bot.Bot.send_audio:22 aiogram.client.bot.Bot.send_contact:17 +#: aiogram.client.bot.Bot.send_dice:14 aiogram.client.bot.Bot.send_document:19 +#: aiogram.client.bot.Bot.send_game:14 aiogram.client.bot.Bot.send_invoice:34 +#: aiogram.client.bot.Bot.send_location:19 +#: aiogram.client.bot.Bot.send_message:17 aiogram.client.bot.Bot.send_photo:17 +#: aiogram.client.bot.Bot.send_poll:25 aiogram.client.bot.Bot.send_sticker:14 +#: aiogram.client.bot.Bot.send_venue:21 aiogram.client.bot.Bot.send_video:22 +#: aiogram.client.bot.Bot.send_video_note:17 +#: aiogram.client.bot.Bot.send_voice:18 of msgid "On success, the sent Message is returned." msgstr "" @@ -803,7 +850,7 @@ msgstr "" msgid "Message identifier in the chat specified in *from_chat_id*" msgstr "" -#: aiogram.client.bot.Bot.forward_message:9 of +#: aiogram.client.bot.Bot.forward_message:10 of msgid "Protects the contents of the forwarded message from forwarding and saving" msgstr "" @@ -823,26 +870,26 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#copymessage" msgstr "" -#: aiogram.client.bot.Bot.copy_message:8 of +#: aiogram.client.bot.Bot.copy_message:9 of msgid "" "New caption for media, 0-1024 characters after entities parsing. If not " "specified, the original caption is kept" msgstr "" -#: aiogram.client.bot.Bot.copy_message:9 of +#: aiogram.client.bot.Bot.copy_message:10 of msgid "" "Mode for parsing entities in the new caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.client.bot.Bot.copy_message:10 of +#: aiogram.client.bot.Bot.copy_message:11 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.client.bot.Bot.copy_message:17 of +#: aiogram.client.bot.Bot.copy_message:18 of msgid "Returns the MessageId of the sent message on success." msgstr "" @@ -867,13 +914,13 @@ msgid "" "files>`" msgstr "" -#: aiogram.client.bot.Bot.send_photo:7 of +#: aiogram.client.bot.Bot.send_photo:8 of msgid "" "Photo caption (may also be used when resending photos by *file_id*), " "0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_photo:8 of +#: aiogram.client.bot.Bot.send_photo:9 of msgid "" "Mode for parsing entities in the photo caption. See `formatting options " "`_ for more " @@ -881,10 +928,10 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.edit_message_caption:10 -#: aiogram.client.bot.Bot.send_animation:13 -#: aiogram.client.bot.Bot.send_audio:10 aiogram.client.bot.Bot.send_document:10 -#: aiogram.client.bot.Bot.send_photo:9 aiogram.client.bot.Bot.send_video:13 -#: aiogram.client.bot.Bot.send_voice:9 of +#: aiogram.client.bot.Bot.send_animation:14 +#: aiogram.client.bot.Bot.send_audio:11 aiogram.client.bot.Bot.send_document:11 +#: aiogram.client.bot.Bot.send_photo:10 aiogram.client.bot.Bot.send_video:14 +#: aiogram.client.bot.Bot.send_voice:10 of msgid "" "A JSON-serialized list of special entities that appear in the caption, " "which can be specified instead of *parse_mode*" @@ -913,33 +960,33 @@ msgid "" "Files » `" msgstr "" -#: aiogram.client.bot.Bot.send_audio:8 of +#: aiogram.client.bot.Bot.send_audio:9 of msgid "Audio caption, 0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_audio:9 of +#: aiogram.client.bot.Bot.send_audio:10 of msgid "" "Mode for parsing entities in the audio caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.client.bot.Bot.send_audio:11 of +#: aiogram.client.bot.Bot.send_audio:12 of msgid "Duration of the audio in seconds" msgstr "" -#: aiogram.client.bot.Bot.send_audio:12 of +#: aiogram.client.bot.Bot.send_audio:13 of msgid "Performer" msgstr "" -#: aiogram.client.bot.Bot.send_audio:13 of +#: aiogram.client.bot.Bot.send_audio:14 of msgid "Track name" msgstr "" -#: aiogram.client.bot.Bot.send_animation:10 -#: aiogram.client.bot.Bot.send_audio:14 aiogram.client.bot.Bot.send_document:7 -#: aiogram.client.bot.Bot.send_video:10 -#: aiogram.client.bot.Bot.send_video_note:9 of +#: aiogram.client.bot.Bot.send_animation:11 +#: aiogram.client.bot.Bot.send_audio:15 aiogram.client.bot.Bot.send_document:8 +#: aiogram.client.bot.Bot.send_video:11 +#: aiogram.client.bot.Bot.send_video_note:10 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" @@ -971,20 +1018,20 @@ msgid "" "/form-data. :ref:`More information on Sending Files » `" msgstr "" -#: aiogram.client.bot.Bot.send_document:8 of +#: aiogram.client.bot.Bot.send_document:9 of msgid "" "Document caption (may also be used when resending documents by " "*file_id*), 0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_document:9 of +#: aiogram.client.bot.Bot.send_document:10 of msgid "" "Mode for parsing entities in the document caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.client.bot.Bot.send_document:11 of +#: aiogram.client.bot.Bot.send_document:12 of msgid "" "Disables automatic server-side content type detection for files uploaded " "using multipart/form-data" @@ -1013,33 +1060,33 @@ msgid "" "files>`" msgstr "" -#: aiogram.client.bot.Bot.send_video:7 aiogram.client.bot.Bot.send_video_note:7 +#: aiogram.client.bot.Bot.send_video:8 aiogram.client.bot.Bot.send_video_note:8 #: of msgid "Duration of sent video in seconds" msgstr "" -#: aiogram.client.bot.Bot.send_video:8 of +#: aiogram.client.bot.Bot.send_video:9 of msgid "Video width" msgstr "" -#: aiogram.client.bot.Bot.send_video:9 of +#: aiogram.client.bot.Bot.send_video:10 of msgid "Video height" msgstr "" -#: aiogram.client.bot.Bot.send_video:11 of +#: aiogram.client.bot.Bot.send_video:12 of msgid "" "Video caption (may also be used when resending videos by *file_id*), " "0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_video:12 of +#: aiogram.client.bot.Bot.send_video:13 of msgid "" "Mode for parsing entities in the video caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.client.bot.Bot.send_video:14 of +#: aiogram.client.bot.Bot.send_video:15 of msgid "Pass :code:`True` if the uploaded video is suitable for streaming" msgstr "" @@ -1065,25 +1112,25 @@ msgid "" "Sending Files » `" msgstr "" -#: aiogram.client.bot.Bot.send_animation:7 of +#: aiogram.client.bot.Bot.send_animation:8 of msgid "Duration of sent animation in seconds" msgstr "" -#: aiogram.client.bot.Bot.send_animation:8 of +#: aiogram.client.bot.Bot.send_animation:9 of msgid "Animation width" msgstr "" -#: aiogram.client.bot.Bot.send_animation:9 of +#: aiogram.client.bot.Bot.send_animation:10 of msgid "Animation height" msgstr "" -#: aiogram.client.bot.Bot.send_animation:11 of +#: aiogram.client.bot.Bot.send_animation:12 of msgid "" "Animation caption (may also be used when resending animation by " "*file_id*), 0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_animation:12 of +#: aiogram.client.bot.Bot.send_animation:13 of msgid "" "Mode for parsing entities in the animation caption. See `formatting " "options `_ for " @@ -1115,18 +1162,18 @@ msgid "" "files>`" msgstr "" -#: aiogram.client.bot.Bot.send_voice:7 of +#: aiogram.client.bot.Bot.send_voice:8 of msgid "Voice message caption, 0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_voice:8 of +#: aiogram.client.bot.Bot.send_voice:9 of msgid "" "Mode for parsing entities in the voice message caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.client.bot.Bot.send_voice:10 of +#: aiogram.client.bot.Bot.send_voice:11 of msgid "Duration of the voice message in seconds" msgstr "" @@ -1150,7 +1197,7 @@ msgid "" "files>`. Sending video notes by a URL is currently unsupported" msgstr "" -#: aiogram.client.bot.Bot.send_video_note:8 of +#: aiogram.client.bot.Bot.send_video_note:9 of msgid "Video width and height, i.e. diameter of the video message" msgstr "" @@ -1173,21 +1220,21 @@ msgid "" " items" msgstr "" -#: aiogram.client.bot.Bot.send_media_group:7 of +#: aiogram.client.bot.Bot.send_media_group:8 of msgid "" "Sends messages `silently `_. Users will receive a notification with no sound." msgstr "" -#: aiogram.client.bot.Bot.send_media_group:8 of +#: aiogram.client.bot.Bot.send_media_group:9 of msgid "Protects the contents of the sent messages from forwarding and saving" msgstr "" -#: aiogram.client.bot.Bot.send_media_group:9 of +#: aiogram.client.bot.Bot.send_media_group:10 of msgid "If the messages are a reply, ID of the original message" msgstr "" -#: aiogram.client.bot.Bot.send_media_group:12 of +#: aiogram.client.bot.Bot.send_media_group:13 of msgid "On success, an array of Messages that were sent is returned." msgstr "" @@ -1210,24 +1257,24 @@ msgid "Longitude of the location" msgstr "" #: aiogram.client.bot.Bot.edit_message_live_location:10 -#: aiogram.client.bot.Bot.send_location:8 of +#: aiogram.client.bot.Bot.send_location:9 of msgid "The radius of uncertainty for the location, measured in meters; 0-1500" msgstr "" -#: aiogram.client.bot.Bot.send_location:9 of +#: aiogram.client.bot.Bot.send_location:10 of msgid "" "Period in seconds for which the location will be updated (see `Live " "Locations `_, should be between" " 60 and 86400." msgstr "" -#: aiogram.client.bot.Bot.send_location:10 of +#: aiogram.client.bot.Bot.send_location:11 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.client.bot.Bot.send_location:11 of +#: aiogram.client.bot.Bot.send_location:12 of msgid "" "For live locations, a maximum distance for proximity alerts about " "approaching another chat member, in meters. Must be between 1 and 100000 " @@ -1309,8 +1356,7 @@ msgstr "" #: aiogram.client.bot.Bot.stop_message_live_location:8 of msgid "" "A JSON-serialized object for a new `inline keyboard " -"`_." +"`_." msgstr "" #: aiogram.client.bot.Bot.edit_message_caption:13 @@ -1373,22 +1419,22 @@ msgstr "" msgid "Address of the venue" msgstr "" -#: aiogram.client.bot.Bot.send_venue:10 of +#: aiogram.client.bot.Bot.send_venue:11 of msgid "Foursquare identifier of the venue" msgstr "" -#: aiogram.client.bot.Bot.send_venue:11 of +#: aiogram.client.bot.Bot.send_venue:12 of msgid "" "Foursquare type of the venue, if known. (For example, " "'arts_entertainment/default', 'arts_entertainment/aquarium' or " "'food/icecream'.)" msgstr "" -#: aiogram.client.bot.Bot.send_venue:12 of +#: aiogram.client.bot.Bot.send_venue:13 of msgid "Google Places identifier of the venue" msgstr "" -#: aiogram.client.bot.Bot.send_venue:13 of +#: aiogram.client.bot.Bot.send_venue:14 of msgid "" "Google Places type of the venue. (See `supported types " "`_.)" @@ -1412,25 +1458,16 @@ msgstr "" msgid "Contact's first name" msgstr "" -#: aiogram.client.bot.Bot.send_contact:8 of +#: aiogram.client.bot.Bot.send_contact:9 of msgid "Contact's last name" msgstr "" -#: aiogram.client.bot.Bot.send_contact:9 of +#: aiogram.client.bot.Bot.send_contact:10 of msgid "" "Additional data about the contact in the form of a `vCard " "`_, 0-2048 bytes" msgstr "" -#: aiogram.client.bot.Bot.send_contact:14 of -msgid "" -"Additional interface options. A JSON-serialized object for an `inline " -"keyboard `_, `custom reply keyboard " -"`_, instructions to remove " -"keyboard or to force a reply from the user." -msgstr "" - #: aiogram.client.bot.Bot.send_poll:1 of msgid "" "Use this method to send a native poll. On success, the sent " @@ -1451,60 +1488,60 @@ msgid "" "each" msgstr "" -#: aiogram.client.bot.Bot.send_poll:8 of +#: aiogram.client.bot.Bot.send_poll:9 of msgid ":code:`True`, if the poll needs to be anonymous, defaults to :code:`True`" msgstr "" -#: aiogram.client.bot.Bot.send_poll:9 of +#: aiogram.client.bot.Bot.send_poll:10 of msgid "Poll type, 'quiz' or 'regular', defaults to 'regular'" msgstr "" -#: aiogram.client.bot.Bot.send_poll:10 of +#: aiogram.client.bot.Bot.send_poll:11 of msgid "" ":code:`True`, if the poll allows multiple answers, ignored for polls in " "quiz mode, defaults to :code:`False`" msgstr "" -#: aiogram.client.bot.Bot.send_poll:11 of +#: aiogram.client.bot.Bot.send_poll:12 of msgid "" "0-based identifier of the correct answer option, required for polls in " "quiz mode" msgstr "" -#: aiogram.client.bot.Bot.send_poll:12 of +#: aiogram.client.bot.Bot.send_poll:13 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.client.bot.Bot.send_poll:13 of +#: aiogram.client.bot.Bot.send_poll:14 of msgid "" "Mode for parsing entities in the explanation. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.client.bot.Bot.send_poll:14 of +#: aiogram.client.bot.Bot.send_poll:15 of msgid "" "A JSON-serialized list of special entities that appear in the poll " "explanation, which can be specified instead of *parse_mode*" msgstr "" -#: aiogram.client.bot.Bot.send_poll:15 of +#: aiogram.client.bot.Bot.send_poll:16 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.client.bot.Bot.send_poll:16 of +#: aiogram.client.bot.Bot.send_poll:17 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.client.bot.Bot.send_poll:17 of +#: aiogram.client.bot.Bot.send_poll:18 of msgid "" "Pass :code:`True` if the poll needs to be immediately closed. This can be" " useful for poll preview." @@ -1521,7 +1558,7 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#senddice" msgstr "" -#: aiogram.client.bot.Bot.send_dice:6 of +#: aiogram.client.bot.Bot.send_dice:7 of msgid "" "Emoji on which the dice throw animation is based. Currently, must be one " "of '🎲', '🎯', '🏀', '⚽', '🎳', or '🎰'. Dice can have values 1-6 for '🎲', '🎯'" @@ -1529,7 +1566,7 @@ msgid "" "to '🎲'" msgstr "" -#: aiogram.client.bot.Bot.send_dice:8 of +#: aiogram.client.bot.Bot.send_dice:9 of msgid "Protects the contents of the sent message from forwarding" msgstr "" @@ -1732,11 +1769,17 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#restrictchatmember" msgstr "" +#: aiogram.client.bot.Bot.close_forum_topic:5 +#: aiogram.client.bot.Bot.create_forum_topic:5 #: aiogram.client.bot.Bot.delete_chat_sticker_set:5 +#: aiogram.client.bot.Bot.delete_forum_topic:5 +#: aiogram.client.bot.Bot.edit_forum_topic:5 +#: aiogram.client.bot.Bot.reopen_forum_topic:5 #: aiogram.client.bot.Bot.restrict_chat_member:5 #: aiogram.client.bot.Bot.set_chat_administrator_custom_title:5 #: aiogram.client.bot.Bot.set_chat_permissions:5 -#: aiogram.client.bot.Bot.set_chat_sticker_set:5 of +#: aiogram.client.bot.Bot.set_chat_sticker_set:5 +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:5 of msgid "" "Unique identifier for the target chat or username of the target " "supergroup (in the format :code:`@supergroupusername`)" @@ -1825,6 +1868,12 @@ msgstr "" msgid "Pass :code:`True` if the administrator can pin messages, supergroups only" msgstr "" +#: aiogram.client.bot.Bot.promote_chat_member:18 of +msgid "" +"Pass :code:`True` if the user is allowed to create, rename, close, and " +"reopen forum topics, supergroups only" +msgstr "" + #: aiogram.client.bot.Bot.set_chat_administrator_custom_title:1 of msgid "" "Use this method to set a custom title for an administrator in a " @@ -2073,7 +2122,7 @@ msgid "Source: https://core.telegram.org/bots/api#setchattitle" msgstr "" #: aiogram.client.bot.Bot.set_chat_title:6 of -msgid "New chat title, 1-255 characters" +msgid "New chat title, 1-128 characters" msgstr "" #: aiogram.client.bot.Bot.set_chat_description:1 of @@ -2271,13 +2320,140 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#deletechatstickerset" msgstr "" +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers:1 of +msgid "" +"Use this method to get custom emoji stickers, which can be used as a " +"forum topic icon by any user. Requires no parameters. Returns an Array of" +" :class:`aiogram.types.sticker.Sticker` objects." +msgstr "" + +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers:3 of +msgid "Source: https://core.telegram.org/bots/api#getforumtopiciconstickers" +msgstr "" + +#: aiogram.client.bot.Bot.get_custom_emoji_stickers:7 +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers:6 of +msgid "Returns an Array of Sticker objects." +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:1 of +msgid "" +"Use this method to create a topic in a forum supergroup chat. The bot " +"must be an administrator in the chat for this to work and must have the " +"*can_manage_topics* administrator rights. Returns information about the " +"created topic as a :class:`aiogram.types.forum_topic.ForumTopic` object." +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:3 of +msgid "Source: https://core.telegram.org/bots/api#createforumtopic" +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:6 of +msgid "Topic name, 1-128 characters" +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:7 of +msgid "" +"Color of the topic icon in RGB format. Currently, must be one of " +"0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F" +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:8 of +msgid "" +"Unique identifier of the custom emoji shown as the topic icon. Use " +":class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers`" +" to get all allowed custom emoji identifiers." +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:10 of +msgid "Returns information about the created topic as a ForumTopic object." +msgstr "" + +#: aiogram.client.bot.Bot.edit_forum_topic:1 of +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 "" + +#: aiogram.client.bot.Bot.edit_forum_topic:3 of +msgid "Source: https://core.telegram.org/bots/api#editforumtopic" +msgstr "" + +#: aiogram.client.bot.Bot.close_forum_topic:6 +#: aiogram.client.bot.Bot.delete_forum_topic:6 +#: aiogram.client.bot.Bot.edit_forum_topic:6 +#: aiogram.client.bot.Bot.reopen_forum_topic:6 +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:6 of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: aiogram.client.bot.Bot.edit_forum_topic:7 of +msgid "New topic name, 1-128 characters" +msgstr "" + +#: aiogram.client.bot.Bot.edit_forum_topic:8 of +msgid "" +"New unique identifier of the custom emoji shown as the topic icon. Use " +":class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers`" +" to get all allowed custom emoji identifiers" +msgstr "" + +#: aiogram.client.bot.Bot.close_forum_topic:1 of +msgid "" +"Use this method to close an open topic in a forum supergroup chat. The " +"bot must be an administrator in the chat for this to work and must have " +"the *can_manage_topics* administrator rights, unless it is the creator of" +" the topic. Returns :code:`True` on success." +msgstr "" + +#: aiogram.client.bot.Bot.close_forum_topic:3 of +msgid "Source: https://core.telegram.org/bots/api#closeforumtopic" +msgstr "" + +#: aiogram.client.bot.Bot.reopen_forum_topic:1 of +msgid "" +"Use this method to reopen a closed topic in a forum supergroup chat. The " +"bot must be an administrator in the chat for this to work and must have " +"the *can_manage_topics* administrator rights, unless it is the creator of" +" the topic. Returns :code:`True` on success." +msgstr "" + +#: aiogram.client.bot.Bot.reopen_forum_topic:3 of +msgid "Source: https://core.telegram.org/bots/api#reopenforumtopic" +msgstr "" + +#: aiogram.client.bot.Bot.delete_forum_topic:1 of +msgid "" +"Use this method to delete a forum topic along with all its messages in a " +"forum supergroup chat. The bot must be an administrator in the chat for " +"this to work and must have the *can_delete_messages* administrator " +"rights. Returns :code:`True` on success." +msgstr "" + +#: aiogram.client.bot.Bot.delete_forum_topic:3 of +msgid "Source: https://core.telegram.org/bots/api#deleteforumtopic" +msgstr "" + +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:1 of +msgid "" +"Use this method to clear the list of pinned messages in a forum topic. " +"The bot must be an administrator in the chat for this to work and must " +"have the *can_pin_messages* administrator right in the supergroup. " +"Returns :code:`True` on success." +msgstr "" + +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:3 of +msgid "Source: https://core.telegram.org/bots/api#unpinallforumtopicmessages" +msgstr "" + #: aiogram.client.bot.Bot.answer_callback_query:1 of msgid "" "Use this method to send answers to callback queries sent from `inline " -"keyboards `_. The answer will be displayed to the user as a " -"notification at the top of the chat screen or as an alert. On success, " -":code:`True` is returned." +"keyboards `_. " +"The answer will be displayed to the user as a notification at the top of " +"the chat screen or as an alert. On success, :code:`True` is returned." msgstr "" #: aiogram.client.bot.Bot.answer_callback_query:3 of @@ -2339,11 +2515,9 @@ msgstr "" #: aiogram.client.bot.Bot.set_my_commands:1 of msgid "" -"Use this method to change the list of the bot's commands. See " -"`https://core.telegram.org/bots#commands " -"`_`https://core.telegram.org/bots#commands" -" `_ for more details about bot " -"commands. Returns :code:`True` on success." +"Use this method to change the list of the bot's commands. See `this " +"manual `_ for more " +"details about bot commands. Returns :code:`True` on success." msgstr "" #: aiogram.client.bot.Bot.set_my_commands:3 of @@ -2525,8 +2699,7 @@ msgstr "" #: aiogram.client.bot.Bot.edit_message_text:12 of msgid "" "A JSON-serialized object for an `inline keyboard " -"`_." +"`_." msgstr "" #: aiogram.client.bot.Bot.edit_message_caption:1 of @@ -2601,8 +2774,7 @@ msgstr "" #: aiogram.client.bot.Bot.stop_poll:7 of msgid "" "A JSON-serialized object for a new message `inline keyboard " -"`_." +"`_." msgstr "" #: aiogram.client.bot.Bot.stop_poll:9 of @@ -2621,47 +2793,53 @@ msgstr "" #: aiogram.client.bot.Bot.delete_message:5 of msgid "" +"Service messages about a supergroup, channel, or forum topic creation " +"can't be deleted." +msgstr "" + +#: aiogram.client.bot.Bot.delete_message:7 of +msgid "" "A dice message in a private chat can only be deleted if it was sent more " "than 24 hours ago." msgstr "" -#: aiogram.client.bot.Bot.delete_message:7 of +#: aiogram.client.bot.Bot.delete_message:9 of msgid "" "Bots can delete outgoing messages in private chats, groups, and " "supergroups." msgstr "" -#: aiogram.client.bot.Bot.delete_message:9 of +#: aiogram.client.bot.Bot.delete_message:11 of msgid "Bots can delete incoming messages in private chats." msgstr "" -#: aiogram.client.bot.Bot.delete_message:11 of +#: aiogram.client.bot.Bot.delete_message:13 of msgid "" "Bots granted *can_post_messages* permissions can delete outgoing messages" " in channels." msgstr "" -#: aiogram.client.bot.Bot.delete_message:13 of +#: aiogram.client.bot.Bot.delete_message:15 of msgid "" "If the bot is an administrator of a group, it can delete any message " "there." msgstr "" -#: aiogram.client.bot.Bot.delete_message:15 of +#: aiogram.client.bot.Bot.delete_message:17 of msgid "" "If the bot has *can_delete_messages* permission in a supergroup or a " "channel, it can delete any message there." msgstr "" -#: aiogram.client.bot.Bot.delete_message:17 of +#: aiogram.client.bot.Bot.delete_message:19 of msgid "Returns :code:`True` on success." msgstr "" -#: aiogram.client.bot.Bot.delete_message:19 of +#: aiogram.client.bot.Bot.delete_message:21 of msgid "Source: https://core.telegram.org/bots/api#deletemessage" msgstr "" -#: aiogram.client.bot.Bot.delete_message:22 of +#: aiogram.client.bot.Bot.delete_message:24 of msgid "Identifier of the message to delete" msgstr "" @@ -2722,10 +2900,6 @@ msgid "" "can be specified." msgstr "" -#: aiogram.client.bot.Bot.get_custom_emoji_stickers:7 of -msgid "Returns an Array of Sticker objects." -msgstr "" - #: aiogram.client.bot.Bot.upload_sticker_file:1 of msgid "" "Use this method to upload a .PNG file with a sticker for later use in " @@ -2977,10 +3151,10 @@ msgstr "" #: aiogram.client.bot.Bot.answer_inline_query:13 of msgid "" -"`Deep-linking `_ parameter " -"for the /start message sent to the bot when user presses the switch " -"button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, :code:`0-9`, " -":code:`_` and :code:`-` are allowed." +"`Deep-linking `_ " +"parameter for the /start message sent to the bot when user presses the " +"switch button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, " +":code:`0-9`, :code:`_` and :code:`-` are allowed." msgstr "" #: aiogram.client.bot.Bot.answer_web_app_query:1 of @@ -3053,7 +3227,7 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:11 -#: aiogram.client.bot.Bot.send_invoice:12 of +#: aiogram.client.bot.Bot.send_invoice:13 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 " @@ -3065,7 +3239,7 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:12 -#: aiogram.client.bot.Bot.send_invoice:13 of +#: aiogram.client.bot.Bot.send_invoice:14 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 " @@ -3074,7 +3248,7 @@ msgid "" "*max_tip_amount*." msgstr "" -#: aiogram.client.bot.Bot.send_invoice:14 of +#: aiogram.client.bot.Bot.send_invoice:15 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 " @@ -3085,14 +3259,14 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:13 -#: aiogram.client.bot.Bot.send_invoice:15 of +#: aiogram.client.bot.Bot.send_invoice:16 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.client.bot.Bot.send_invoice:16 of +#: aiogram.client.bot.Bot.send_invoice:17 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" @@ -3100,67 +3274,67 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:15 -#: aiogram.client.bot.Bot.send_invoice:17 of +#: aiogram.client.bot.Bot.send_invoice:18 of msgid "Photo size in bytes" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:16 -#: aiogram.client.bot.Bot.send_invoice:18 of +#: aiogram.client.bot.Bot.send_invoice:19 of msgid "Photo width" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:17 -#: aiogram.client.bot.Bot.send_invoice:19 of +#: aiogram.client.bot.Bot.send_invoice:20 of msgid "Photo height" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:18 -#: aiogram.client.bot.Bot.send_invoice:20 of +#: aiogram.client.bot.Bot.send_invoice:21 of msgid "" "Pass :code:`True` if you require the user's full name to complete the " "order" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:19 -#: aiogram.client.bot.Bot.send_invoice:21 of +#: aiogram.client.bot.Bot.send_invoice:22 of msgid "" "Pass :code:`True` if you require the user's phone number to complete the " "order" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:20 -#: aiogram.client.bot.Bot.send_invoice:22 of +#: aiogram.client.bot.Bot.send_invoice:23 of msgid "" "Pass :code:`True` if you require the user's email address to complete the" " order" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:21 -#: aiogram.client.bot.Bot.send_invoice:23 of +#: aiogram.client.bot.Bot.send_invoice:24 of msgid "" "Pass :code:`True` if you require the user's shipping address to complete " "the order" msgstr "" -#: aiogram.client.bot.Bot.send_invoice:24 of +#: aiogram.client.bot.Bot.send_invoice:25 of msgid "Pass :code:`True` if the user's phone number should be sent to provider" msgstr "" -#: aiogram.client.bot.Bot.send_invoice:25 of +#: aiogram.client.bot.Bot.send_invoice:26 of msgid "Pass :code:`True` if the user's email address should be sent to provider" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:24 -#: aiogram.client.bot.Bot.send_invoice:26 of +#: aiogram.client.bot.Bot.send_invoice:27 of msgid "Pass :code:`True` if the final price depends on the shipping method" msgstr "" -#: aiogram.client.bot.Bot.send_invoice:31 of +#: aiogram.client.bot.Bot.send_invoice:32 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." +"`_. If empty, " +"one 'Pay :code:`total price`' button will be shown. If not empty, the " +"first button must be a Pay button." msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:1 of @@ -3317,12 +3491,12 @@ msgid "" " up your games via `@BotFather `_." msgstr "" -#: aiogram.client.bot.Bot.send_game:11 of +#: aiogram.client.bot.Bot.send_game:12 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." +"`_. If empty, " +"one 'Play game_title' button will be shown. If not empty, the first " +"button must launch the game." msgstr "" #: aiogram.client.bot.Bot.set_game_score:1 of @@ -3408,3 +3582,101 @@ msgid "" "their closest neighbors on each side. Will also return the top three " "users if the user and their neighbors are not among them." 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 "" +#~ "A JSON-serialized object for a new" +#~ " `inline keyboard `_." +#~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, " +#~ "`custom reply keyboard " +#~ "`_, instructions " +#~ "to remove keyboard or to force a" +#~ " reply from the user." +#~ msgstr "" + +#~ msgid "New chat title, 1-255 characters" +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to send answers to" +#~ " callback queries sent from `inline " +#~ "keyboards `_. " +#~ "The answer will be displayed to " +#~ "the user as a notification at the" +#~ " top of the chat screen or as" +#~ " an alert. On success, :code:`True` " +#~ "is returned." +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to change the list" +#~ " of the bot's commands. See " +#~ "`https://core.telegram.org/bots#commands " +#~ "`_`https://core.telegram.org/bots#commands" +#~ " `_ for more" +#~ " details about bot commands. Returns " +#~ ":code:`True` on success." +#~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for an " +#~ "`inline keyboard `_." +#~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for a new" +#~ " message `inline keyboard " +#~ "`_." +#~ msgstr "" + +#~ msgid "" +#~ "`Deep-linking `_ parameter for the /start " +#~ "message sent to the bot when user" +#~ " presses the switch button. 1-64 " +#~ "characters, only :code:`A-Z`, :code:`a-z`, " +#~ ":code:`0-9`, :code:`_` and :code:`-` are " +#~ "allowed." +#~ msgstr "" + +#~ 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 "" + +#~ 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 "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/answer_callback_query.po b/docs/locale/en/LC_MESSAGES/api/methods/answer_callback_query.po index c472e8ee..8b8535ed 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/answer_callback_query.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/answer_callback_query.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,10 +28,9 @@ msgstr "" #: aiogram.methods.answer_callback_query.AnswerCallbackQuery:1 of msgid "" "Use this method to send answers to callback queries sent from `inline " -"keyboards `_. The answer will be displayed to the user as a " -"notification at the top of the chat screen or as an alert. On success, " -":code:`True` is returned." +"keyboards `_. " +"The answer will be displayed to the user as a notification at the top of " +"the chat screen or as an alert. On success, :code:`True` is returned." msgstr "" #: aiogram.methods.answer_callback_query.AnswerCallbackQuery:3 of @@ -120,3 +119,15 @@ msgstr "" #: ../../api/methods/answer_callback_query.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "Use this method to send answers to" +#~ " callback queries sent from `inline " +#~ "keyboards `_. " +#~ "The answer will be displayed to " +#~ "the user as a notification at the" +#~ " top of the chat screen or as" +#~ " an alert. On success, :code:`True` " +#~ "is returned." +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/answer_inline_query.po b/docs/locale/en/LC_MESSAGES/api/methods/answer_inline_query.po index 19e24b56..80a46ddd 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/answer_inline_query.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/answer_inline_query.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -85,10 +85,10 @@ msgstr "" #: aiogram.methods.answer_inline_query.AnswerInlineQuery.switch_pm_parameter:1 #: of msgid "" -"`Deep-linking `_ parameter " -"for the /start message sent to the bot when user presses the switch " -"button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, :code:`0-9`, " -":code:`_` and :code:`-` are allowed." +"`Deep-linking `_ " +"parameter for the /start message sent to the bot when user presses the " +"switch button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, " +":code:`0-9`, :code:`_` and :code:`-` are allowed." msgstr "" #: ../../api/methods/answer_inline_query.rst:14 @@ -122,3 +122,13 @@ msgstr "" #: ../../api/methods/answer_inline_query.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "`Deep-linking `_ parameter for the /start " +#~ "message sent to the bot when user" +#~ " presses the switch button. 1-64 " +#~ "characters, only :code:`A-Z`, :code:`a-z`, " +#~ ":code:`0-9`, :code:`_` and :code:`-` are " +#~ "allowed." +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/close_forum_topic.po b/docs/locale/en/LC_MESSAGES/api/methods/close_forum_topic.po new file mode 100644 index 00000000..cf6aa076 --- /dev/null +++ b/docs/locale/en/LC_MESSAGES/api/methods/close_forum_topic.po @@ -0,0 +1,82 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/close_forum_topic.rst:3 +msgid "closeForumTopic" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.close_forum_topic.CloseForumTopic:1 of +msgid "" +"Use this method to close an open topic in a forum supergroup chat. The " +"bot must be an administrator in the chat for this to work and must have " +"the *can_manage_topics* administrator rights, unless it is the creator of" +" the topic. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.close_forum_topic.CloseForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#closeforumtopic" +msgstr "" + +#: ../../docstring aiogram.methods.close_forum_topic.CloseForumTopic.chat_id:1 +#: of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.close_forum_topic.CloseForumTopic.message_thread_id:1 of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:29 +msgid ":code:`from aiogram.methods.close_forum_topic import CloseForumTopic`" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:30 +msgid "alias: :code:`from aiogram.methods import CloseForumTopic`" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:40 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/copy_message.po b/docs/locale/en/LC_MESSAGES/api/methods/copy_message.po index d95766d3..93a1ae1a 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/copy_message.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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 "Message identifier in the chat specified in *from_chat_id*" msgstr "" +#: ../../docstring aiogram.methods.copy_message.CopyMessage.message_thread_id:1 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.copy_message.CopyMessage.caption:1 of msgid "" "New caption for media, 0-1024 characters after entities parsing. If not " @@ -104,10 +111,10 @@ msgstr "" #: ../../docstring aiogram.methods.copy_message.CopyMessage.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/copy_message.rst:14 @@ -141,3 +148,14 @@ msgstr "" #: ../../api/methods/copy_message.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/create_forum_topic.po b/docs/locale/en/LC_MESSAGES/api/methods/create_forum_topic.po new file mode 100644 index 00000000..0baca811 --- /dev/null +++ b/docs/locale/en/LC_MESSAGES/api/methods/create_forum_topic.po @@ -0,0 +1,98 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/create_forum_topic.rst:3 +msgid "createForumTopic" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:5 +msgid "Returns: :obj:`ForumTopic`" +msgstr "" + +#: aiogram.methods.create_forum_topic.CreateForumTopic:1 of +msgid "" +"Use this method to create a topic in a forum supergroup chat. The bot " +"must be an administrator in the chat for this to work and must have the " +"*can_manage_topics* administrator rights. Returns information about the " +"created topic as a :class:`aiogram.types.forum_topic.ForumTopic` object." +msgstr "" + +#: aiogram.methods.create_forum_topic.CreateForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#createforumtopic" +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_forum_topic.CreateForumTopic.chat_id:1 of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring aiogram.methods.create_forum_topic.CreateForumTopic.name:1 +#: of +msgid "Topic name, 1-128 characters" +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_forum_topic.CreateForumTopic.icon_color:1 of +msgid "" +"Color of the topic icon in RGB format. Currently, must be one of " +"0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F" +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_forum_topic.CreateForumTopic.icon_custom_emoji_id:1 +#: of +msgid "" +"Unique identifier of the custom emoji shown as the topic icon. Use " +":class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers`" +" to get all allowed custom emoji identifiers." +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:29 +msgid ":code:`from aiogram.methods.create_forum_topic import CreateForumTopic`" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:30 +msgid "alias: :code:`from aiogram.methods import CreateForumTopic`" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:40 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/delete_forum_topic.po b/docs/locale/en/LC_MESSAGES/api/methods/delete_forum_topic.po new file mode 100644 index 00000000..4d2c0306 --- /dev/null +++ b/docs/locale/en/LC_MESSAGES/api/methods/delete_forum_topic.po @@ -0,0 +1,82 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/delete_forum_topic.rst:3 +msgid "deleteForumTopic" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.delete_forum_topic.DeleteForumTopic:1 of +msgid "" +"Use this method to delete a forum topic along with all its messages in a " +"forum supergroup chat. The bot must be an administrator in the chat for " +"this to work and must have the *can_delete_messages* administrator " +"rights. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.delete_forum_topic.DeleteForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#deleteforumtopic" +msgstr "" + +#: ../../docstring +#: aiogram.methods.delete_forum_topic.DeleteForumTopic.chat_id:1 of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.delete_forum_topic.DeleteForumTopic.message_thread_id:1 of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:29 +msgid ":code:`from aiogram.methods.delete_forum_topic import DeleteForumTopic`" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:30 +msgid "alias: :code:`from aiogram.methods import DeleteForumTopic`" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:40 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/delete_message.po b/docs/locale/en/LC_MESSAGES/api/methods/delete_message.po index 7b24b058..6b3c136b 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/delete_message.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/delete_message.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -37,43 +37,49 @@ msgstr "" #: aiogram.methods.delete_message.DeleteMessage:5 of msgid "" +"Service messages about a supergroup, channel, or forum topic creation " +"can't be deleted." +msgstr "" + +#: aiogram.methods.delete_message.DeleteMessage:7 of +msgid "" "A dice message in a private chat can only be deleted if it was sent more " "than 24 hours ago." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:7 of +#: aiogram.methods.delete_message.DeleteMessage:9 of msgid "" "Bots can delete outgoing messages in private chats, groups, and " "supergroups." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:9 of +#: aiogram.methods.delete_message.DeleteMessage:11 of msgid "Bots can delete incoming messages in private chats." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:11 of +#: aiogram.methods.delete_message.DeleteMessage:13 of msgid "" "Bots granted *can_post_messages* permissions can delete outgoing messages" " in channels." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:13 of +#: aiogram.methods.delete_message.DeleteMessage:15 of msgid "" "If the bot is an administrator of a group, it can delete any message " "there." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:15 of +#: aiogram.methods.delete_message.DeleteMessage:17 of msgid "" "If the bot has *can_delete_messages* permission in a supergroup or a " "channel, it can delete any message there." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:17 of +#: aiogram.methods.delete_message.DeleteMessage:19 of msgid "Returns :code:`True` on success." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:19 of +#: aiogram.methods.delete_message.DeleteMessage:21 of msgid "Source: https://core.telegram.org/bots/api#deletemessage" msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/edit_forum_topic.po b/docs/locale/en/LC_MESSAGES/api/methods/edit_forum_topic.po new file mode 100644 index 00000000..7c2214cb --- /dev/null +++ b/docs/locale/en/LC_MESSAGES/api/methods/edit_forum_topic.po @@ -0,0 +1,93 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/edit_forum_topic.rst:3 +msgid "editForumTopic" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.edit_forum_topic.EditForumTopic:1 of +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 "" + +#: aiogram.methods.edit_forum_topic.EditForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#editforumtopic" +msgstr "" + +#: ../../docstring aiogram.methods.edit_forum_topic.EditForumTopic.chat_id:1 of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.edit_forum_topic.EditForumTopic.message_thread_id:1 of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: ../../docstring aiogram.methods.edit_forum_topic.EditForumTopic.name:1 of +msgid "New topic name, 1-128 characters" +msgstr "" + +#: ../../docstring +#: aiogram.methods.edit_forum_topic.EditForumTopic.icon_custom_emoji_id:1 of +msgid "" +"New unique identifier of the custom emoji shown as the topic icon. Use " +":class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers`" +" to get all allowed custom emoji identifiers" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:29 +msgid ":code:`from aiogram.methods.edit_forum_topic import EditForumTopic`" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:30 +msgid "alias: :code:`from aiogram.methods import EditForumTopic`" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:40 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/edit_message_caption.po b/docs/locale/en/LC_MESSAGES/api/methods/edit_message_caption.po index 89e5884a..65c26608 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/edit_message_caption.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/edit_message_caption.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -85,8 +85,7 @@ msgstr "" #: aiogram.methods.edit_message_caption.EditMessageCaption.reply_markup:1 of msgid "" "A JSON-serialized object for an `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/edit_message_caption.rst:14 @@ -122,3 +121,10 @@ msgstr "" #: ../../api/methods/edit_message_caption.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for an " +#~ "`inline keyboard `_." +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/edit_message_live_location.po b/docs/locale/en/LC_MESSAGES/api/methods/edit_message_live_location.po index bad77c33..846e40a1 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/edit_message_live_location.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/edit_message_live_location.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -104,8 +104,7 @@ msgstr "" #: of msgid "" "A JSON-serialized object for a new `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/edit_message_live_location.rst:14 @@ -117,31 +116,37 @@ msgid "As bot method" msgstr "" #: ../../api/methods/edit_message_live_location.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/edit_message_live_location.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:35 +#: ../../api/methods/edit_message_live_location.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:37 +#: ../../api/methods/edit_message_live_location.rst:29 msgid "" ":code:`from aiogram.methods.edit_message_live_location import " "EditMessageLiveLocation`" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:38 +#: ../../api/methods/edit_message_live_location.rst:30 msgid "alias: :code:`from aiogram.methods import EditMessageLiveLocation`" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:41 +#: ../../api/methods/edit_message_live_location.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:48 +#: ../../api/methods/edit_message_live_location.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for a new" +#~ " `inline keyboard `_." +#~ msgstr "" + +#~ msgid "As message method" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/edit_message_media.po b/docs/locale/en/LC_MESSAGES/api/methods/edit_message_media.po index 59b4019c..b483d389 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/edit_message_media.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/edit_message_media.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -72,8 +72,7 @@ msgstr "" #: aiogram.methods.edit_message_media.EditMessageMedia.reply_markup:1 of msgid "" "A JSON-serialized object for a new `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/edit_message_media.rst:14 @@ -85,29 +84,35 @@ msgid "As bot method" msgstr "" #: ../../api/methods/edit_message_media.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/edit_message_media.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/edit_message_media.rst:35 +#: ../../api/methods/edit_message_media.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/edit_message_media.rst:37 +#: ../../api/methods/edit_message_media.rst:29 msgid ":code:`from aiogram.methods.edit_message_media import EditMessageMedia`" msgstr "" -#: ../../api/methods/edit_message_media.rst:38 +#: ../../api/methods/edit_message_media.rst:30 msgid "alias: :code:`from aiogram.methods import EditMessageMedia`" msgstr "" -#: ../../api/methods/edit_message_media.rst:41 +#: ../../api/methods/edit_message_media.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/edit_message_media.rst:48 +#: ../../api/methods/edit_message_media.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for a new" +#~ " `inline keyboard `_." +#~ msgstr "" + +#~ msgid "As message method" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/edit_message_reply_markup.po b/docs/locale/en/LC_MESSAGES/api/methods/edit_message_reply_markup.po index 8bc17334..5df2f146 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/edit_message_reply_markup.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/edit_message_reply_markup.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -67,8 +67,7 @@ msgstr "" #: of msgid "" "A JSON-serialized object for an `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/edit_message_reply_markup.rst:14 @@ -104,3 +103,10 @@ msgstr "" #: ../../api/methods/edit_message_reply_markup.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for an " +#~ "`inline keyboard `_." +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/edit_message_text.po b/docs/locale/en/LC_MESSAGES/api/methods/edit_message_text.po index 03f646d7..a6c06a59 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/edit_message_text.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -89,8 +89,7 @@ msgstr "" #: aiogram.methods.edit_message_text.EditMessageText.reply_markup:1 of msgid "" "A JSON-serialized object for an `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/edit_message_text.rst:14 @@ -124,3 +123,10 @@ msgstr "" #: ../../api/methods/edit_message_text.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for an " +#~ "`inline keyboard `_." +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/forward_message.po b/docs/locale/en/LC_MESSAGES/api/methods/forward_message.po index b8c25db1..db6dd825 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/forward_message.po +++ b/docs/locale/en/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: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+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 @@ msgstr "" msgid "Message identifier in the chat specified in *from_chat_id*" msgstr "" +#: ../../docstring +#: aiogram.methods.forward_message.ForwardMessage.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring #: aiogram.methods.forward_message.ForwardMessage.disable_notification:1 of msgid "" @@ -75,29 +82,28 @@ msgid "As bot method" msgstr "" #: ../../api/methods/forward_message.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/forward_message.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/forward_message.rst:35 +#: ../../api/methods/forward_message.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/forward_message.rst:37 +#: ../../api/methods/forward_message.rst:29 msgid ":code:`from aiogram.methods.forward_message import ForwardMessage`" msgstr "" -#: ../../api/methods/forward_message.rst:38 +#: ../../api/methods/forward_message.rst:30 msgid "alias: :code:`from aiogram.methods import ForwardMessage`" msgstr "" -#: ../../api/methods/forward_message.rst:41 +#: ../../api/methods/forward_message.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/forward_message.rst:48 +#: ../../api/methods/forward_message.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "As message method" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/get_chat_menu_button.po b/docs/locale/en/LC_MESSAGES/api/methods/get_chat_menu_button.po index 98ca25b5..0f5e608b 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/get_chat_menu_button.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/get_chat_menu_button.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,7 +22,9 @@ msgid "getChatMenuButton" msgstr "" #: ../../api/methods/get_chat_menu_button.rst:5 -msgid "Returns: :obj:`MenuButton`" +msgid "" +"Returns: :obj:`Union[MenuButtonDefault, MenuButtonWebApp, " +"MenuButtonCommands]`" msgstr "" #: aiogram.methods.get_chat_menu_button.GetChatMenuButton:1 of @@ -70,3 +72,6 @@ msgstr "" #: ../../api/methods/get_chat_menu_button.rst:33 msgid "With specific bot" msgstr "" + +#~ msgid "Returns: :obj:`MenuButton`" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/get_forum_topic_icon_stickers.po b/docs/locale/en/LC_MESSAGES/api/methods/get_forum_topic_icon_stickers.po new file mode 100644 index 00000000..7719981e --- /dev/null +++ b/docs/locale/en/LC_MESSAGES/api/methods/get_forum_topic_icon_stickers.po @@ -0,0 +1,67 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../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]`" +msgstr "" + +#: aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers:1 of +msgid "" +"Use this method to get custom emoji stickers, which can be used as a " +"forum topic icon by any user. Requires no parameters. Returns an Array of" +" :class:`aiogram.types.sticker.Sticker` objects." +msgstr "" + +#: aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers:3 of +msgid "Source: https://core.telegram.org/bots/api#getforumtopiciconstickers" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:29 +msgid "" +":code:`from aiogram.methods.get_forum_topic_icon_stickers import " +"GetForumTopicIconStickers`" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:30 +msgid "alias: :code:`from aiogram.methods import GetForumTopicIconStickers`" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:33 +msgid "With specific bot" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/pin_chat_message.po b/docs/locale/en/LC_MESSAGES/api/methods/pin_chat_message.po index ffd72a51..5e2232a3 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/pin_chat_message.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/pin_chat_message.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -66,29 +66,28 @@ msgid "As bot method" msgstr "" #: ../../api/methods/pin_chat_message.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/pin_chat_message.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/pin_chat_message.rst:35 +#: ../../api/methods/pin_chat_message.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/pin_chat_message.rst:37 +#: ../../api/methods/pin_chat_message.rst:29 msgid ":code:`from aiogram.methods.pin_chat_message import PinChatMessage`" msgstr "" -#: ../../api/methods/pin_chat_message.rst:38 +#: ../../api/methods/pin_chat_message.rst:30 msgid "alias: :code:`from aiogram.methods import PinChatMessage`" msgstr "" -#: ../../api/methods/pin_chat_message.rst:41 +#: ../../api/methods/pin_chat_message.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/pin_chat_message.rst:48 +#: ../../api/methods/pin_chat_message.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "As message method" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/promote_chat_member.po b/docs/locale/en/LC_MESSAGES/api/methods/promote_chat_member.po index b0ab9aa6..202cbbe4 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/promote_chat_member.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -124,6 +124,13 @@ msgstr "" msgid "Pass :code:`True` if the administrator can pin messages, 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" +msgstr "" + #: ../../api/methods/promote_chat_member.rst:14 msgid "Usage" msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/reopen_forum_topic.po b/docs/locale/en/LC_MESSAGES/api/methods/reopen_forum_topic.po new file mode 100644 index 00000000..09b013b4 --- /dev/null +++ b/docs/locale/en/LC_MESSAGES/api/methods/reopen_forum_topic.po @@ -0,0 +1,82 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/reopen_forum_topic.rst:3 +msgid "reopenForumTopic" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.reopen_forum_topic.ReopenForumTopic:1 of +msgid "" +"Use this method to reopen a closed topic in a forum supergroup chat. The " +"bot must be an administrator in the chat for this to work and must have " +"the *can_manage_topics* administrator rights, unless it is the creator of" +" the topic. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.reopen_forum_topic.ReopenForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#reopenforumtopic" +msgstr "" + +#: ../../docstring +#: aiogram.methods.reopen_forum_topic.ReopenForumTopic.chat_id:1 of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.reopen_forum_topic.ReopenForumTopic.message_thread_id:1 of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:29 +msgid ":code:`from aiogram.methods.reopen_forum_topic import ReopenForumTopic`" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:30 +msgid "alias: :code:`from aiogram.methods import ReopenForumTopic`" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:40 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/send_animation.po b/docs/locale/en/LC_MESSAGES/api/methods/send_animation.po index 8e8750ee..2aefc24d 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_animation.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_animation.SendAnimation.duration:1 of msgid "Duration of sent animation in seconds" msgstr "" @@ -126,10 +133,10 @@ msgstr "" #: 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_animation.rst:14 @@ -163,3 +170,14 @@ msgstr "" #: ../../api/methods/send_animation.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_audio.po b/docs/locale/en/LC_MESSAGES/api/methods/send_audio.po index db40e78a..b423d293 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_audio.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -54,6 +54,12 @@ msgid "" "Files » `" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_audio.SendAudio.caption:1 of msgid "Audio caption, 0-1024 characters after entities parsing" msgstr "" @@ -121,10 +127,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_audio.SendAudio.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_audio.rst:14 @@ -158,3 +164,14 @@ msgstr "" #: ../../api/methods/send_audio.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_contact.po b/docs/locale/en/LC_MESSAGES/api/methods/send_contact.po index e4d4f466..a6bb3db8 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_contact.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_contact.SendContact.last_name:1 of msgid "Contact's last name" msgstr "" @@ -86,10 +93,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_contact.SendContact.reply_markup:1 of msgid "" "Additional interface options. A JSON-serialized object for an `inline " -"keyboard `_, `custom reply keyboard " -"`_, instructions to remove " -"keyboard or to force a reply from the user." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_contact.rst:14 @@ -123,3 +130,14 @@ msgstr "" #: ../../api/methods/send_contact.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, " +#~ "`custom reply keyboard " +#~ "`_, instructions " +#~ "to remove keyboard or to force a" +#~ " reply from the user." +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/send_dice.po b/docs/locale/en/LC_MESSAGES/api/methods/send_dice.po index cf69a15b..19cf0438 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_dice.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -42,6 +42,12 @@ msgid "" "(in the format :code:`@channelusername`)" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_dice.SendDice.emoji:1 of msgid "" "Emoji on which the dice throw animation is based. Currently, must be one " @@ -74,10 +80,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_dice.SendDice.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_dice.rst:14 @@ -111,3 +117,14 @@ msgstr "" #: ../../api/methods/send_dice.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_document.po b/docs/locale/en/LC_MESSAGES/api/methods/send_document.po index a9b778d9..334ffbd6 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_document.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_document.SendDocument.thumb:1 of msgid "" "Thumbnail of the file sent; can be ignored if thumbnail generation for " @@ -118,10 +125,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_document.SendDocument.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_document.rst:14 @@ -155,3 +162,14 @@ msgstr "" #: ../../api/methods/send_document.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_game.po b/docs/locale/en/LC_MESSAGES/api/methods/send_game.po index 8fc35ef1..63aa45a7 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_game.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -45,6 +45,12 @@ msgid "" " up your games via `@BotFather `_." 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_game.SendGame.disable_notification:1 of msgid "" "Sends the message `silently `_. If empty, one 'Play game_title' button will be shown. If not" -" empty, the first button must launch the game." +"`_. If empty, " +"one 'Play game_title' button will be shown. If not empty, the first " +"button must launch the game." msgstr "" #: ../../api/methods/send_game.rst:14 @@ -105,3 +111,13 @@ msgstr "" #: ../../api/methods/send_game.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ 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 "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/send_invoice.po b/docs/locale/en/LC_MESSAGES/api/methods/send_invoice.po index b488bbb9..9817cdac 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_invoice.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -73,6 +73,13 @@ msgid "" "price, tax, discount, delivery cost, delivery tax, bonus, etc.)" msgstr "" +#: ../../docstring aiogram.methods.send_invoice.SendInvoice.message_thread_id:1 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +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 " @@ -198,9 +205,9 @@ msgstr "" #: ../../docstring aiogram.methods.send_invoice.SendInvoice.reply_markup:1 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." +"`_. If empty, " +"one 'Pay :code:`total price`' button will be shown. If not empty, the " +"first button must be a Pay button." msgstr "" #: ../../api/methods/send_invoice.rst:14 @@ -234,3 +241,13 @@ msgstr "" #: ../../api/methods/send_invoice.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ 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 "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/send_location.po b/docs/locale/en/LC_MESSAGES/api/methods/send_location.po index 2ea95445..864c89aa 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_location.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring #: aiogram.methods.send_location.SendLocation.horizontal_accuracy:1 of msgid "The radius of uncertainty for the location, measured in meters; 0-1500" @@ -102,10 +109,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_location.SendLocation.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_location.rst:14 @@ -139,3 +146,14 @@ msgstr "" #: ../../api/methods/send_location.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_media_group.po b/docs/locale/en/LC_MESSAGES/api/methods/send_media_group.po index af76b0d3..a3259557 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_media_group.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,13 @@ msgid "" " items" msgstr "" +#: ../../docstring +#: aiogram.methods.send_media_group.SendMediaGroup.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring #: aiogram.methods.send_media_group.SendMediaGroup.disable_notification:1 of msgid "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/send_message.po b/docs/locale/en/LC_MESSAGES/api/methods/send_message.po index 637b3905..63c7ac2c 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_message.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_message.SendMessage.parse_mode:1 of msgid "" "Mode for parsing entities in the message text. See `formatting options " @@ -90,10 +97,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_message.SendMessage.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_message.rst:14 @@ -127,3 +134,14 @@ msgstr "" #: ../../api/methods/send_message.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_photo.po b/docs/locale/en/LC_MESSAGES/api/methods/send_photo.po index 38c319c4..6c58b959 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_photo.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,6 +52,12 @@ msgid "" "files>`" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_photo.SendPhoto.caption:1 of msgid "" "Photo caption (may also be used when resending photos by *file_id*), " @@ -97,10 +103,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_photo.SendPhoto.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_photo.rst:14 @@ -134,3 +140,14 @@ msgstr "" #: ../../api/methods/send_photo.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_poll.po b/docs/locale/en/LC_MESSAGES/api/methods/send_poll.po index 1fd71359..9b2d23c2 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_poll.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -51,6 +51,12 @@ msgid "" "each" msgstr "" +#: ../../docstring aiogram.methods.send_poll.SendPoll.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +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 "" @@ -136,10 +142,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_poll.SendPoll.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_poll.rst:14 @@ -173,3 +179,14 @@ msgstr "" #: ../../api/methods/send_poll.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_sticker.po b/docs/locale/en/LC_MESSAGES/api/methods/send_sticker.po index 67fbaa64..c06c0d6e 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_sticker.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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 "" "files>`" msgstr "" +#: ../../docstring aiogram.methods.send_sticker.SendSticker.message_thread_id:1 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring #: aiogram.methods.send_sticker.SendSticker.disable_notification:1 of msgid "" @@ -80,10 +87,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_sticker.SendSticker.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_sticker.rst:14 @@ -117,3 +124,14 @@ msgstr "" #: ../../api/methods/send_sticker.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_venue.po b/docs/locale/en/LC_MESSAGES/api/methods/send_venue.po index 516326f0..fe7d74d9 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_venue.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -57,6 +57,12 @@ msgstr "" msgid "Address of the venue" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_venue.SendVenue.foursquare_id:1 of msgid "Foursquare identifier of the venue" msgstr "" @@ -104,10 +110,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_venue.SendVenue.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_venue.rst:14 @@ -141,3 +147,14 @@ msgstr "" #: ../../api/methods/send_venue.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_video.po b/docs/locale/en/LC_MESSAGES/api/methods/send_video.po index d25737fa..c57d36ce 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_video.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -54,6 +54,12 @@ msgid "" "files>`" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_video.SendVideo.duration:1 of msgid "Duration of sent video in seconds" msgstr "" @@ -127,10 +133,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_video.SendVideo.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_video.rst:14 @@ -164,3 +170,14 @@ msgstr "" #: ../../api/methods/send_video.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_video_note.po b/docs/locale/en/LC_MESSAGES/api/methods/send_video_note.po index 30d142cb..ee7920ea 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_video_note.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_video_note.SendVideoNote.duration:1 of msgid "Duration of sent video in seconds" msgstr "" @@ -101,10 +108,10 @@ msgstr "" #: 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_video_note.rst:14 @@ -138,3 +145,14 @@ msgstr "" #: ../../api/methods/send_video_note.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/send_voice.po b/docs/locale/en/LC_MESSAGES/api/methods/send_voice.po index eaecc63f..3e572b26 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/send_voice.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -56,6 +56,12 @@ msgid "" "files>`" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_voice.SendVoice.caption:1 of msgid "Voice message caption, 0-1024 characters after entities parsing" msgstr "" @@ -103,10 +109,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_voice.SendVoice.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_voice.rst:14 @@ -140,3 +146,14 @@ msgstr "" #: ../../api/methods/send_voice.rst:40 msgid "As reply into Webhook in handler" 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/en/LC_MESSAGES/api/methods/set_chat_title.po b/docs/locale/en/LC_MESSAGES/api/methods/set_chat_title.po index f9baaa4c..90e78ed6 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/set_chat_title.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/set_chat_title.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -44,7 +44,7 @@ msgid "" msgstr "" #: ../../docstring aiogram.methods.set_chat_title.SetChatTitle.title:1 of -msgid "New chat title, 1-255 characters" +msgid "New chat title, 1-128 characters" msgstr "" #: ../../api/methods/set_chat_title.rst:14 @@ -78,3 +78,6 @@ msgstr "" #: ../../api/methods/set_chat_title.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "New chat title, 1-255 characters" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/set_my_commands.po b/docs/locale/en/LC_MESSAGES/api/methods/set_my_commands.po index db149c21..8a9400fb 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/set_my_commands.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/set_my_commands.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -27,11 +27,9 @@ msgstr "" #: aiogram.methods.set_my_commands.SetMyCommands:1 of msgid "" -"Use this method to change the list of the bot's commands. See " -"`https://core.telegram.org/bots#commands " -"`_`https://core.telegram.org/bots#commands" -" `_ for more details about bot " -"commands. Returns :code:`True` on success." +"Use this method to change the list of the bot's commands. See `this " +"manual `_ for more " +"details about bot commands. Returns :code:`True` on success." msgstr "" #: aiogram.methods.set_my_commands.SetMyCommands:3 of @@ -90,3 +88,13 @@ msgstr "" #: ../../api/methods/set_my_commands.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "Use this method to change the list" +#~ " of the bot's commands. See " +#~ "`https://core.telegram.org/bots#commands " +#~ "`_`https://core.telegram.org/bots#commands" +#~ " `_ for more" +#~ " details about bot commands. Returns " +#~ ":code:`True` on success." +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/stop_message_live_location.po b/docs/locale/en/LC_MESSAGES/api/methods/stop_message_live_location.po index 54667c46..56765160 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/stop_message_live_location.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/stop_message_live_location.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -67,8 +67,7 @@ msgstr "" #: of msgid "" "A JSON-serialized object for a new `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/stop_message_live_location.rst:14 @@ -80,31 +79,37 @@ msgid "As bot method" msgstr "" #: ../../api/methods/stop_message_live_location.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/stop_message_live_location.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:35 +#: ../../api/methods/stop_message_live_location.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:37 +#: ../../api/methods/stop_message_live_location.rst:29 msgid "" ":code:`from aiogram.methods.stop_message_live_location import " "StopMessageLiveLocation`" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:38 +#: ../../api/methods/stop_message_live_location.rst:30 msgid "alias: :code:`from aiogram.methods import StopMessageLiveLocation`" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:41 +#: ../../api/methods/stop_message_live_location.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:48 +#: ../../api/methods/stop_message_live_location.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for a new" +#~ " `inline keyboard `_." +#~ msgstr "" + +#~ msgid "As message method" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/stop_poll.po b/docs/locale/en/LC_MESSAGES/api/methods/stop_poll.po index f6faf6bb..269a1e06 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/stop_poll.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/stop_poll.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -48,8 +48,7 @@ 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 @@ -83,3 +82,10 @@ msgstr "" #: ../../api/methods/stop_poll.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for a new" +#~ " message `inline keyboard " +#~ "`_." +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/unpin_all_forum_topic_messages.po b/docs/locale/en/LC_MESSAGES/api/methods/unpin_all_forum_topic_messages.po new file mode 100644 index 00000000..bbc5d5ac --- /dev/null +++ b/docs/locale/en/LC_MESSAGES/api/methods/unpin_all_forum_topic_messages.po @@ -0,0 +1,88 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:3 +msgid "unpinAllForumTopicMessages" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.unpin_all_forum_topic_messages.UnpinAllForumTopicMessages:1 +#: of +msgid "" +"Use this method to clear the list of pinned messages in a forum topic. " +"The bot must be an administrator in the chat for this to work and must " +"have the *can_pin_messages* administrator right in the supergroup. " +"Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.unpin_all_forum_topic_messages.UnpinAllForumTopicMessages:3 +#: of +msgid "Source: https://core.telegram.org/bots/api#unpinallforumtopicmessages" +msgstr "" + +#: ../../docstring +#: aiogram.methods.unpin_all_forum_topic_messages.UnpinAllForumTopicMessages.chat_id:1 +#: of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.unpin_all_forum_topic_messages.UnpinAllForumTopicMessages.message_thread_id:1 +#: of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:29 +msgid "" +":code:`from aiogram.methods.unpin_all_forum_topic_messages import " +"UnpinAllForumTopicMessages`" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:30 +msgid "alias: :code:`from aiogram.methods import UnpinAllForumTopicMessages`" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:40 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/methods/unpin_chat_message.po b/docs/locale/en/LC_MESSAGES/api/methods/unpin_chat_message.po index bbe0327b..5f08d054 100644 --- a/docs/locale/en/LC_MESSAGES/api/methods/unpin_chat_message.po +++ b/docs/locale/en/LC_MESSAGES/api/methods/unpin_chat_message.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -62,29 +62,28 @@ msgid "As bot method" msgstr "" #: ../../api/methods/unpin_chat_message.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/unpin_chat_message.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:35 +#: ../../api/methods/unpin_chat_message.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:37 +#: ../../api/methods/unpin_chat_message.rst:29 msgid ":code:`from aiogram.methods.unpin_chat_message import UnpinChatMessage`" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:38 +#: ../../api/methods/unpin_chat_message.rst:30 msgid "alias: :code:`from aiogram.methods import UnpinChatMessage`" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:41 +#: ../../api/methods/unpin_chat_message.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:48 +#: ../../api/methods/unpin_chat_message.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "As message method" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/callback_query.po b/docs/locale/en/LC_MESSAGES/api/types/callback_query.po index 36cc74f1..e70f9d02 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/callback_query.po +++ b/docs/locale/en/LC_MESSAGES/api/types/callback_query.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -24,13 +24,13 @@ msgstr "" #: aiogram.types.callback_query.CallbackQuery:1 of msgid "" "This object represents an incoming callback query from a callback button " -"in an `inline keyboard `_. If the button that originated the query was " -"attached to a message sent by the bot, the field *message* will be " -"present. If the button was attached to a message sent via the bot (in " -"`inline mode `_), the " -"field *inline_message_id* will be present. Exactly one of the fields " -"*data* or *game_short_name* will be present." +"in an `inline keyboard `_. If the button that originated the query was attached to a " +"message sent by the bot, the field *message* will be present. If the " +"button was attached to a message sent via the bot (in `inline mode " +"`_), the field " +"*inline_message_id* will be present. Exactly one of the fields *data* or " +"*game_short_name* will be present." msgstr "" #: aiogram.types.callback_query.CallbackQuery:3 of @@ -104,3 +104,21 @@ msgstr "" #: aiogram.types.callback_query.CallbackQuery.answer of msgid "Returns" msgstr "" + +#~ msgid "" +#~ "This object represents an incoming " +#~ "callback query from a callback button" +#~ " in an `inline keyboard " +#~ "`_. If the " +#~ "button that originated the query was " +#~ "attached to a message sent by the" +#~ " bot, the field *message* will be " +#~ "present. If the button was attached " +#~ "to a message sent via the bot " +#~ "(in `inline mode `_), the field *inline_message_id*" +#~ " will be present. Exactly one of " +#~ "the fields *data* or *game_short_name* " +#~ "will be present." +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/chat.po b/docs/locale/en/LC_MESSAGES/api/types/chat.po index fc8c1538..882d5c30 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/chat.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -60,12 +60,34 @@ msgstr "" msgid "*Optional*. Last name of the other party in a private chat" msgstr "" +#: ../../docstring aiogram.types.chat.Chat.is_forum:1 of +msgid "" +"*Optional*. :code:`True`, if the supergroup chat is a forum (has `topics " +"`_ enabled)" +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.active_usernames:1 of +msgid "" +"*Optional*. If non-empty, the list of all `active chat usernames " +"`_; for private chats, supergroups and channels. " +"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 emoji status of the other party in" +" a private chat. Returned only in " +":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 " diff --git a/docs/locale/en/LC_MESSAGES/api/types/chat_administrator_rights.po b/docs/locale/en/LC_MESSAGES/api/types/chat_administrator_rights.po index bb9f8d08..e792b43d 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/chat_administrator_rights.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -110,3 +110,11 @@ 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_manage_topics:1 +#: of +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/en/LC_MESSAGES/api/types/chat_member.po b/docs/locale/en/LC_MESSAGES/api/types/chat_member.po index 767dcbed..2ac6bbc4 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/chat_member.po +++ b/docs/locale/en/LC_MESSAGES/api/types/chat_member.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -143,6 +143,12 @@ msgid "" "and supergroups only" msgstr "" +#: ../../docstring aiogram.types.chat_member.ChatMember.can_manage_topics:1 of +msgid "" +"*Optional*. :code:`True`, if the user is allowed to create, rename, " +"close, and reopen forum topics; supergroups only" +msgstr "" + #: ../../docstring aiogram.types.chat_member.ChatMember.is_member:1 of msgid "" "*Optional*. :code:`True`, if the user is a member of the chat at the " diff --git a/docs/locale/en/LC_MESSAGES/api/types/chat_member_administrator.po b/docs/locale/en/LC_MESSAGES/api/types/chat_member_administrator.po index 51a3d2db..0045c783 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/chat_member_administrator.po +++ b/docs/locale/en/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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -132,6 +132,14 @@ msgid "" "and supergroups only" msgstr "" +#: ../../docstring +#: aiogram.types.chat_member_administrator.ChatMemberAdministrator.can_manage_topics:1 +#: of +msgid "" +"*Optional*. :code:`True`, if the user is allowed to create, rename, " +"close, and reopen forum topics; supergroups only" +msgstr "" + #: ../../docstring #: aiogram.types.chat_member_administrator.ChatMemberAdministrator.custom_title:1 #: of diff --git a/docs/locale/en/LC_MESSAGES/api/types/chat_member_restricted.po b/docs/locale/en/LC_MESSAGES/api/types/chat_member_restricted.po index 56bd594f..79784f6d 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/chat_member_restricted.po +++ b/docs/locale/en/LC_MESSAGES/api/types/chat_member_restricted.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -69,6 +69,12 @@ msgstr "" msgid ":code:`True`, if the user is allowed to pin messages" msgstr "" +#: ../../docstring +#: aiogram.types.chat_member_restricted.ChatMemberRestricted.can_manage_topics:1 +#: of +msgid ":code:`True`, if the user is allowed to create forum topics" +msgstr "" + #: ../../docstring #: aiogram.types.chat_member_restricted.ChatMemberRestricted.can_send_messages:1 #: of diff --git a/docs/locale/en/LC_MESSAGES/api/types/chat_permissions.po b/docs/locale/en/LC_MESSAGES/api/types/chat_permissions.po index be7fb2f1..d4bb052c 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/chat_permissions.po +++ b/docs/locale/en/LC_MESSAGES/api/types/chat_permissions.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -88,3 +88,10 @@ msgid "" "*Optional*. :code:`True`, if the user is allowed to pin messages. Ignored" " in public supergroups" msgstr "" + +#: ../../docstring +#: aiogram.types.chat_permissions.ChatPermissions.can_manage_topics:1 of +msgid "" +"*Optional*. :code:`True`, if the user is allowed to create forum topics. " +"If omitted defaults to the value of can_pin_messages" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/force_reply.po b/docs/locale/en/LC_MESSAGES/api/types/force_reply.po index b123d694..6e408b99 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/force_reply.po +++ b/docs/locale/en/LC_MESSAGES/api/types/force_reply.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -27,7 +27,7 @@ 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 `_." msgstr "" #: aiogram.types.force_reply.ForceReply:3 of @@ -83,3 +83,16 @@ msgid "" ":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 "" + +#~ 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 "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/forum_topic.po b/docs/locale/en/LC_MESSAGES/api/types/forum_topic.po new file mode 100644 index 00000000..c59c0698 --- /dev/null +++ b/docs/locale/en/LC_MESSAGES/api/types/forum_topic.po @@ -0,0 +1,47 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/types/forum_topic.rst:3 +msgid "ForumTopic" +msgstr "" + +#: aiogram.types.forum_topic.ForumTopic:1 of +msgid "This object represents a forum topic." +msgstr "" + +#: aiogram.types.forum_topic.ForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#forumtopic" +msgstr "" + +#: ../../docstring aiogram.types.forum_topic.ForumTopic.message_thread_id:1 of +msgid "Unique identifier of the forum topic" +msgstr "" + +#: ../../docstring aiogram.types.forum_topic.ForumTopic.name:1 of +msgid "Name of the topic" +msgstr "" + +#: ../../docstring aiogram.types.forum_topic.ForumTopic.icon_color:1 of +msgid "Color of the topic icon in RGB format" +msgstr "" + +#: ../../docstring aiogram.types.forum_topic.ForumTopic.icon_custom_emoji_id:1 +#: of +msgid "*Optional*. Unique identifier of the custom emoji shown as the topic icon" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/forum_topic_closed.po b/docs/locale/en/LC_MESSAGES/api/types/forum_topic_closed.po new file mode 100644 index 00000000..9fadeb3d --- /dev/null +++ b/docs/locale/en/LC_MESSAGES/api/types/forum_topic_closed.po @@ -0,0 +1,32 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/types/forum_topic_closed.rst:3 +msgid "ForumTopicClosed" +msgstr "" + +#: aiogram.types.forum_topic_closed.ForumTopicClosed:1 of +msgid "" +"This object represents a service message about a forum topic closed in " +"the chat. Currently holds no information." +msgstr "" + +#: aiogram.types.forum_topic_closed.ForumTopicClosed:3 of +msgid "Source: https://core.telegram.org/bots/api#forumtopicclosed" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/forum_topic_created.po b/docs/locale/en/LC_MESSAGES/api/types/forum_topic_created.po new file mode 100644 index 00000000..59855d81 --- /dev/null +++ b/docs/locale/en/LC_MESSAGES/api/types/forum_topic_created.po @@ -0,0 +1,48 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/types/forum_topic_created.rst:3 +msgid "ForumTopicCreated" +msgstr "" + +#: aiogram.types.forum_topic_created.ForumTopicCreated:1 of +msgid "" +"This object represents a service message about a new forum topic created " +"in the chat." +msgstr "" + +#: aiogram.types.forum_topic_created.ForumTopicCreated:3 of +msgid "Source: https://core.telegram.org/bots/api#forumtopiccreated" +msgstr "" + +#: ../../docstring aiogram.types.forum_topic_created.ForumTopicCreated.name:1 +#: of +msgid "Name of the topic" +msgstr "" + +#: ../../docstring +#: aiogram.types.forum_topic_created.ForumTopicCreated.icon_color:1 of +msgid "Color of the topic icon in RGB format" +msgstr "" + +#: ../../docstring +#: aiogram.types.forum_topic_created.ForumTopicCreated.icon_custom_emoji_id:1 +#: of +msgid "*Optional*. Unique identifier of the custom emoji shown as the topic icon" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/forum_topic_reopened.po b/docs/locale/en/LC_MESSAGES/api/types/forum_topic_reopened.po new file mode 100644 index 00000000..0d202ed8 --- /dev/null +++ b/docs/locale/en/LC_MESSAGES/api/types/forum_topic_reopened.po @@ -0,0 +1,32 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/types/forum_topic_reopened.rst:3 +msgid "ForumTopicReopened" +msgstr "" + +#: aiogram.types.forum_topic_reopened.ForumTopicReopened:1 of +msgid "" +"This object represents a service message about a forum topic reopened in " +"the chat. Currently holds no information." +msgstr "" + +#: aiogram.types.forum_topic_reopened.ForumTopicReopened:3 of +msgid "Source: https://core.telegram.org/bots/api#forumtopicreopened" +msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_keyboard_markup.po b/docs/locale/en/LC_MESSAGES/api/types/inline_keyboard_markup.po index b049e43e..b516034d 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_keyboard_markup.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_keyboard_markup.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -24,10 +24,10 @@ msgstr "" #: aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup:1 of 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*." +"`_ 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 "" #: aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup:4 of @@ -42,3 +42,15 @@ msgid "" ":class:`aiogram.types.inline_keyboard_button.InlineKeyboardButton` " "objects" 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/en/LC_MESSAGES/api/types/inline_query_result_article.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_article.po index d761d642..6615989c 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_article.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_article.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -55,8 +55,8 @@ msgstr "" #: aiogram.types.inline_query_result_article.InlineQueryResultArticle.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -95,3 +95,10 @@ msgstr "" #: of msgid "*Optional*. Thumbnail height" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_audio.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_audio.po index 3dfddc39..9ee8ea87 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_audio.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_audio.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -93,8 +93,8 @@ msgstr "" #: aiogram.types.inline_query_result_audio.InlineQueryResultAudio.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -102,3 +102,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the audio" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_audio.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_audio.po index 2cfb88da..5accdb13 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_audio.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_audio.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -81,8 +81,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_audio.InlineQueryResultCachedAudio.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -90,3 +90,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the audio" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_document.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_document.po index 31f3de9b..eb805a02 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_document.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_document.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -96,8 +96,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_document.InlineQueryResultCachedDocument.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -105,3 +105,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the file" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_gif.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_gif.po index edf9387d..ffc4e8f0 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_gif.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_gif.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -86,8 +86,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_gif.InlineQueryResultCachedGif.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -95,3 +95,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the GIF animation" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_mpeg4_gif.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_mpeg4_gif.po index 0b7bab94..96885946 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_mpeg4_gif.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_mpeg4_gif.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -89,8 +89,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_mpeg4_gif.InlineQueryResultCachedMpeg4Gif.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -100,3 +100,10 @@ msgid "" "*Optional*. Content of the message to be sent instead of the video " "animation" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_photo.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_photo.po index 7c02f1c9..965f8ad7 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_photo.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_photo.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -94,8 +94,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_photo.InlineQueryResultCachedPhoto.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -103,3 +103,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the photo" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_sticker.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_sticker.po index 7ff93dc4..dc79cbca 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_sticker.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_sticker.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -60,8 +60,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_sticker.InlineQueryResultCachedSticker.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -69,3 +69,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the sticker" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_video.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_video.po index 3d7c9d43..3836cf30 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_video.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_video.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -94,8 +94,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_video.InlineQueryResultCachedVideo.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -103,3 +103,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the video" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_voice.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_voice.po index 80065211..d2bb9f10 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_voice.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_cached_voice.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -88,8 +88,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_voice.InlineQueryResultCachedVoice.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -97,3 +97,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the voice message" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_contact.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_contact.po index a2eb800b..d9620a12 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_contact.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_contact.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -74,8 +74,8 @@ msgstr "" #: aiogram.types.inline_query_result_contact.InlineQueryResultContact.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -101,3 +101,10 @@ msgstr "" #: of msgid "*Optional*. Thumbnail height" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_game.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_game.po index 0ea07107..a82f430f 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_game.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_game.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+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 @@ msgstr "" #: aiogram.types.inline_query_result_game.InlineQueryResultGame.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_gif.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_gif.po index 77647404..0e298f7f 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_gif.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_gif.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -109,8 +109,8 @@ msgstr "" #: ../../docstring #: aiogram.types.inline_query_result_gif.InlineQueryResultGif.reply_markup:1 of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -118,3 +118,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the GIF animation" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_location.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_location.po index e941651d..aee2b822 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_location.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_location.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -100,8 +100,8 @@ msgstr "" #: aiogram.types.inline_query_result_location.InlineQueryResultLocation.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -127,3 +127,10 @@ msgstr "" #: of msgid "*Optional*. Thumbnail height" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_mpeg4_gif.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_mpeg4_gif.po index 91b260dc..56c4da50 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_mpeg4_gif.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_mpeg4_gif.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -120,8 +120,8 @@ msgstr "" #: aiogram.types.inline_query_result_mpeg4_gif.InlineQueryResultMpeg4Gif.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -131,3 +131,10 @@ msgid "" "*Optional*. Content of the message to be sent instead of the video " "animation" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_photo.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_photo.po index 18beec63..6d189167 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_photo.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_photo.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -108,8 +108,8 @@ msgstr "" #: aiogram.types.inline_query_result_photo.InlineQueryResultPhoto.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -117,3 +117,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the photo" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_venue.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_venue.po index 2a466504..2867f687 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_venue.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_venue.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -98,8 +98,8 @@ msgstr "" #: aiogram.types.inline_query_result_venue.InlineQueryResultVenue.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -125,3 +125,10 @@ msgstr "" #: of msgid "*Optional*. Thumbnail height" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_video.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_video.po index bbfd5ddd..379ba6ed 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_video.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_video.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -124,8 +124,8 @@ msgstr "" #: aiogram.types.inline_query_result_video.InlineQueryResultVideo.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -136,3 +136,10 @@ msgid "" "field is **required** if InlineQueryResultVideo is used to send an HTML-" "page as a result (e.g., a YouTube video)." msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_voice.po b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_voice.po index 3c32226e..4f87318b 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_voice.po +++ b/docs/locale/en/LC_MESSAGES/api/types/inline_query_result_voice.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -88,8 +88,8 @@ msgstr "" #: aiogram.types.inline_query_result_voice.InlineQueryResultVoice.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -99,3 +99,10 @@ msgid "" "*Optional*. Content of the message to be sent instead of the voice " "recording" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/message.po b/docs/locale/en/LC_MESSAGES/api/types/message.po index 4b8107f9..bab449e0 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/message.po +++ b/docs/locale/en/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: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -41,6 +41,12 @@ msgstr "" msgid "Conversation the message belongs to" msgstr "" +#: ../../docstring aiogram.types.message.Message.message_thread_id:1 of +msgid "" +"*Optional*. Unique identifier of a message thread to which the message " +"belongs; for supergroups only" +msgstr "" + #: ../../docstring aiogram.types.message.Message.from_user:1 of msgid "" "*Optional*. Sender of the message; empty for messages sent to channels. " @@ -93,6 +99,10 @@ msgid "" " Unix time" msgstr "" +#: ../../docstring aiogram.types.message.Message.is_topic_message:1 of +msgid "*Optional*. :code:`True`, if the message is sent to a forum topic" +msgstr "" + #: ../../docstring aiogram.types.message.Message.is_automatic_forward:1 of msgid "" "*Optional*. :code:`True`, if the message is a channel post that was " @@ -329,6 +339,18 @@ msgid "" "proximity alert while sharing Live Location." msgstr "" +#: ../../docstring aiogram.types.message.Message.forum_topic_created:1 of +msgid "*Optional*. Service message: forum topic created" +msgstr "" + +#: ../../docstring aiogram.types.message.Message.forum_topic_closed:1 of +msgid "*Optional*. Service message: forum topic closed" +msgstr "" + +#: ../../docstring aiogram.types.message.Message.forum_topic_reopened:1 of +msgid "*Optional*. Service message: forum topic reopened" +msgstr "" + #: ../../docstring aiogram.types.message.Message.video_chat_scheduled:1 of msgid "*Optional*. Service message: video chat scheduled" msgstr "" diff --git a/docs/locale/en/LC_MESSAGES/api/types/user.po b/docs/locale/en/LC_MESSAGES/api/types/user.po index 04fb86df..d2ffb3dc 100644 --- a/docs/locale/en/LC_MESSAGES/api/types/user.po +++ b/docs/locale/en/LC_MESSAGES/api/types/user.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,9 +22,11 @@ msgid "User" msgstr "" #: aiogram.types.user.User:1 of -msgid "" -"This object represents a Telegram user or bot. Source: " -"https://core.telegram.org/bots/api#user" +msgid "This object represents a Telegram user or bot." +msgstr "" + +#: aiogram.types.user.User:3 of +msgid "Source: https://core.telegram.org/bots/api#user" msgstr "" #: ../../docstring aiogram.types.user.User.id:1 of @@ -78,8 +80,8 @@ msgstr "" #: ../../docstring aiogram.types.user.User.can_read_all_group_messages:1 of msgid "" "*Optional*. :code:`True`, if `privacy mode " -"`_ is disabled for the bot. " -"Returned only in :class:`aiogram.methods.get_me.GetMe`." +"`_ is disabled for " +"the bot. Returned only in :class:`aiogram.methods.get_me.GetMe`." msgstr "" #: ../../docstring aiogram.types.user.User.supports_inline_queries:1 of @@ -93,3 +95,16 @@ msgstr "" #~ msgid "Source: https://core.telegram.org/bots/api#user" #~ msgstr "" + +#~ msgid "" +#~ "This object represents a Telegram user" +#~ " or bot. Source: " +#~ "https://core.telegram.org/bots/api#user" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if `privacy mode " +#~ "`_ is " +#~ "disabled for the bot. Returned only " +#~ "in :class:`aiogram.methods.get_me.GetMe`." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/bot.po b/docs/locale/uk_UA/LC_MESSAGES/api/bot.po index 68e113ad..28acf660 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -59,19 +59,23 @@ msgstr "" #: aiogram.client.bot.Bot.approve_chat_join_request #: aiogram.client.bot.Bot.ban_chat_member #: aiogram.client.bot.Bot.ban_chat_sender_chat aiogram.client.bot.Bot.close -#: aiogram.client.bot.Bot.context aiogram.client.bot.Bot.copy_message +#: aiogram.client.bot.Bot.close_forum_topic aiogram.client.bot.Bot.context +#: aiogram.client.bot.Bot.copy_message #: aiogram.client.bot.Bot.create_chat_invite_link +#: aiogram.client.bot.Bot.create_forum_topic #: aiogram.client.bot.Bot.create_invoice_link #: aiogram.client.bot.Bot.create_new_sticker_set #: aiogram.client.bot.Bot.decline_chat_join_request #: aiogram.client.bot.Bot.delete_chat_photo #: aiogram.client.bot.Bot.delete_chat_sticker_set +#: aiogram.client.bot.Bot.delete_forum_topic #: aiogram.client.bot.Bot.delete_message #: aiogram.client.bot.Bot.delete_my_commands #: aiogram.client.bot.Bot.delete_sticker_from_set #: aiogram.client.bot.Bot.delete_webhook aiogram.client.bot.Bot.download #: aiogram.client.bot.Bot.download_file #: aiogram.client.bot.Bot.edit_chat_invite_link +#: aiogram.client.bot.Bot.edit_forum_topic #: aiogram.client.bot.Bot.edit_message_caption #: aiogram.client.bot.Bot.edit_message_live_location #: aiogram.client.bot.Bot.edit_message_media @@ -85,8 +89,10 @@ msgstr "" #: aiogram.client.bot.Bot.get_chat_members_count #: aiogram.client.bot.Bot.get_chat_menu_button #: aiogram.client.bot.Bot.get_custom_emoji_stickers -#: aiogram.client.bot.Bot.get_file aiogram.client.bot.Bot.get_game_high_scores -#: aiogram.client.bot.Bot.get_me aiogram.client.bot.Bot.get_my_commands +#: aiogram.client.bot.Bot.get_file +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers +#: aiogram.client.bot.Bot.get_game_high_scores aiogram.client.bot.Bot.get_me +#: aiogram.client.bot.Bot.get_my_commands #: aiogram.client.bot.Bot.get_my_default_administrator_rights #: aiogram.client.bot.Bot.get_sticker_set aiogram.client.bot.Bot.get_updates #: aiogram.client.bot.Bot.get_user_profile_photos @@ -94,6 +100,7 @@ msgstr "" #: aiogram.client.bot.Bot.kick_chat_member aiogram.client.bot.Bot.leave_chat #: aiogram.client.bot.Bot.log_out aiogram.client.bot.Bot.pin_chat_message #: aiogram.client.bot.Bot.promote_chat_member +#: aiogram.client.bot.Bot.reopen_forum_topic #: aiogram.client.bot.Bot.restrict_chat_member #: aiogram.client.bot.Bot.revoke_chat_invite_link #: aiogram.client.bot.Bot.send_animation aiogram.client.bot.Bot.send_audio @@ -122,6 +129,7 @@ msgstr "" #: aiogram.client.bot.Bot.stop_poll aiogram.client.bot.Bot.unban_chat_member #: aiogram.client.bot.Bot.unban_chat_sender_chat #: aiogram.client.bot.Bot.unpin_all_chat_messages +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages #: aiogram.client.bot.Bot.unpin_chat_message #: aiogram.client.bot.Bot.upload_sticker_file of msgid "Parameters" @@ -164,18 +172,22 @@ msgstr "" #: aiogram.client.bot.Bot.approve_chat_join_request #: aiogram.client.bot.Bot.ban_chat_member #: aiogram.client.bot.Bot.ban_chat_sender_chat aiogram.client.bot.Bot.close -#: aiogram.client.bot.Bot.context aiogram.client.bot.Bot.copy_message +#: aiogram.client.bot.Bot.close_forum_topic aiogram.client.bot.Bot.context +#: aiogram.client.bot.Bot.copy_message #: aiogram.client.bot.Bot.create_chat_invite_link +#: aiogram.client.bot.Bot.create_forum_topic #: aiogram.client.bot.Bot.create_invoice_link #: aiogram.client.bot.Bot.create_new_sticker_set #: aiogram.client.bot.Bot.decline_chat_join_request #: aiogram.client.bot.Bot.delete_chat_photo #: aiogram.client.bot.Bot.delete_chat_sticker_set +#: aiogram.client.bot.Bot.delete_forum_topic #: aiogram.client.bot.Bot.delete_message #: aiogram.client.bot.Bot.delete_my_commands #: aiogram.client.bot.Bot.delete_sticker_from_set #: aiogram.client.bot.Bot.delete_webhook #: aiogram.client.bot.Bot.edit_chat_invite_link +#: aiogram.client.bot.Bot.edit_forum_topic #: aiogram.client.bot.Bot.edit_message_caption #: aiogram.client.bot.Bot.edit_message_live_location #: aiogram.client.bot.Bot.edit_message_media @@ -189,8 +201,10 @@ msgstr "" #: aiogram.client.bot.Bot.get_chat_members_count #: aiogram.client.bot.Bot.get_chat_menu_button #: aiogram.client.bot.Bot.get_custom_emoji_stickers -#: aiogram.client.bot.Bot.get_file aiogram.client.bot.Bot.get_game_high_scores -#: aiogram.client.bot.Bot.get_me aiogram.client.bot.Bot.get_my_commands +#: aiogram.client.bot.Bot.get_file +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers +#: aiogram.client.bot.Bot.get_game_high_scores aiogram.client.bot.Bot.get_me +#: aiogram.client.bot.Bot.get_my_commands #: aiogram.client.bot.Bot.get_my_default_administrator_rights #: aiogram.client.bot.Bot.get_sticker_set aiogram.client.bot.Bot.get_updates #: aiogram.client.bot.Bot.get_user_profile_photos @@ -198,6 +212,7 @@ msgstr "" #: aiogram.client.bot.Bot.kick_chat_member aiogram.client.bot.Bot.leave_chat #: aiogram.client.bot.Bot.log_out aiogram.client.bot.Bot.pin_chat_message #: aiogram.client.bot.Bot.promote_chat_member +#: aiogram.client.bot.Bot.reopen_forum_topic #: aiogram.client.bot.Bot.restrict_chat_member #: aiogram.client.bot.Bot.revoke_chat_invite_link #: aiogram.client.bot.Bot.send_animation aiogram.client.bot.Bot.send_audio @@ -226,6 +241,7 @@ msgstr "" #: aiogram.client.bot.Bot.stop_poll aiogram.client.bot.Bot.unban_chat_member #: aiogram.client.bot.Bot.unban_chat_sender_chat #: aiogram.client.bot.Bot.unpin_all_chat_messages +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages #: aiogram.client.bot.Bot.unpin_chat_message #: aiogram.client.bot.Bot.upload_sticker_file of msgid "Returns" @@ -351,25 +367,29 @@ msgstr "" #: aiogram.client.bot.Bot.approve_chat_join_request:7 #: aiogram.client.bot.Bot.ban_chat_member:9 #: aiogram.client.bot.Bot.ban_chat_sender_chat:7 aiogram.client.bot.Bot.close:5 -#: aiogram.client.bot.Bot.copy_message:16 +#: aiogram.client.bot.Bot.close_forum_topic:7 +#: aiogram.client.bot.Bot.copy_message:17 #: aiogram.client.bot.Bot.create_chat_invite_link:10 +#: aiogram.client.bot.Bot.create_forum_topic:9 #: aiogram.client.bot.Bot.create_invoice_link:25 #: aiogram.client.bot.Bot.create_new_sticker_set:14 #: aiogram.client.bot.Bot.decline_chat_join_request:7 #: aiogram.client.bot.Bot.delete_chat_photo:6 #: aiogram.client.bot.Bot.delete_chat_sticker_set:6 -#: aiogram.client.bot.Bot.delete_message:23 +#: aiogram.client.bot.Bot.delete_forum_topic:7 +#: aiogram.client.bot.Bot.delete_message:25 #: aiogram.client.bot.Bot.delete_my_commands:7 #: aiogram.client.bot.Bot.delete_sticker_from_set:6 #: aiogram.client.bot.Bot.delete_webhook:6 #: aiogram.client.bot.Bot.edit_chat_invite_link:11 +#: aiogram.client.bot.Bot.edit_forum_topic:9 #: aiogram.client.bot.Bot.edit_message_caption:12 #: aiogram.client.bot.Bot.edit_message_live_location:14 #: aiogram.client.bot.Bot.edit_message_media:10 #: aiogram.client.bot.Bot.edit_message_reply_markup:9 #: aiogram.client.bot.Bot.edit_message_text:13 #: aiogram.client.bot.Bot.export_chat_invite_link:8 -#: aiogram.client.bot.Bot.forward_message:10 aiogram.client.bot.Bot.get_chat:6 +#: aiogram.client.bot.Bot.forward_message:11 aiogram.client.bot.Bot.get_chat:6 #: aiogram.client.bot.Bot.get_chat_administrators:6 #: aiogram.client.bot.Bot.get_chat_member:7 #: aiogram.client.bot.Bot.get_chat_member_count:6 @@ -377,6 +397,7 @@ msgstr "" #: aiogram.client.bot.Bot.get_chat_menu_button:6 #: aiogram.client.bot.Bot.get_custom_emoji_stickers:6 #: aiogram.client.bot.Bot.get_file:7 +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers:5 #: aiogram.client.bot.Bot.get_game_high_scores:11 #: aiogram.client.bot.Bot.get_me:5 aiogram.client.bot.Bot.get_my_commands:7 #: aiogram.client.bot.Bot.get_my_default_administrator_rights:6 @@ -387,22 +408,23 @@ msgstr "" #: aiogram.client.bot.Bot.kick_chat_member:13 #: aiogram.client.bot.Bot.leave_chat:6 aiogram.client.bot.Bot.log_out:5 #: aiogram.client.bot.Bot.pin_chat_message:8 -#: aiogram.client.bot.Bot.promote_chat_member:18 +#: aiogram.client.bot.Bot.promote_chat_member:19 +#: aiogram.client.bot.Bot.reopen_forum_topic:7 #: aiogram.client.bot.Bot.restrict_chat_member:9 #: aiogram.client.bot.Bot.revoke_chat_invite_link:7 -#: aiogram.client.bot.Bot.send_animation:19 -#: aiogram.client.bot.Bot.send_audio:20 +#: aiogram.client.bot.Bot.send_animation:20 +#: aiogram.client.bot.Bot.send_audio:21 #: aiogram.client.bot.Bot.send_chat_action:11 -#: aiogram.client.bot.Bot.send_contact:15 aiogram.client.bot.Bot.send_dice:12 -#: aiogram.client.bot.Bot.send_document:17 aiogram.client.bot.Bot.send_game:12 -#: aiogram.client.bot.Bot.send_invoice:32 -#: aiogram.client.bot.Bot.send_location:17 -#: aiogram.client.bot.Bot.send_media_group:11 -#: aiogram.client.bot.Bot.send_message:15 aiogram.client.bot.Bot.send_photo:15 -#: aiogram.client.bot.Bot.send_poll:23 aiogram.client.bot.Bot.send_sticker:12 -#: aiogram.client.bot.Bot.send_venue:19 aiogram.client.bot.Bot.send_video:20 -#: aiogram.client.bot.Bot.send_video_note:15 -#: aiogram.client.bot.Bot.send_voice:16 +#: aiogram.client.bot.Bot.send_contact:16 aiogram.client.bot.Bot.send_dice:13 +#: aiogram.client.bot.Bot.send_document:18 aiogram.client.bot.Bot.send_game:13 +#: aiogram.client.bot.Bot.send_invoice:33 +#: aiogram.client.bot.Bot.send_location:18 +#: aiogram.client.bot.Bot.send_media_group:12 +#: aiogram.client.bot.Bot.send_message:16 aiogram.client.bot.Bot.send_photo:16 +#: aiogram.client.bot.Bot.send_poll:24 aiogram.client.bot.Bot.send_sticker:13 +#: aiogram.client.bot.Bot.send_venue:20 aiogram.client.bot.Bot.send_video:21 +#: aiogram.client.bot.Bot.send_video_note:16 +#: aiogram.client.bot.Bot.send_voice:17 #: aiogram.client.bot.Bot.set_chat_administrator_custom_title:8 #: aiogram.client.bot.Bot.set_chat_description:7 #: aiogram.client.bot.Bot.set_chat_menu_button:7 @@ -422,6 +444,7 @@ msgstr "" #: aiogram.client.bot.Bot.unban_chat_member:8 #: aiogram.client.bot.Bot.unban_chat_sender_chat:7 #: aiogram.client.bot.Bot.unpin_all_chat_messages:6 +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:7 #: aiogram.client.bot.Bot.unpin_chat_message:7 #: aiogram.client.bot.Bot.upload_sticker_file:7 of msgid "Request timeout" @@ -513,15 +536,20 @@ msgstr "" #: aiogram.client.bot.Bot.add_sticker_to_set:13 #: aiogram.client.bot.Bot.approve_chat_join_request:8 #: aiogram.client.bot.Bot.ban_chat_sender_chat:8 +#: aiogram.client.bot.Bot.close_forum_topic:8 #: aiogram.client.bot.Bot.create_new_sticker_set:15 #: aiogram.client.bot.Bot.decline_chat_join_request:8 #: aiogram.client.bot.Bot.delete_chat_photo:7 -#: aiogram.client.bot.Bot.delete_message:24 +#: aiogram.client.bot.Bot.delete_forum_topic:8 +#: aiogram.client.bot.Bot.delete_message:26 #: aiogram.client.bot.Bot.delete_my_commands:8 #: aiogram.client.bot.Bot.delete_sticker_from_set:7 -#: aiogram.client.bot.Bot.delete_webhook:7 aiogram.client.bot.Bot.leave_chat:7 -#: aiogram.client.bot.Bot.log_out:6 aiogram.client.bot.Bot.pin_chat_message:9 -#: aiogram.client.bot.Bot.promote_chat_member:19 +#: aiogram.client.bot.Bot.delete_webhook:7 +#: aiogram.client.bot.Bot.edit_forum_topic:10 +#: aiogram.client.bot.Bot.leave_chat:7 aiogram.client.bot.Bot.log_out:6 +#: aiogram.client.bot.Bot.pin_chat_message:9 +#: aiogram.client.bot.Bot.promote_chat_member:20 +#: aiogram.client.bot.Bot.reopen_forum_topic:8 #: aiogram.client.bot.Bot.restrict_chat_member:10 #: aiogram.client.bot.Bot.send_chat_action:12 #: aiogram.client.bot.Bot.set_chat_administrator_custom_title:9 @@ -537,6 +565,7 @@ msgstr "" #: aiogram.client.bot.Bot.set_webhook:23 #: aiogram.client.bot.Bot.unban_chat_sender_chat:8 #: aiogram.client.bot.Bot.unpin_all_chat_messages:7 +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:8 #: aiogram.client.bot.Bot.unpin_chat_message:8 of msgid "Returns True on success." msgstr "" @@ -635,7 +664,7 @@ msgstr "" #: aiogram.client.bot.Bot.create_chat_invite_link:5 #: aiogram.client.bot.Bot.decline_chat_join_request:5 #: aiogram.client.bot.Bot.delete_chat_photo:5 -#: aiogram.client.bot.Bot.delete_message:21 +#: aiogram.client.bot.Bot.delete_message:23 #: aiogram.client.bot.Bot.edit_chat_invite_link:5 #: aiogram.client.bot.Bot.export_chat_invite_link:7 #: aiogram.client.bot.Bot.forward_message:5 @@ -666,8 +695,26 @@ msgstr "" msgid "Text of the message to be sent, 1-4096 characters after entities parsing" msgstr "" +#: aiogram.client.bot.Bot.copy_message:8 +#: aiogram.client.bot.Bot.forward_message:8 +#: aiogram.client.bot.Bot.send_animation:7 aiogram.client.bot.Bot.send_audio:8 +#: aiogram.client.bot.Bot.send_contact:8 aiogram.client.bot.Bot.send_dice:6 +#: aiogram.client.bot.Bot.send_document:7 aiogram.client.bot.Bot.send_game:7 +#: aiogram.client.bot.Bot.send_invoice:12 +#: aiogram.client.bot.Bot.send_location:8 +#: aiogram.client.bot.Bot.send_media_group:7 +#: aiogram.client.bot.Bot.send_message:7 aiogram.client.bot.Bot.send_photo:7 +#: aiogram.client.bot.Bot.send_poll:8 aiogram.client.bot.Bot.send_sticker:7 +#: aiogram.client.bot.Bot.send_venue:10 aiogram.client.bot.Bot.send_video:7 +#: aiogram.client.bot.Bot.send_video_note:7 aiogram.client.bot.Bot.send_voice:7 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: aiogram.client.bot.Bot.edit_message_text:9 -#: aiogram.client.bot.Bot.send_message:7 of +#: aiogram.client.bot.Bot.send_message:8 of msgid "" "Mode for parsing entities in the message text. See `formatting options " "`_ for more " @@ -675,60 +722,46 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.edit_message_text:10 -#: aiogram.client.bot.Bot.send_message:8 of +#: aiogram.client.bot.Bot.send_message:9 of msgid "" "A JSON-serialized list of special entities that appear in message text, " "which can be specified instead of *parse_mode*" msgstr "" #: aiogram.client.bot.Bot.edit_message_text:11 -#: aiogram.client.bot.Bot.send_message:9 of +#: aiogram.client.bot.Bot.send_message:10 of msgid "Disables link previews for links in this message" msgstr "" -#: aiogram.client.bot.Bot.copy_message:11 -#: aiogram.client.bot.Bot.forward_message:8 -#: aiogram.client.bot.Bot.send_animation:14 -#: aiogram.client.bot.Bot.send_audio:15 aiogram.client.bot.Bot.send_contact:10 -#: aiogram.client.bot.Bot.send_dice:7 aiogram.client.bot.Bot.send_document:12 -#: aiogram.client.bot.Bot.send_game:7 aiogram.client.bot.Bot.send_invoice:27 -#: aiogram.client.bot.Bot.send_location:12 -#: aiogram.client.bot.Bot.send_message:10 aiogram.client.bot.Bot.send_photo:10 -#: aiogram.client.bot.Bot.send_poll:18 aiogram.client.bot.Bot.send_sticker:7 -#: aiogram.client.bot.Bot.send_venue:14 aiogram.client.bot.Bot.send_video:15 -#: aiogram.client.bot.Bot.send_video_note:10 -#: aiogram.client.bot.Bot.send_voice:11 of -msgid "" -"Sends the message `silently `_. Users will receive a notification with no sound." -msgstr "" - #: aiogram.client.bot.Bot.copy_message:12 +#: aiogram.client.bot.Bot.forward_message:9 #: aiogram.client.bot.Bot.send_animation:15 #: aiogram.client.bot.Bot.send_audio:16 aiogram.client.bot.Bot.send_contact:11 -#: aiogram.client.bot.Bot.send_document:13 aiogram.client.bot.Bot.send_game:8 -#: aiogram.client.bot.Bot.send_invoice:28 +#: aiogram.client.bot.Bot.send_dice:8 aiogram.client.bot.Bot.send_document:13 +#: aiogram.client.bot.Bot.send_game:8 aiogram.client.bot.Bot.send_invoice:28 #: aiogram.client.bot.Bot.send_location:13 #: aiogram.client.bot.Bot.send_message:11 aiogram.client.bot.Bot.send_photo:11 #: aiogram.client.bot.Bot.send_poll:19 aiogram.client.bot.Bot.send_sticker:8 #: aiogram.client.bot.Bot.send_venue:15 aiogram.client.bot.Bot.send_video:16 #: aiogram.client.bot.Bot.send_video_note:11 #: aiogram.client.bot.Bot.send_voice:12 of -msgid "Protects the contents of the sent message from forwarding and saving" +msgid "" +"Sends the message `silently `_. Users will receive a notification with no sound." msgstr "" #: aiogram.client.bot.Bot.copy_message:13 #: aiogram.client.bot.Bot.send_animation:16 #: aiogram.client.bot.Bot.send_audio:17 aiogram.client.bot.Bot.send_contact:12 -#: aiogram.client.bot.Bot.send_dice:9 aiogram.client.bot.Bot.send_document:14 -#: aiogram.client.bot.Bot.send_game:9 aiogram.client.bot.Bot.send_invoice:29 +#: aiogram.client.bot.Bot.send_document:14 aiogram.client.bot.Bot.send_game:9 +#: aiogram.client.bot.Bot.send_invoice:29 #: aiogram.client.bot.Bot.send_location:14 #: aiogram.client.bot.Bot.send_message:12 aiogram.client.bot.Bot.send_photo:12 #: aiogram.client.bot.Bot.send_poll:20 aiogram.client.bot.Bot.send_sticker:9 #: aiogram.client.bot.Bot.send_venue:16 aiogram.client.bot.Bot.send_video:17 #: aiogram.client.bot.Bot.send_video_note:12 #: aiogram.client.bot.Bot.send_voice:13 of -msgid "If the message is a reply, ID of the original message" +msgid "Protects the contents of the sent message from forwarding and saving" msgstr "" #: aiogram.client.bot.Bot.copy_message:14 @@ -737,46 +770,60 @@ msgstr "" #: aiogram.client.bot.Bot.send_dice:10 aiogram.client.bot.Bot.send_document:15 #: aiogram.client.bot.Bot.send_game:10 aiogram.client.bot.Bot.send_invoice:30 #: aiogram.client.bot.Bot.send_location:15 -#: aiogram.client.bot.Bot.send_media_group:10 #: aiogram.client.bot.Bot.send_message:13 aiogram.client.bot.Bot.send_photo:13 #: aiogram.client.bot.Bot.send_poll:21 aiogram.client.bot.Bot.send_sticker:10 #: aiogram.client.bot.Bot.send_venue:17 aiogram.client.bot.Bot.send_video:18 #: aiogram.client.bot.Bot.send_video_note:13 #: aiogram.client.bot.Bot.send_voice:14 of -msgid "" -"Pass :code:`True` if the message should be sent even if the specified " -"replied-to message is not found" +msgid "If the message is a reply, ID of the original message" msgstr "" #: aiogram.client.bot.Bot.copy_message:15 #: aiogram.client.bot.Bot.send_animation:18 -#: aiogram.client.bot.Bot.send_audio:19 aiogram.client.bot.Bot.send_dice:11 -#: aiogram.client.bot.Bot.send_document:16 +#: aiogram.client.bot.Bot.send_audio:19 aiogram.client.bot.Bot.send_contact:14 +#: aiogram.client.bot.Bot.send_dice:11 aiogram.client.bot.Bot.send_document:16 +#: aiogram.client.bot.Bot.send_game:11 aiogram.client.bot.Bot.send_invoice:31 #: aiogram.client.bot.Bot.send_location:16 +#: aiogram.client.bot.Bot.send_media_group:11 #: aiogram.client.bot.Bot.send_message:14 aiogram.client.bot.Bot.send_photo:14 #: aiogram.client.bot.Bot.send_poll:22 aiogram.client.bot.Bot.send_sticker:11 #: aiogram.client.bot.Bot.send_venue:18 aiogram.client.bot.Bot.send_video:19 #: aiogram.client.bot.Bot.send_video_note:14 #: aiogram.client.bot.Bot.send_voice:15 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` if the message should be sent even if the specified " +"replied-to message is not found" msgstr "" -#: aiogram.client.bot.Bot.forward_message:11 -#: aiogram.client.bot.Bot.send_animation:20 -#: aiogram.client.bot.Bot.send_audio:21 aiogram.client.bot.Bot.send_contact:16 -#: aiogram.client.bot.Bot.send_dice:13 aiogram.client.bot.Bot.send_document:18 -#: aiogram.client.bot.Bot.send_game:13 aiogram.client.bot.Bot.send_invoice:33 -#: aiogram.client.bot.Bot.send_location:18 -#: aiogram.client.bot.Bot.send_message:16 aiogram.client.bot.Bot.send_photo:16 -#: aiogram.client.bot.Bot.send_poll:24 aiogram.client.bot.Bot.send_sticker:13 -#: aiogram.client.bot.Bot.send_venue:20 aiogram.client.bot.Bot.send_video:21 -#: aiogram.client.bot.Bot.send_video_note:16 -#: aiogram.client.bot.Bot.send_voice:17 of +#: aiogram.client.bot.Bot.copy_message:16 +#: aiogram.client.bot.Bot.send_animation:19 +#: aiogram.client.bot.Bot.send_audio:20 aiogram.client.bot.Bot.send_contact:15 +#: aiogram.client.bot.Bot.send_dice:12 aiogram.client.bot.Bot.send_document:17 +#: aiogram.client.bot.Bot.send_location:17 +#: aiogram.client.bot.Bot.send_message:15 aiogram.client.bot.Bot.send_photo:15 +#: aiogram.client.bot.Bot.send_poll:23 aiogram.client.bot.Bot.send_sticker:12 +#: aiogram.client.bot.Bot.send_venue:19 aiogram.client.bot.Bot.send_video:20 +#: aiogram.client.bot.Bot.send_video_note:15 +#: aiogram.client.bot.Bot.send_voice:16 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." +msgstr "" + +#: aiogram.client.bot.Bot.forward_message:12 +#: aiogram.client.bot.Bot.send_animation:21 +#: aiogram.client.bot.Bot.send_audio:22 aiogram.client.bot.Bot.send_contact:17 +#: aiogram.client.bot.Bot.send_dice:14 aiogram.client.bot.Bot.send_document:19 +#: aiogram.client.bot.Bot.send_game:14 aiogram.client.bot.Bot.send_invoice:34 +#: aiogram.client.bot.Bot.send_location:19 +#: aiogram.client.bot.Bot.send_message:17 aiogram.client.bot.Bot.send_photo:17 +#: aiogram.client.bot.Bot.send_poll:25 aiogram.client.bot.Bot.send_sticker:14 +#: aiogram.client.bot.Bot.send_venue:21 aiogram.client.bot.Bot.send_video:22 +#: aiogram.client.bot.Bot.send_video_note:17 +#: aiogram.client.bot.Bot.send_voice:18 of msgid "On success, the sent Message is returned." msgstr "" @@ -803,7 +850,7 @@ msgstr "" msgid "Message identifier in the chat specified in *from_chat_id*" msgstr "" -#: aiogram.client.bot.Bot.forward_message:9 of +#: aiogram.client.bot.Bot.forward_message:10 of msgid "Protects the contents of the forwarded message from forwarding and saving" msgstr "" @@ -823,26 +870,26 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#copymessage" msgstr "" -#: aiogram.client.bot.Bot.copy_message:8 of +#: aiogram.client.bot.Bot.copy_message:9 of msgid "" "New caption for media, 0-1024 characters after entities parsing. If not " "specified, the original caption is kept" msgstr "" -#: aiogram.client.bot.Bot.copy_message:9 of +#: aiogram.client.bot.Bot.copy_message:10 of msgid "" "Mode for parsing entities in the new caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.client.bot.Bot.copy_message:10 of +#: aiogram.client.bot.Bot.copy_message:11 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.client.bot.Bot.copy_message:17 of +#: aiogram.client.bot.Bot.copy_message:18 of msgid "Returns the MessageId of the sent message on success." msgstr "" @@ -867,13 +914,13 @@ msgid "" "files>`" msgstr "" -#: aiogram.client.bot.Bot.send_photo:7 of +#: aiogram.client.bot.Bot.send_photo:8 of msgid "" "Photo caption (may also be used when resending photos by *file_id*), " "0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_photo:8 of +#: aiogram.client.bot.Bot.send_photo:9 of msgid "" "Mode for parsing entities in the photo caption. See `formatting options " "`_ for more " @@ -881,10 +928,10 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.edit_message_caption:10 -#: aiogram.client.bot.Bot.send_animation:13 -#: aiogram.client.bot.Bot.send_audio:10 aiogram.client.bot.Bot.send_document:10 -#: aiogram.client.bot.Bot.send_photo:9 aiogram.client.bot.Bot.send_video:13 -#: aiogram.client.bot.Bot.send_voice:9 of +#: aiogram.client.bot.Bot.send_animation:14 +#: aiogram.client.bot.Bot.send_audio:11 aiogram.client.bot.Bot.send_document:11 +#: aiogram.client.bot.Bot.send_photo:10 aiogram.client.bot.Bot.send_video:14 +#: aiogram.client.bot.Bot.send_voice:10 of msgid "" "A JSON-serialized list of special entities that appear in the caption, " "which can be specified instead of *parse_mode*" @@ -913,33 +960,33 @@ msgid "" "Files » `" msgstr "" -#: aiogram.client.bot.Bot.send_audio:8 of +#: aiogram.client.bot.Bot.send_audio:9 of msgid "Audio caption, 0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_audio:9 of +#: aiogram.client.bot.Bot.send_audio:10 of msgid "" "Mode for parsing entities in the audio caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.client.bot.Bot.send_audio:11 of +#: aiogram.client.bot.Bot.send_audio:12 of msgid "Duration of the audio in seconds" msgstr "" -#: aiogram.client.bot.Bot.send_audio:12 of +#: aiogram.client.bot.Bot.send_audio:13 of msgid "Performer" msgstr "" -#: aiogram.client.bot.Bot.send_audio:13 of +#: aiogram.client.bot.Bot.send_audio:14 of msgid "Track name" msgstr "" -#: aiogram.client.bot.Bot.send_animation:10 -#: aiogram.client.bot.Bot.send_audio:14 aiogram.client.bot.Bot.send_document:7 -#: aiogram.client.bot.Bot.send_video:10 -#: aiogram.client.bot.Bot.send_video_note:9 of +#: aiogram.client.bot.Bot.send_animation:11 +#: aiogram.client.bot.Bot.send_audio:15 aiogram.client.bot.Bot.send_document:8 +#: aiogram.client.bot.Bot.send_video:11 +#: aiogram.client.bot.Bot.send_video_note:10 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" @@ -971,20 +1018,20 @@ msgid "" "/form-data. :ref:`More information on Sending Files » `" msgstr "" -#: aiogram.client.bot.Bot.send_document:8 of +#: aiogram.client.bot.Bot.send_document:9 of msgid "" "Document caption (may also be used when resending documents by " "*file_id*), 0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_document:9 of +#: aiogram.client.bot.Bot.send_document:10 of msgid "" "Mode for parsing entities in the document caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.client.bot.Bot.send_document:11 of +#: aiogram.client.bot.Bot.send_document:12 of msgid "" "Disables automatic server-side content type detection for files uploaded " "using multipart/form-data" @@ -1013,33 +1060,33 @@ msgid "" "files>`" msgstr "" -#: aiogram.client.bot.Bot.send_video:7 aiogram.client.bot.Bot.send_video_note:7 +#: aiogram.client.bot.Bot.send_video:8 aiogram.client.bot.Bot.send_video_note:8 #: of msgid "Duration of sent video in seconds" msgstr "" -#: aiogram.client.bot.Bot.send_video:8 of +#: aiogram.client.bot.Bot.send_video:9 of msgid "Video width" msgstr "" -#: aiogram.client.bot.Bot.send_video:9 of +#: aiogram.client.bot.Bot.send_video:10 of msgid "Video height" msgstr "" -#: aiogram.client.bot.Bot.send_video:11 of +#: aiogram.client.bot.Bot.send_video:12 of msgid "" "Video caption (may also be used when resending videos by *file_id*), " "0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_video:12 of +#: aiogram.client.bot.Bot.send_video:13 of msgid "" "Mode for parsing entities in the video caption. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.client.bot.Bot.send_video:14 of +#: aiogram.client.bot.Bot.send_video:15 of msgid "Pass :code:`True` if the uploaded video is suitable for streaming" msgstr "" @@ -1065,25 +1112,25 @@ msgid "" "Sending Files » `" msgstr "" -#: aiogram.client.bot.Bot.send_animation:7 of +#: aiogram.client.bot.Bot.send_animation:8 of msgid "Duration of sent animation in seconds" msgstr "" -#: aiogram.client.bot.Bot.send_animation:8 of +#: aiogram.client.bot.Bot.send_animation:9 of msgid "Animation width" msgstr "" -#: aiogram.client.bot.Bot.send_animation:9 of +#: aiogram.client.bot.Bot.send_animation:10 of msgid "Animation height" msgstr "" -#: aiogram.client.bot.Bot.send_animation:11 of +#: aiogram.client.bot.Bot.send_animation:12 of msgid "" "Animation caption (may also be used when resending animation by " "*file_id*), 0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_animation:12 of +#: aiogram.client.bot.Bot.send_animation:13 of msgid "" "Mode for parsing entities in the animation caption. See `formatting " "options `_ for " @@ -1115,18 +1162,18 @@ msgid "" "files>`" msgstr "" -#: aiogram.client.bot.Bot.send_voice:7 of +#: aiogram.client.bot.Bot.send_voice:8 of msgid "Voice message caption, 0-1024 characters after entities parsing" msgstr "" -#: aiogram.client.bot.Bot.send_voice:8 of +#: aiogram.client.bot.Bot.send_voice:9 of msgid "" "Mode for parsing entities in the voice message caption. See `formatting " "options `_ for " "more details." msgstr "" -#: aiogram.client.bot.Bot.send_voice:10 of +#: aiogram.client.bot.Bot.send_voice:11 of msgid "Duration of the voice message in seconds" msgstr "" @@ -1150,7 +1197,7 @@ msgid "" "files>`. Sending video notes by a URL is currently unsupported" msgstr "" -#: aiogram.client.bot.Bot.send_video_note:8 of +#: aiogram.client.bot.Bot.send_video_note:9 of msgid "Video width and height, i.e. diameter of the video message" msgstr "" @@ -1173,21 +1220,21 @@ msgid "" " items" msgstr "" -#: aiogram.client.bot.Bot.send_media_group:7 of +#: aiogram.client.bot.Bot.send_media_group:8 of msgid "" "Sends messages `silently `_. Users will receive a notification with no sound." msgstr "" -#: aiogram.client.bot.Bot.send_media_group:8 of +#: aiogram.client.bot.Bot.send_media_group:9 of msgid "Protects the contents of the sent messages from forwarding and saving" msgstr "" -#: aiogram.client.bot.Bot.send_media_group:9 of +#: aiogram.client.bot.Bot.send_media_group:10 of msgid "If the messages are a reply, ID of the original message" msgstr "" -#: aiogram.client.bot.Bot.send_media_group:12 of +#: aiogram.client.bot.Bot.send_media_group:13 of msgid "On success, an array of Messages that were sent is returned." msgstr "" @@ -1210,24 +1257,24 @@ msgid "Longitude of the location" msgstr "" #: aiogram.client.bot.Bot.edit_message_live_location:10 -#: aiogram.client.bot.Bot.send_location:8 of +#: aiogram.client.bot.Bot.send_location:9 of msgid "The radius of uncertainty for the location, measured in meters; 0-1500" msgstr "" -#: aiogram.client.bot.Bot.send_location:9 of +#: aiogram.client.bot.Bot.send_location:10 of msgid "" "Period in seconds for which the location will be updated (see `Live " "Locations `_, should be between" " 60 and 86400." msgstr "" -#: aiogram.client.bot.Bot.send_location:10 of +#: aiogram.client.bot.Bot.send_location:11 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.client.bot.Bot.send_location:11 of +#: aiogram.client.bot.Bot.send_location:12 of msgid "" "For live locations, a maximum distance for proximity alerts about " "approaching another chat member, in meters. Must be between 1 and 100000 " @@ -1309,8 +1356,7 @@ msgstr "" #: aiogram.client.bot.Bot.stop_message_live_location:8 of msgid "" "A JSON-serialized object for a new `inline keyboard " -"`_." +"`_." msgstr "" #: aiogram.client.bot.Bot.edit_message_caption:13 @@ -1373,22 +1419,22 @@ msgstr "" msgid "Address of the venue" msgstr "" -#: aiogram.client.bot.Bot.send_venue:10 of +#: aiogram.client.bot.Bot.send_venue:11 of msgid "Foursquare identifier of the venue" msgstr "" -#: aiogram.client.bot.Bot.send_venue:11 of +#: aiogram.client.bot.Bot.send_venue:12 of msgid "" "Foursquare type of the venue, if known. (For example, " "'arts_entertainment/default', 'arts_entertainment/aquarium' or " "'food/icecream'.)" msgstr "" -#: aiogram.client.bot.Bot.send_venue:12 of +#: aiogram.client.bot.Bot.send_venue:13 of msgid "Google Places identifier of the venue" msgstr "" -#: aiogram.client.bot.Bot.send_venue:13 of +#: aiogram.client.bot.Bot.send_venue:14 of msgid "" "Google Places type of the venue. (See `supported types " "`_.)" @@ -1412,25 +1458,16 @@ msgstr "" msgid "Contact's first name" msgstr "" -#: aiogram.client.bot.Bot.send_contact:8 of +#: aiogram.client.bot.Bot.send_contact:9 of msgid "Contact's last name" msgstr "" -#: aiogram.client.bot.Bot.send_contact:9 of +#: aiogram.client.bot.Bot.send_contact:10 of msgid "" "Additional data about the contact in the form of a `vCard " "`_, 0-2048 bytes" msgstr "" -#: aiogram.client.bot.Bot.send_contact:14 of -msgid "" -"Additional interface options. A JSON-serialized object for an `inline " -"keyboard `_, `custom reply keyboard " -"`_, instructions to remove " -"keyboard or to force a reply from the user." -msgstr "" - #: aiogram.client.bot.Bot.send_poll:1 of msgid "" "Use this method to send a native poll. On success, the sent " @@ -1451,60 +1488,60 @@ msgid "" "each" msgstr "" -#: aiogram.client.bot.Bot.send_poll:8 of +#: aiogram.client.bot.Bot.send_poll:9 of msgid ":code:`True`, if the poll needs to be anonymous, defaults to :code:`True`" msgstr "" -#: aiogram.client.bot.Bot.send_poll:9 of +#: aiogram.client.bot.Bot.send_poll:10 of msgid "Poll type, 'quiz' or 'regular', defaults to 'regular'" msgstr "" -#: aiogram.client.bot.Bot.send_poll:10 of +#: aiogram.client.bot.Bot.send_poll:11 of msgid "" ":code:`True`, if the poll allows multiple answers, ignored for polls in " "quiz mode, defaults to :code:`False`" msgstr "" -#: aiogram.client.bot.Bot.send_poll:11 of +#: aiogram.client.bot.Bot.send_poll:12 of msgid "" "0-based identifier of the correct answer option, required for polls in " "quiz mode" msgstr "" -#: aiogram.client.bot.Bot.send_poll:12 of +#: aiogram.client.bot.Bot.send_poll:13 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.client.bot.Bot.send_poll:13 of +#: aiogram.client.bot.Bot.send_poll:14 of msgid "" "Mode for parsing entities in the explanation. See `formatting options " "`_ for more " "details." msgstr "" -#: aiogram.client.bot.Bot.send_poll:14 of +#: aiogram.client.bot.Bot.send_poll:15 of msgid "" "A JSON-serialized list of special entities that appear in the poll " "explanation, which can be specified instead of *parse_mode*" msgstr "" -#: aiogram.client.bot.Bot.send_poll:15 of +#: aiogram.client.bot.Bot.send_poll:16 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.client.bot.Bot.send_poll:16 of +#: aiogram.client.bot.Bot.send_poll:17 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.client.bot.Bot.send_poll:17 of +#: aiogram.client.bot.Bot.send_poll:18 of msgid "" "Pass :code:`True` if the poll needs to be immediately closed. This can be" " useful for poll preview." @@ -1521,7 +1558,7 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#senddice" msgstr "" -#: aiogram.client.bot.Bot.send_dice:6 of +#: aiogram.client.bot.Bot.send_dice:7 of msgid "" "Emoji on which the dice throw animation is based. Currently, must be one " "of '🎲', '🎯', '🏀', '⚽', '🎳', or '🎰'. Dice can have values 1-6 for '🎲', '🎯'" @@ -1529,7 +1566,7 @@ msgid "" "to '🎲'" msgstr "" -#: aiogram.client.bot.Bot.send_dice:8 of +#: aiogram.client.bot.Bot.send_dice:9 of msgid "Protects the contents of the sent message from forwarding" msgstr "" @@ -1732,11 +1769,17 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#restrictchatmember" msgstr "" +#: aiogram.client.bot.Bot.close_forum_topic:5 +#: aiogram.client.bot.Bot.create_forum_topic:5 #: aiogram.client.bot.Bot.delete_chat_sticker_set:5 +#: aiogram.client.bot.Bot.delete_forum_topic:5 +#: aiogram.client.bot.Bot.edit_forum_topic:5 +#: aiogram.client.bot.Bot.reopen_forum_topic:5 #: aiogram.client.bot.Bot.restrict_chat_member:5 #: aiogram.client.bot.Bot.set_chat_administrator_custom_title:5 #: aiogram.client.bot.Bot.set_chat_permissions:5 -#: aiogram.client.bot.Bot.set_chat_sticker_set:5 of +#: aiogram.client.bot.Bot.set_chat_sticker_set:5 +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:5 of msgid "" "Unique identifier for the target chat or username of the target " "supergroup (in the format :code:`@supergroupusername`)" @@ -1825,6 +1868,12 @@ msgstr "" msgid "Pass :code:`True` if the administrator can pin messages, supergroups only" msgstr "" +#: aiogram.client.bot.Bot.promote_chat_member:18 of +msgid "" +"Pass :code:`True` if the user is allowed to create, rename, close, and " +"reopen forum topics, supergroups only" +msgstr "" + #: aiogram.client.bot.Bot.set_chat_administrator_custom_title:1 of msgid "" "Use this method to set a custom title for an administrator in a " @@ -2073,7 +2122,7 @@ msgid "Source: https://core.telegram.org/bots/api#setchattitle" msgstr "" #: aiogram.client.bot.Bot.set_chat_title:6 of -msgid "New chat title, 1-255 characters" +msgid "New chat title, 1-128 characters" msgstr "" #: aiogram.client.bot.Bot.set_chat_description:1 of @@ -2271,13 +2320,140 @@ msgstr "" msgid "Source: https://core.telegram.org/bots/api#deletechatstickerset" msgstr "" +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers:1 of +msgid "" +"Use this method to get custom emoji stickers, which can be used as a " +"forum topic icon by any user. Requires no parameters. Returns an Array of" +" :class:`aiogram.types.sticker.Sticker` objects." +msgstr "" + +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers:3 of +msgid "Source: https://core.telegram.org/bots/api#getforumtopiciconstickers" +msgstr "" + +#: aiogram.client.bot.Bot.get_custom_emoji_stickers:7 +#: aiogram.client.bot.Bot.get_forum_topic_icon_stickers:6 of +msgid "Returns an Array of Sticker objects." +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:1 of +msgid "" +"Use this method to create a topic in a forum supergroup chat. The bot " +"must be an administrator in the chat for this to work and must have the " +"*can_manage_topics* administrator rights. Returns information about the " +"created topic as a :class:`aiogram.types.forum_topic.ForumTopic` object." +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:3 of +msgid "Source: https://core.telegram.org/bots/api#createforumtopic" +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:6 of +msgid "Topic name, 1-128 characters" +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:7 of +msgid "" +"Color of the topic icon in RGB format. Currently, must be one of " +"0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F" +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:8 of +msgid "" +"Unique identifier of the custom emoji shown as the topic icon. Use " +":class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers`" +" to get all allowed custom emoji identifiers." +msgstr "" + +#: aiogram.client.bot.Bot.create_forum_topic:10 of +msgid "Returns information about the created topic as a ForumTopic object." +msgstr "" + +#: aiogram.client.bot.Bot.edit_forum_topic:1 of +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 "" + +#: aiogram.client.bot.Bot.edit_forum_topic:3 of +msgid "Source: https://core.telegram.org/bots/api#editforumtopic" +msgstr "" + +#: aiogram.client.bot.Bot.close_forum_topic:6 +#: aiogram.client.bot.Bot.delete_forum_topic:6 +#: aiogram.client.bot.Bot.edit_forum_topic:6 +#: aiogram.client.bot.Bot.reopen_forum_topic:6 +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:6 of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: aiogram.client.bot.Bot.edit_forum_topic:7 of +msgid "New topic name, 1-128 characters" +msgstr "" + +#: aiogram.client.bot.Bot.edit_forum_topic:8 of +msgid "" +"New unique identifier of the custom emoji shown as the topic icon. Use " +":class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers`" +" to get all allowed custom emoji identifiers" +msgstr "" + +#: aiogram.client.bot.Bot.close_forum_topic:1 of +msgid "" +"Use this method to close an open topic in a forum supergroup chat. The " +"bot must be an administrator in the chat for this to work and must have " +"the *can_manage_topics* administrator rights, unless it is the creator of" +" the topic. Returns :code:`True` on success." +msgstr "" + +#: aiogram.client.bot.Bot.close_forum_topic:3 of +msgid "Source: https://core.telegram.org/bots/api#closeforumtopic" +msgstr "" + +#: aiogram.client.bot.Bot.reopen_forum_topic:1 of +msgid "" +"Use this method to reopen a closed topic in a forum supergroup chat. The " +"bot must be an administrator in the chat for this to work and must have " +"the *can_manage_topics* administrator rights, unless it is the creator of" +" the topic. Returns :code:`True` on success." +msgstr "" + +#: aiogram.client.bot.Bot.reopen_forum_topic:3 of +msgid "Source: https://core.telegram.org/bots/api#reopenforumtopic" +msgstr "" + +#: aiogram.client.bot.Bot.delete_forum_topic:1 of +msgid "" +"Use this method to delete a forum topic along with all its messages in a " +"forum supergroup chat. The bot must be an administrator in the chat for " +"this to work and must have the *can_delete_messages* administrator " +"rights. Returns :code:`True` on success." +msgstr "" + +#: aiogram.client.bot.Bot.delete_forum_topic:3 of +msgid "Source: https://core.telegram.org/bots/api#deleteforumtopic" +msgstr "" + +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:1 of +msgid "" +"Use this method to clear the list of pinned messages in a forum topic. " +"The bot must be an administrator in the chat for this to work and must " +"have the *can_pin_messages* administrator right in the supergroup. " +"Returns :code:`True` on success." +msgstr "" + +#: aiogram.client.bot.Bot.unpin_all_forum_topic_messages:3 of +msgid "Source: https://core.telegram.org/bots/api#unpinallforumtopicmessages" +msgstr "" + #: aiogram.client.bot.Bot.answer_callback_query:1 of msgid "" "Use this method to send answers to callback queries sent from `inline " -"keyboards `_. The answer will be displayed to the user as a " -"notification at the top of the chat screen or as an alert. On success, " -":code:`True` is returned." +"keyboards `_. " +"The answer will be displayed to the user as a notification at the top of " +"the chat screen or as an alert. On success, :code:`True` is returned." msgstr "" #: aiogram.client.bot.Bot.answer_callback_query:3 of @@ -2339,11 +2515,9 @@ msgstr "" #: aiogram.client.bot.Bot.set_my_commands:1 of msgid "" -"Use this method to change the list of the bot's commands. See " -"`https://core.telegram.org/bots#commands " -"`_`https://core.telegram.org/bots#commands" -" `_ for more details about bot " -"commands. Returns :code:`True` on success." +"Use this method to change the list of the bot's commands. See `this " +"manual `_ for more " +"details about bot commands. Returns :code:`True` on success." msgstr "" #: aiogram.client.bot.Bot.set_my_commands:3 of @@ -2525,8 +2699,7 @@ msgstr "" #: aiogram.client.bot.Bot.edit_message_text:12 of msgid "" "A JSON-serialized object for an `inline keyboard " -"`_." +"`_." msgstr "" #: aiogram.client.bot.Bot.edit_message_caption:1 of @@ -2601,8 +2774,7 @@ msgstr "" #: aiogram.client.bot.Bot.stop_poll:7 of msgid "" "A JSON-serialized object for a new message `inline keyboard " -"`_." +"`_." msgstr "" #: aiogram.client.bot.Bot.stop_poll:9 of @@ -2621,47 +2793,53 @@ msgstr "" #: aiogram.client.bot.Bot.delete_message:5 of msgid "" +"Service messages about a supergroup, channel, or forum topic creation " +"can't be deleted." +msgstr "" + +#: aiogram.client.bot.Bot.delete_message:7 of +msgid "" "A dice message in a private chat can only be deleted if it was sent more " "than 24 hours ago." msgstr "" -#: aiogram.client.bot.Bot.delete_message:7 of +#: aiogram.client.bot.Bot.delete_message:9 of msgid "" "Bots can delete outgoing messages in private chats, groups, and " "supergroups." msgstr "" -#: aiogram.client.bot.Bot.delete_message:9 of +#: aiogram.client.bot.Bot.delete_message:11 of msgid "Bots can delete incoming messages in private chats." msgstr "" -#: aiogram.client.bot.Bot.delete_message:11 of +#: aiogram.client.bot.Bot.delete_message:13 of msgid "" "Bots granted *can_post_messages* permissions can delete outgoing messages" " in channels." msgstr "" -#: aiogram.client.bot.Bot.delete_message:13 of +#: aiogram.client.bot.Bot.delete_message:15 of msgid "" "If the bot is an administrator of a group, it can delete any message " "there." msgstr "" -#: aiogram.client.bot.Bot.delete_message:15 of +#: aiogram.client.bot.Bot.delete_message:17 of msgid "" "If the bot has *can_delete_messages* permission in a supergroup or a " "channel, it can delete any message there." msgstr "" -#: aiogram.client.bot.Bot.delete_message:17 of +#: aiogram.client.bot.Bot.delete_message:19 of msgid "Returns :code:`True` on success." msgstr "" -#: aiogram.client.bot.Bot.delete_message:19 of +#: aiogram.client.bot.Bot.delete_message:21 of msgid "Source: https://core.telegram.org/bots/api#deletemessage" msgstr "" -#: aiogram.client.bot.Bot.delete_message:22 of +#: aiogram.client.bot.Bot.delete_message:24 of msgid "Identifier of the message to delete" msgstr "" @@ -2722,10 +2900,6 @@ msgid "" "can be specified." msgstr "" -#: aiogram.client.bot.Bot.get_custom_emoji_stickers:7 of -msgid "Returns an Array of Sticker objects." -msgstr "" - #: aiogram.client.bot.Bot.upload_sticker_file:1 of msgid "" "Use this method to upload a .PNG file with a sticker for later use in " @@ -2977,10 +3151,10 @@ msgstr "" #: aiogram.client.bot.Bot.answer_inline_query:13 of msgid "" -"`Deep-linking `_ parameter " -"for the /start message sent to the bot when user presses the switch " -"button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, :code:`0-9`, " -":code:`_` and :code:`-` are allowed." +"`Deep-linking `_ " +"parameter for the /start message sent to the bot when user presses the " +"switch button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, " +":code:`0-9`, :code:`_` and :code:`-` are allowed." msgstr "" #: aiogram.client.bot.Bot.answer_web_app_query:1 of @@ -3053,7 +3227,7 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:11 -#: aiogram.client.bot.Bot.send_invoice:12 of +#: aiogram.client.bot.Bot.send_invoice:13 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 " @@ -3065,7 +3239,7 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:12 -#: aiogram.client.bot.Bot.send_invoice:13 of +#: aiogram.client.bot.Bot.send_invoice:14 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 " @@ -3074,7 +3248,7 @@ msgid "" "*max_tip_amount*." msgstr "" -#: aiogram.client.bot.Bot.send_invoice:14 of +#: aiogram.client.bot.Bot.send_invoice:15 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 " @@ -3085,14 +3259,14 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:13 -#: aiogram.client.bot.Bot.send_invoice:15 of +#: aiogram.client.bot.Bot.send_invoice:16 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.client.bot.Bot.send_invoice:16 of +#: aiogram.client.bot.Bot.send_invoice:17 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" @@ -3100,67 +3274,67 @@ msgid "" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:15 -#: aiogram.client.bot.Bot.send_invoice:17 of +#: aiogram.client.bot.Bot.send_invoice:18 of msgid "Photo size in bytes" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:16 -#: aiogram.client.bot.Bot.send_invoice:18 of +#: aiogram.client.bot.Bot.send_invoice:19 of msgid "Photo width" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:17 -#: aiogram.client.bot.Bot.send_invoice:19 of +#: aiogram.client.bot.Bot.send_invoice:20 of msgid "Photo height" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:18 -#: aiogram.client.bot.Bot.send_invoice:20 of +#: aiogram.client.bot.Bot.send_invoice:21 of msgid "" "Pass :code:`True` if you require the user's full name to complete the " "order" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:19 -#: aiogram.client.bot.Bot.send_invoice:21 of +#: aiogram.client.bot.Bot.send_invoice:22 of msgid "" "Pass :code:`True` if you require the user's phone number to complete the " "order" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:20 -#: aiogram.client.bot.Bot.send_invoice:22 of +#: aiogram.client.bot.Bot.send_invoice:23 of msgid "" "Pass :code:`True` if you require the user's email address to complete the" " order" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:21 -#: aiogram.client.bot.Bot.send_invoice:23 of +#: aiogram.client.bot.Bot.send_invoice:24 of msgid "" "Pass :code:`True` if you require the user's shipping address to complete " "the order" msgstr "" -#: aiogram.client.bot.Bot.send_invoice:24 of +#: aiogram.client.bot.Bot.send_invoice:25 of msgid "Pass :code:`True` if the user's phone number should be sent to provider" msgstr "" -#: aiogram.client.bot.Bot.send_invoice:25 of +#: aiogram.client.bot.Bot.send_invoice:26 of msgid "Pass :code:`True` if the user's email address should be sent to provider" msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:24 -#: aiogram.client.bot.Bot.send_invoice:26 of +#: aiogram.client.bot.Bot.send_invoice:27 of msgid "Pass :code:`True` if the final price depends on the shipping method" msgstr "" -#: aiogram.client.bot.Bot.send_invoice:31 of +#: aiogram.client.bot.Bot.send_invoice:32 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." +"`_. If empty, " +"one 'Pay :code:`total price`' button will be shown. If not empty, the " +"first button must be a Pay button." msgstr "" #: aiogram.client.bot.Bot.create_invoice_link:1 of @@ -3317,12 +3491,12 @@ msgid "" " up your games via `@BotFather `_." msgstr "" -#: aiogram.client.bot.Bot.send_game:11 of +#: aiogram.client.bot.Bot.send_game:12 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." +"`_. If empty, " +"one 'Play game_title' button will be shown. If not empty, the first " +"button must launch the game." msgstr "" #: aiogram.client.bot.Bot.set_game_score:1 of @@ -3408,3 +3582,101 @@ msgid "" "their closest neighbors on each side. Will also return the top three " "users if the user and their neighbors are not among them." 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 "" +#~ "A JSON-serialized object for a new" +#~ " `inline keyboard `_." +#~ msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, " +#~ "`custom reply keyboard " +#~ "`_, instructions " +#~ "to remove keyboard or to force a" +#~ " reply from the user." +#~ msgstr "" + +#~ msgid "New chat title, 1-255 characters" +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to send answers to" +#~ " callback queries sent from `inline " +#~ "keyboards `_. " +#~ "The answer will be displayed to " +#~ "the user as a notification at the" +#~ " top of the chat screen or as" +#~ " an alert. On success, :code:`True` " +#~ "is returned." +#~ msgstr "" + +#~ msgid "" +#~ "Use this method to change the list" +#~ " of the bot's commands. See " +#~ "`https://core.telegram.org/bots#commands " +#~ "`_`https://core.telegram.org/bots#commands" +#~ " `_ for more" +#~ " details about bot commands. Returns " +#~ ":code:`True` on success." +#~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for an " +#~ "`inline keyboard `_." +#~ msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for a new" +#~ " message `inline keyboard " +#~ "`_." +#~ msgstr "" + +#~ msgid "" +#~ "`Deep-linking `_ parameter for the /start " +#~ "message sent to the bot when user" +#~ " presses the switch button. 1-64 " +#~ "characters, only :code:`A-Z`, :code:`a-z`, " +#~ ":code:`0-9`, :code:`_` and :code:`-` are " +#~ "allowed." +#~ msgstr "" + +#~ 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 "" + +#~ 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 "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_callback_query.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_callback_query.po index c472e8ee..8b8535ed 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_callback_query.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_callback_query.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,10 +28,9 @@ msgstr "" #: aiogram.methods.answer_callback_query.AnswerCallbackQuery:1 of msgid "" "Use this method to send answers to callback queries sent from `inline " -"keyboards `_. The answer will be displayed to the user as a " -"notification at the top of the chat screen or as an alert. On success, " -":code:`True` is returned." +"keyboards `_. " +"The answer will be displayed to the user as a notification at the top of " +"the chat screen or as an alert. On success, :code:`True` is returned." msgstr "" #: aiogram.methods.answer_callback_query.AnswerCallbackQuery:3 of @@ -120,3 +119,15 @@ msgstr "" #: ../../api/methods/answer_callback_query.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "Use this method to send answers to" +#~ " callback queries sent from `inline " +#~ "keyboards `_. " +#~ "The answer will be displayed to " +#~ "the user as a notification at the" +#~ " top of the chat screen or as" +#~ " an alert. On success, :code:`True` " +#~ "is returned." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_inline_query.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_inline_query.po index 19e24b56..80a46ddd 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_inline_query.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/answer_inline_query.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -85,10 +85,10 @@ msgstr "" #: aiogram.methods.answer_inline_query.AnswerInlineQuery.switch_pm_parameter:1 #: of msgid "" -"`Deep-linking `_ parameter " -"for the /start message sent to the bot when user presses the switch " -"button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, :code:`0-9`, " -":code:`_` and :code:`-` are allowed." +"`Deep-linking `_ " +"parameter for the /start message sent to the bot when user presses the " +"switch button. 1-64 characters, only :code:`A-Z`, :code:`a-z`, " +":code:`0-9`, :code:`_` and :code:`-` are allowed." msgstr "" #: ../../api/methods/answer_inline_query.rst:14 @@ -122,3 +122,13 @@ msgstr "" #: ../../api/methods/answer_inline_query.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "`Deep-linking `_ parameter for the /start " +#~ "message sent to the bot when user" +#~ " presses the switch button. 1-64 " +#~ "characters, only :code:`A-Z`, :code:`a-z`, " +#~ ":code:`0-9`, :code:`_` and :code:`-` are " +#~ "allowed." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/close_forum_topic.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/close_forum_topic.po new file mode 100644 index 00000000..cf6aa076 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/close_forum_topic.po @@ -0,0 +1,82 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/close_forum_topic.rst:3 +msgid "closeForumTopic" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.close_forum_topic.CloseForumTopic:1 of +msgid "" +"Use this method to close an open topic in a forum supergroup chat. The " +"bot must be an administrator in the chat for this to work and must have " +"the *can_manage_topics* administrator rights, unless it is the creator of" +" the topic. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.close_forum_topic.CloseForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#closeforumtopic" +msgstr "" + +#: ../../docstring aiogram.methods.close_forum_topic.CloseForumTopic.chat_id:1 +#: of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.close_forum_topic.CloseForumTopic.message_thread_id:1 of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:29 +msgid ":code:`from aiogram.methods.close_forum_topic import CloseForumTopic`" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:30 +msgid "alias: :code:`from aiogram.methods import CloseForumTopic`" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/close_forum_topic.rst:40 +msgid "As reply into Webhook in handler" +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 d95766d3..93a1ae1a 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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 "Message identifier in the chat specified in *from_chat_id*" msgstr "" +#: ../../docstring aiogram.methods.copy_message.CopyMessage.message_thread_id:1 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.copy_message.CopyMessage.caption:1 of msgid "" "New caption for media, 0-1024 characters after entities parsing. If not " @@ -104,10 +111,10 @@ msgstr "" #: ../../docstring aiogram.methods.copy_message.CopyMessage.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/copy_message.rst:14 @@ -141,3 +148,14 @@ msgstr "" #: ../../api/methods/copy_message.rst:40 msgid "As reply into Webhook in handler" 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/create_forum_topic.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_forum_topic.po new file mode 100644 index 00000000..0baca811 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/create_forum_topic.po @@ -0,0 +1,98 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/create_forum_topic.rst:3 +msgid "createForumTopic" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:5 +msgid "Returns: :obj:`ForumTopic`" +msgstr "" + +#: aiogram.methods.create_forum_topic.CreateForumTopic:1 of +msgid "" +"Use this method to create a topic in a forum supergroup chat. The bot " +"must be an administrator in the chat for this to work and must have the " +"*can_manage_topics* administrator rights. Returns information about the " +"created topic as a :class:`aiogram.types.forum_topic.ForumTopic` object." +msgstr "" + +#: aiogram.methods.create_forum_topic.CreateForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#createforumtopic" +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_forum_topic.CreateForumTopic.chat_id:1 of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring aiogram.methods.create_forum_topic.CreateForumTopic.name:1 +#: of +msgid "Topic name, 1-128 characters" +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_forum_topic.CreateForumTopic.icon_color:1 of +msgid "" +"Color of the topic icon in RGB format. Currently, must be one of " +"0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F" +msgstr "" + +#: ../../docstring +#: aiogram.methods.create_forum_topic.CreateForumTopic.icon_custom_emoji_id:1 +#: of +msgid "" +"Unique identifier of the custom emoji shown as the topic icon. Use " +":class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers`" +" to get all allowed custom emoji identifiers." +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:29 +msgid ":code:`from aiogram.methods.create_forum_topic import CreateForumTopic`" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:30 +msgid "alias: :code:`from aiogram.methods import CreateForumTopic`" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/create_forum_topic.rst:40 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_forum_topic.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_forum_topic.po new file mode 100644 index 00000000..4d2c0306 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_forum_topic.po @@ -0,0 +1,82 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/delete_forum_topic.rst:3 +msgid "deleteForumTopic" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.delete_forum_topic.DeleteForumTopic:1 of +msgid "" +"Use this method to delete a forum topic along with all its messages in a " +"forum supergroup chat. The bot must be an administrator in the chat for " +"this to work and must have the *can_delete_messages* administrator " +"rights. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.delete_forum_topic.DeleteForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#deleteforumtopic" +msgstr "" + +#: ../../docstring +#: aiogram.methods.delete_forum_topic.DeleteForumTopic.chat_id:1 of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.delete_forum_topic.DeleteForumTopic.message_thread_id:1 of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:29 +msgid ":code:`from aiogram.methods.delete_forum_topic import DeleteForumTopic`" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:30 +msgid "alias: :code:`from aiogram.methods import DeleteForumTopic`" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/delete_forum_topic.rst:40 +msgid "As reply into Webhook in handler" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_message.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_message.po index 7b24b058..6b3c136b 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_message.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/delete_message.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -37,43 +37,49 @@ msgstr "" #: aiogram.methods.delete_message.DeleteMessage:5 of msgid "" +"Service messages about a supergroup, channel, or forum topic creation " +"can't be deleted." +msgstr "" + +#: aiogram.methods.delete_message.DeleteMessage:7 of +msgid "" "A dice message in a private chat can only be deleted if it was sent more " "than 24 hours ago." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:7 of +#: aiogram.methods.delete_message.DeleteMessage:9 of msgid "" "Bots can delete outgoing messages in private chats, groups, and " "supergroups." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:9 of +#: aiogram.methods.delete_message.DeleteMessage:11 of msgid "Bots can delete incoming messages in private chats." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:11 of +#: aiogram.methods.delete_message.DeleteMessage:13 of msgid "" "Bots granted *can_post_messages* permissions can delete outgoing messages" " in channels." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:13 of +#: aiogram.methods.delete_message.DeleteMessage:15 of msgid "" "If the bot is an administrator of a group, it can delete any message " "there." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:15 of +#: aiogram.methods.delete_message.DeleteMessage:17 of msgid "" "If the bot has *can_delete_messages* permission in a supergroup or a " "channel, it can delete any message there." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:17 of +#: aiogram.methods.delete_message.DeleteMessage:19 of msgid "Returns :code:`True` on success." msgstr "" -#: aiogram.methods.delete_message.DeleteMessage:19 of +#: aiogram.methods.delete_message.DeleteMessage:21 of msgid "Source: https://core.telegram.org/bots/api#deletemessage" 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 new file mode 100644 index 00000000..7c2214cb --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/edit_forum_topic.po @@ -0,0 +1,93 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/edit_forum_topic.rst:3 +msgid "editForumTopic" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.edit_forum_topic.EditForumTopic:1 of +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 "" + +#: aiogram.methods.edit_forum_topic.EditForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#editforumtopic" +msgstr "" + +#: ../../docstring aiogram.methods.edit_forum_topic.EditForumTopic.chat_id:1 of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.edit_forum_topic.EditForumTopic.message_thread_id:1 of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: ../../docstring aiogram.methods.edit_forum_topic.EditForumTopic.name:1 of +msgid "New topic name, 1-128 characters" +msgstr "" + +#: ../../docstring +#: aiogram.methods.edit_forum_topic.EditForumTopic.icon_custom_emoji_id:1 of +msgid "" +"New unique identifier of the custom emoji shown as the topic icon. Use " +":class:`aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers`" +" to get all allowed custom emoji identifiers" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:29 +msgid ":code:`from aiogram.methods.edit_forum_topic import EditForumTopic`" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:30 +msgid "alias: :code:`from aiogram.methods import EditForumTopic`" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/edit_forum_topic.rst:40 +msgid "As reply into Webhook in handler" +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 89e5884a..65c26608 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -85,8 +85,7 @@ msgstr "" #: aiogram.methods.edit_message_caption.EditMessageCaption.reply_markup:1 of msgid "" "A JSON-serialized object for an `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/edit_message_caption.rst:14 @@ -122,3 +121,10 @@ msgstr "" #: ../../api/methods/edit_message_caption.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for an " +#~ "`inline keyboard `_." +#~ 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 bad77c33..846e40a1 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,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -104,8 +104,7 @@ msgstr "" #: of msgid "" "A JSON-serialized object for a new `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/edit_message_live_location.rst:14 @@ -117,31 +116,37 @@ msgid "As bot method" msgstr "" #: ../../api/methods/edit_message_live_location.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/edit_message_live_location.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:35 +#: ../../api/methods/edit_message_live_location.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:37 +#: ../../api/methods/edit_message_live_location.rst:29 msgid "" ":code:`from aiogram.methods.edit_message_live_location import " "EditMessageLiveLocation`" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:38 +#: ../../api/methods/edit_message_live_location.rst:30 msgid "alias: :code:`from aiogram.methods import EditMessageLiveLocation`" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:41 +#: ../../api/methods/edit_message_live_location.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/edit_message_live_location.rst:48 +#: ../../api/methods/edit_message_live_location.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for a new" +#~ " `inline keyboard `_." +#~ msgstr "" + +#~ msgid "As message method" +#~ 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 59b4019c..b483d389 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,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -72,8 +72,7 @@ msgstr "" #: aiogram.methods.edit_message_media.EditMessageMedia.reply_markup:1 of msgid "" "A JSON-serialized object for a new `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/edit_message_media.rst:14 @@ -85,29 +84,35 @@ msgid "As bot method" msgstr "" #: ../../api/methods/edit_message_media.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/edit_message_media.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/edit_message_media.rst:35 +#: ../../api/methods/edit_message_media.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/edit_message_media.rst:37 +#: ../../api/methods/edit_message_media.rst:29 msgid ":code:`from aiogram.methods.edit_message_media import EditMessageMedia`" msgstr "" -#: ../../api/methods/edit_message_media.rst:38 +#: ../../api/methods/edit_message_media.rst:30 msgid "alias: :code:`from aiogram.methods import EditMessageMedia`" msgstr "" -#: ../../api/methods/edit_message_media.rst:41 +#: ../../api/methods/edit_message_media.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/edit_message_media.rst:48 +#: ../../api/methods/edit_message_media.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for a new" +#~ " `inline keyboard `_." +#~ msgstr "" + +#~ msgid "As message method" +#~ 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 8bc17334..5df2f146 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -67,8 +67,7 @@ msgstr "" #: of msgid "" "A JSON-serialized object for an `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/edit_message_reply_markup.rst:14 @@ -104,3 +103,10 @@ msgstr "" #: ../../api/methods/edit_message_reply_markup.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for an " +#~ "`inline keyboard `_." +#~ 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 03f646d7..a6c06a59 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -89,8 +89,7 @@ msgstr "" #: aiogram.methods.edit_message_text.EditMessageText.reply_markup:1 of msgid "" "A JSON-serialized object for an `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/edit_message_text.rst:14 @@ -124,3 +123,10 @@ msgstr "" #: ../../api/methods/edit_message_text.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for an " +#~ "`inline keyboard `_." +#~ 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 b8c25db1..db6dd825 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: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+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 @@ msgstr "" msgid "Message identifier in the chat specified in *from_chat_id*" msgstr "" +#: ../../docstring +#: aiogram.methods.forward_message.ForwardMessage.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring #: aiogram.methods.forward_message.ForwardMessage.disable_notification:1 of msgid "" @@ -75,29 +82,28 @@ msgid "As bot method" msgstr "" #: ../../api/methods/forward_message.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/forward_message.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/forward_message.rst:35 +#: ../../api/methods/forward_message.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/forward_message.rst:37 +#: ../../api/methods/forward_message.rst:29 msgid ":code:`from aiogram.methods.forward_message import ForwardMessage`" msgstr "" -#: ../../api/methods/forward_message.rst:38 +#: ../../api/methods/forward_message.rst:30 msgid "alias: :code:`from aiogram.methods import ForwardMessage`" msgstr "" -#: ../../api/methods/forward_message.rst:41 +#: ../../api/methods/forward_message.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/forward_message.rst:48 +#: ../../api/methods/forward_message.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "As message method" +#~ 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 98ca25b5..0f5e608b 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,7 +22,9 @@ msgid "getChatMenuButton" msgstr "" #: ../../api/methods/get_chat_menu_button.rst:5 -msgid "Returns: :obj:`MenuButton`" +msgid "" +"Returns: :obj:`Union[MenuButtonDefault, MenuButtonWebApp, " +"MenuButtonCommands]`" msgstr "" #: aiogram.methods.get_chat_menu_button.GetChatMenuButton:1 of @@ -70,3 +72,6 @@ msgstr "" #: ../../api/methods/get_chat_menu_button.rst:33 msgid "With specific bot" msgstr "" + +#~ msgid "Returns: :obj:`MenuButton`" +#~ 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 new file mode 100644 index 00000000..7719981e --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/get_forum_topic_icon_stickers.po @@ -0,0 +1,67 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../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]`" +msgstr "" + +#: aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers:1 of +msgid "" +"Use this method to get custom emoji stickers, which can be used as a " +"forum topic icon by any user. Requires no parameters. Returns an Array of" +" :class:`aiogram.types.sticker.Sticker` objects." +msgstr "" + +#: aiogram.methods.get_forum_topic_icon_stickers.GetForumTopicIconStickers:3 of +msgid "Source: https://core.telegram.org/bots/api#getforumtopiciconstickers" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:29 +msgid "" +":code:`from aiogram.methods.get_forum_topic_icon_stickers import " +"GetForumTopicIconStickers`" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:30 +msgid "alias: :code:`from aiogram.methods import GetForumTopicIconStickers`" +msgstr "" + +#: ../../api/methods/get_forum_topic_icon_stickers.rst:33 +msgid "With specific bot" +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 ffd72a51..5e2232a3 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,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -66,29 +66,28 @@ msgid "As bot method" msgstr "" #: ../../api/methods/pin_chat_message.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/pin_chat_message.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/pin_chat_message.rst:35 +#: ../../api/methods/pin_chat_message.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/pin_chat_message.rst:37 +#: ../../api/methods/pin_chat_message.rst:29 msgid ":code:`from aiogram.methods.pin_chat_message import PinChatMessage`" msgstr "" -#: ../../api/methods/pin_chat_message.rst:38 +#: ../../api/methods/pin_chat_message.rst:30 msgid "alias: :code:`from aiogram.methods import PinChatMessage`" msgstr "" -#: ../../api/methods/pin_chat_message.rst:41 +#: ../../api/methods/pin_chat_message.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/pin_chat_message.rst:48 +#: ../../api/methods/pin_chat_message.rst:40 msgid "As reply into Webhook in handler" 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 b0ab9aa6..202cbbe4 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -124,6 +124,13 @@ msgstr "" msgid "Pass :code:`True` if the administrator can pin messages, 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" +msgstr "" + #: ../../api/methods/promote_chat_member.rst:14 msgid "Usage" msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/reopen_forum_topic.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/reopen_forum_topic.po new file mode 100644 index 00000000..09b013b4 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/reopen_forum_topic.po @@ -0,0 +1,82 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/reopen_forum_topic.rst:3 +msgid "reopenForumTopic" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.reopen_forum_topic.ReopenForumTopic:1 of +msgid "" +"Use this method to reopen a closed topic in a forum supergroup chat. The " +"bot must be an administrator in the chat for this to work and must have " +"the *can_manage_topics* administrator rights, unless it is the creator of" +" the topic. Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.reopen_forum_topic.ReopenForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#reopenforumtopic" +msgstr "" + +#: ../../docstring +#: aiogram.methods.reopen_forum_topic.ReopenForumTopic.chat_id:1 of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.reopen_forum_topic.ReopenForumTopic.message_thread_id:1 of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:29 +msgid ":code:`from aiogram.methods.reopen_forum_topic import ReopenForumTopic`" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:30 +msgid "alias: :code:`from aiogram.methods import ReopenForumTopic`" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/reopen_forum_topic.rst:40 +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 8e8750ee..2aefc24d 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_animation.SendAnimation.duration:1 of msgid "Duration of sent animation in seconds" msgstr "" @@ -126,10 +133,10 @@ msgstr "" #: 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_animation.rst:14 @@ -163,3 +170,14 @@ msgstr "" #: ../../api/methods/send_animation.rst:40 msgid "As reply into Webhook in handler" 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 db40e78a..b423d293 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -54,6 +54,12 @@ msgid "" "Files » `" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_audio.SendAudio.caption:1 of msgid "Audio caption, 0-1024 characters after entities parsing" msgstr "" @@ -121,10 +127,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_audio.SendAudio.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_audio.rst:14 @@ -158,3 +164,14 @@ msgstr "" #: ../../api/methods/send_audio.rst:40 msgid "As reply into Webhook in handler" 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_contact.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_contact.po index e4d4f466..a6bb3db8 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_contact.SendContact.last_name:1 of msgid "Contact's last name" msgstr "" @@ -86,10 +93,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_contact.SendContact.reply_markup:1 of msgid "" "Additional interface options. A JSON-serialized object for an `inline " -"keyboard `_, `custom reply keyboard " -"`_, instructions to remove " -"keyboard or to force a reply from the user." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_contact.rst:14 @@ -123,3 +130,14 @@ msgstr "" #: ../../api/methods/send_contact.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "Additional interface options. A JSON-" +#~ "serialized object for an `inline " +#~ "keyboard `_, " +#~ "`custom reply keyboard " +#~ "`_, instructions " +#~ "to remove 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 cf69a15b..19cf0438 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -42,6 +42,12 @@ msgid "" "(in the format :code:`@channelusername`)" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_dice.SendDice.emoji:1 of msgid "" "Emoji on which the dice throw animation is based. Currently, must be one " @@ -74,10 +80,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_dice.SendDice.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_dice.rst:14 @@ -111,3 +117,14 @@ msgstr "" #: ../../api/methods/send_dice.rst:40 msgid "As reply into Webhook in handler" 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 a9b778d9..334ffbd6 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_document.SendDocument.thumb:1 of msgid "" "Thumbnail of the file sent; can be ignored if thumbnail generation for " @@ -118,10 +125,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_document.SendDocument.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_document.rst:14 @@ -155,3 +162,14 @@ msgstr "" #: ../../api/methods/send_document.rst:40 msgid "As reply into Webhook in handler" 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 8fc35ef1..63aa45a7 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -45,6 +45,12 @@ msgid "" " up your games via `@BotFather `_." 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_game.SendGame.disable_notification:1 of msgid "" "Sends the message `silently `_. If empty, one 'Play game_title' button will be shown. If not" -" empty, the first button must launch the game." +"`_. If empty, " +"one 'Play game_title' button will be shown. If not empty, the first " +"button must launch the game." msgstr "" #: ../../api/methods/send_game.rst:14 @@ -105,3 +111,13 @@ msgstr "" #: ../../api/methods/send_game.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ 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 "" 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 b488bbb9..9817cdac 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -73,6 +73,13 @@ msgid "" "price, tax, discount, delivery cost, delivery tax, bonus, etc.)" msgstr "" +#: ../../docstring aiogram.methods.send_invoice.SendInvoice.message_thread_id:1 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +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 " @@ -198,9 +205,9 @@ msgstr "" #: ../../docstring aiogram.methods.send_invoice.SendInvoice.reply_markup:1 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." +"`_. If empty, " +"one 'Pay :code:`total price`' button will be shown. If not empty, the " +"first button must be a Pay button." msgstr "" #: ../../api/methods/send_invoice.rst:14 @@ -234,3 +241,13 @@ msgstr "" #: ../../api/methods/send_invoice.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ 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 "" 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 2ea95445..864c89aa 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring #: aiogram.methods.send_location.SendLocation.horizontal_accuracy:1 of msgid "The radius of uncertainty for the location, measured in meters; 0-1500" @@ -102,10 +109,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_location.SendLocation.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_location.rst:14 @@ -139,3 +146,14 @@ msgstr "" #: ../../api/methods/send_location.rst:40 msgid "As reply into Webhook in handler" 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 af76b0d3..a3259557 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,13 @@ msgid "" " items" msgstr "" +#: ../../docstring +#: aiogram.methods.send_media_group.SendMediaGroup.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring #: aiogram.methods.send_media_group.SendMediaGroup.disable_notification:1 of msgid "" 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 637b3905..63c7ac2c 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_message.SendMessage.parse_mode:1 of msgid "" "Mode for parsing entities in the message text. See `formatting options " @@ -90,10 +97,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_message.SendMessage.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_message.rst:14 @@ -127,3 +134,14 @@ msgstr "" #: ../../api/methods/send_message.rst:40 msgid "As reply into Webhook in handler" 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_photo.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/send_photo.po index 38c319c4..6c58b959 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,6 +52,12 @@ msgid "" "files>`" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_photo.SendPhoto.caption:1 of msgid "" "Photo caption (may also be used when resending photos by *file_id*), " @@ -97,10 +103,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_photo.SendPhoto.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_photo.rst:14 @@ -134,3 +140,14 @@ msgstr "" #: ../../api/methods/send_photo.rst:40 msgid "As reply into Webhook in handler" 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 1fd71359..9b2d23c2 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -51,6 +51,12 @@ msgid "" "each" msgstr "" +#: ../../docstring aiogram.methods.send_poll.SendPoll.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +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 "" @@ -136,10 +142,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_poll.SendPoll.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_poll.rst:14 @@ -173,3 +179,14 @@ msgstr "" #: ../../api/methods/send_poll.rst:40 msgid "As reply into Webhook in handler" 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 67fbaa64..c06c0d6e 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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 "" "files>`" msgstr "" +#: ../../docstring aiogram.methods.send_sticker.SendSticker.message_thread_id:1 +#: of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring #: aiogram.methods.send_sticker.SendSticker.disable_notification:1 of msgid "" @@ -80,10 +87,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_sticker.SendSticker.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_sticker.rst:14 @@ -117,3 +124,14 @@ msgstr "" #: ../../api/methods/send_sticker.rst:40 msgid "As reply into Webhook in handler" 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 516326f0..fe7d74d9 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -57,6 +57,12 @@ msgstr "" msgid "Address of the venue" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_venue.SendVenue.foursquare_id:1 of msgid "Foursquare identifier of the venue" msgstr "" @@ -104,10 +110,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_venue.SendVenue.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_venue.rst:14 @@ -141,3 +147,14 @@ msgstr "" #: ../../api/methods/send_venue.rst:40 msgid "As reply into Webhook in handler" 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 d25737fa..c57d36ce 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -54,6 +54,12 @@ msgid "" "files>`" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_video.SendVideo.duration:1 of msgid "Duration of sent video in seconds" msgstr "" @@ -127,10 +133,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_video.SendVideo.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_video.rst:14 @@ -164,3 +170,14 @@ msgstr "" #: ../../api/methods/send_video.rst:40 msgid "As reply into Webhook in handler" 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 30d142cb..ee7920ea 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+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.message_thread_id:1 of +msgid "" +"Unique identifier for the target message thread (topic) of the forum; for" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_video_note.SendVideoNote.duration:1 of msgid "Duration of sent video in seconds" msgstr "" @@ -101,10 +108,10 @@ msgstr "" #: 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_video_note.rst:14 @@ -138,3 +145,14 @@ msgstr "" #: ../../api/methods/send_video_note.rst:40 msgid "As reply into Webhook in handler" 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 eaecc63f..3e572b26 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -56,6 +56,12 @@ msgid "" "files>`" 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" +" forum supergroups only" +msgstr "" + #: ../../docstring aiogram.methods.send_voice.SendVoice.caption:1 of msgid "Voice message caption, 0-1024 characters after entities parsing" msgstr "" @@ -103,10 +109,10 @@ msgstr "" #: ../../docstring aiogram.methods.send_voice.SendVoice.reply_markup:1 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." +"keyboard `_, " +"`custom reply keyboard " +"`_, instructions to " +"remove reply keyboard or to force a reply from the user." msgstr "" #: ../../api/methods/send_voice.rst:14 @@ -140,3 +146,14 @@ msgstr "" #: ../../api/methods/send_voice.rst:40 msgid "As reply into Webhook in handler" 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_chat_title.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_chat_title.po index f9baaa4c..90e78ed6 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_chat_title.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_chat_title.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -44,7 +44,7 @@ msgid "" msgstr "" #: ../../docstring aiogram.methods.set_chat_title.SetChatTitle.title:1 of -msgid "New chat title, 1-255 characters" +msgid "New chat title, 1-128 characters" msgstr "" #: ../../api/methods/set_chat_title.rst:14 @@ -78,3 +78,6 @@ msgstr "" #: ../../api/methods/set_chat_title.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "New chat title, 1-255 characters" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_my_commands.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_my_commands.po index db149c21..8a9400fb 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_my_commands.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_my_commands.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -27,11 +27,9 @@ msgstr "" #: aiogram.methods.set_my_commands.SetMyCommands:1 of msgid "" -"Use this method to change the list of the bot's commands. See " -"`https://core.telegram.org/bots#commands " -"`_`https://core.telegram.org/bots#commands" -" `_ for more details about bot " -"commands. Returns :code:`True` on success." +"Use this method to change the list of the bot's commands. See `this " +"manual `_ for more " +"details about bot commands. Returns :code:`True` on success." msgstr "" #: aiogram.methods.set_my_commands.SetMyCommands:3 of @@ -90,3 +88,13 @@ msgstr "" #: ../../api/methods/set_my_commands.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "Use this method to change the list" +#~ " of the bot's commands. See " +#~ "`https://core.telegram.org/bots#commands " +#~ "`_`https://core.telegram.org/bots#commands" +#~ " `_ for more" +#~ " details about bot commands. Returns " +#~ ":code:`True` on success." +#~ 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 54667c46..56765160 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,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -67,8 +67,7 @@ msgstr "" #: of msgid "" "A JSON-serialized object for a new `inline keyboard " -"`_." +"`_." msgstr "" #: ../../api/methods/stop_message_live_location.rst:14 @@ -80,31 +79,37 @@ msgid "As bot method" msgstr "" #: ../../api/methods/stop_message_live_location.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/stop_message_live_location.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:35 +#: ../../api/methods/stop_message_live_location.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:37 +#: ../../api/methods/stop_message_live_location.rst:29 msgid "" ":code:`from aiogram.methods.stop_message_live_location import " "StopMessageLiveLocation`" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:38 +#: ../../api/methods/stop_message_live_location.rst:30 msgid "alias: :code:`from aiogram.methods import StopMessageLiveLocation`" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:41 +#: ../../api/methods/stop_message_live_location.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/stop_message_live_location.rst:48 +#: ../../api/methods/stop_message_live_location.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for a new" +#~ " `inline keyboard `_." +#~ msgstr "" + +#~ msgid "As message method" +#~ 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 f6faf6bb..269a1e06 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -48,8 +48,7 @@ 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 @@ -83,3 +82,10 @@ msgstr "" #: ../../api/methods/stop_poll.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "" +#~ "A JSON-serialized object for a new" +#~ " message `inline keyboard " +#~ "`_." +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/unpin_all_forum_topic_messages.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/unpin_all_forum_topic_messages.po new file mode 100644 index 00000000..bbc5d5ac --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/unpin_all_forum_topic_messages.po @@ -0,0 +1,88 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:3 +msgid "unpinAllForumTopicMessages" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:5 +msgid "Returns: :obj:`bool`" +msgstr "" + +#: aiogram.methods.unpin_all_forum_topic_messages.UnpinAllForumTopicMessages:1 +#: of +msgid "" +"Use this method to clear the list of pinned messages in a forum topic. " +"The bot must be an administrator in the chat for this to work and must " +"have the *can_pin_messages* administrator right in the supergroup. " +"Returns :code:`True` on success." +msgstr "" + +#: aiogram.methods.unpin_all_forum_topic_messages.UnpinAllForumTopicMessages:3 +#: of +msgid "Source: https://core.telegram.org/bots/api#unpinallforumtopicmessages" +msgstr "" + +#: ../../docstring +#: aiogram.methods.unpin_all_forum_topic_messages.UnpinAllForumTopicMessages.chat_id:1 +#: of +msgid "" +"Unique identifier for the target chat or username of the target " +"supergroup (in the format :code:`@supergroupusername`)" +msgstr "" + +#: ../../docstring +#: aiogram.methods.unpin_all_forum_topic_messages.UnpinAllForumTopicMessages.message_thread_id:1 +#: of +msgid "Unique identifier for the target message thread of the forum topic" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:14 +msgid "Usage" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:17 +msgid "As bot method" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:25 +msgid "Method as object" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:27 +msgid "Imports:" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:29 +msgid "" +":code:`from aiogram.methods.unpin_all_forum_topic_messages import " +"UnpinAllForumTopicMessages`" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:30 +msgid "alias: :code:`from aiogram.methods import UnpinAllForumTopicMessages`" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:33 +msgid "With specific bot" +msgstr "" + +#: ../../api/methods/unpin_all_forum_topic_messages.rst:40 +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 bbe0327b..5f08d054 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,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -62,29 +62,28 @@ msgid "As bot method" msgstr "" #: ../../api/methods/unpin_chat_message.rst:25 -msgid "As message method" -msgstr "" - -#: ../../api/methods/unpin_chat_message.rst:33 msgid "Method as object" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:35 +#: ../../api/methods/unpin_chat_message.rst:27 msgid "Imports:" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:37 +#: ../../api/methods/unpin_chat_message.rst:29 msgid ":code:`from aiogram.methods.unpin_chat_message import UnpinChatMessage`" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:38 +#: ../../api/methods/unpin_chat_message.rst:30 msgid "alias: :code:`from aiogram.methods import UnpinChatMessage`" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:41 +#: ../../api/methods/unpin_chat_message.rst:33 msgid "With specific bot" msgstr "" -#: ../../api/methods/unpin_chat_message.rst:48 +#: ../../api/methods/unpin_chat_message.rst:40 msgid "As reply into Webhook in handler" msgstr "" + +#~ msgid "As message method" +#~ msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/callback_query.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/callback_query.po index 36cc74f1..e70f9d02 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/callback_query.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/callback_query.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -24,13 +24,13 @@ msgstr "" #: aiogram.types.callback_query.CallbackQuery:1 of msgid "" "This object represents an incoming callback query from a callback button " -"in an `inline keyboard `_. If the button that originated the query was " -"attached to a message sent by the bot, the field *message* will be " -"present. If the button was attached to a message sent via the bot (in " -"`inline mode `_), the " -"field *inline_message_id* will be present. Exactly one of the fields " -"*data* or *game_short_name* will be present." +"in an `inline keyboard `_. If the button that originated the query was attached to a " +"message sent by the bot, the field *message* will be present. If the " +"button was attached to a message sent via the bot (in `inline mode " +"`_), the field " +"*inline_message_id* will be present. Exactly one of the fields *data* or " +"*game_short_name* will be present." msgstr "" #: aiogram.types.callback_query.CallbackQuery:3 of @@ -104,3 +104,21 @@ msgstr "" #: aiogram.types.callback_query.CallbackQuery.answer of msgid "Returns" msgstr "" + +#~ msgid "" +#~ "This object represents an incoming " +#~ "callback query from a callback button" +#~ " in an `inline keyboard " +#~ "`_. If the " +#~ "button that originated the query was " +#~ "attached to a message sent by the" +#~ " bot, the field *message* will be " +#~ "present. If the button was attached " +#~ "to a message sent via the bot " +#~ "(in `inline mode `_), the field *inline_message_id*" +#~ " will be present. Exactly one of " +#~ "the fields *data* or *game_short_name* " +#~ "will be present." +#~ 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 fc8c1538..882d5c30 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -60,12 +60,34 @@ msgstr "" msgid "*Optional*. Last name of the other party in a private chat" msgstr "" +#: ../../docstring aiogram.types.chat.Chat.is_forum:1 of +msgid "" +"*Optional*. :code:`True`, if the supergroup chat is a forum (has `topics " +"`_ enabled)" +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.active_usernames:1 of +msgid "" +"*Optional*. If non-empty, the list of all `active chat usernames " +"`_; for private chats, supergroups and channels. " +"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 emoji status of the other party in" +" a private chat. Returned only in " +":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 " 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 bb9f8d08..e792b43d 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -110,3 +110,11 @@ 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_manage_topics:1 +#: of +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.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member.po index 767dcbed..2ac6bbc4 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -143,6 +143,12 @@ msgid "" "and supergroups only" msgstr "" +#: ../../docstring aiogram.types.chat_member.ChatMember.can_manage_topics:1 of +msgid "" +"*Optional*. :code:`True`, if the user is allowed to create, rename, " +"close, and reopen forum topics; supergroups only" +msgstr "" + #: ../../docstring aiogram.types.chat_member.ChatMember.is_member:1 of msgid "" "*Optional*. :code:`True`, if the user is a member of the chat at the " 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 51a3d2db..0045c783 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: 2022-10-01 22:51+0300\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -132,6 +132,14 @@ msgid "" "and supergroups only" msgstr "" +#: ../../docstring +#: aiogram.types.chat_member_administrator.ChatMemberAdministrator.can_manage_topics:1 +#: of +msgid "" +"*Optional*. :code:`True`, if the user is allowed to create, rename, " +"close, and reopen forum topics; supergroups only" +msgstr "" + #: ../../docstring #: aiogram.types.chat_member_administrator.ChatMemberAdministrator.custom_title:1 #: of diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_restricted.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_restricted.po index 56bd594f..79784f6d 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_restricted.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_member_restricted.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -69,6 +69,12 @@ msgstr "" msgid ":code:`True`, if the user is allowed to pin messages" msgstr "" +#: ../../docstring +#: aiogram.types.chat_member_restricted.ChatMemberRestricted.can_manage_topics:1 +#: of +msgid ":code:`True`, if the user is allowed to create forum topics" +msgstr "" + #: ../../docstring #: aiogram.types.chat_member_restricted.ChatMemberRestricted.can_send_messages:1 #: of diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_permissions.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_permissions.po index be7fb2f1..d4bb052c 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_permissions.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/chat_permissions.po @@ -8,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -88,3 +88,10 @@ msgid "" "*Optional*. :code:`True`, if the user is allowed to pin messages. Ignored" " in public supergroups" msgstr "" + +#: ../../docstring +#: aiogram.types.chat_permissions.ChatPermissions.can_manage_topics:1 of +msgid "" +"*Optional*. :code:`True`, if the user is allowed to create forum topics. " +"If omitted defaults to the value of can_pin_messages" +msgstr "" 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 b123d694..6e408b99 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -27,7 +27,7 @@ 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 `_." msgstr "" #: aiogram.types.force_reply.ForceReply:3 of @@ -83,3 +83,16 @@ msgid "" ":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 "" + +#~ 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 "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic.po new file mode 100644 index 00000000..c59c0698 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic.po @@ -0,0 +1,47 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/types/forum_topic.rst:3 +msgid "ForumTopic" +msgstr "" + +#: aiogram.types.forum_topic.ForumTopic:1 of +msgid "This object represents a forum topic." +msgstr "" + +#: aiogram.types.forum_topic.ForumTopic:3 of +msgid "Source: https://core.telegram.org/bots/api#forumtopic" +msgstr "" + +#: ../../docstring aiogram.types.forum_topic.ForumTopic.message_thread_id:1 of +msgid "Unique identifier of the forum topic" +msgstr "" + +#: ../../docstring aiogram.types.forum_topic.ForumTopic.name:1 of +msgid "Name of the topic" +msgstr "" + +#: ../../docstring aiogram.types.forum_topic.ForumTopic.icon_color:1 of +msgid "Color of the topic icon in RGB format" +msgstr "" + +#: ../../docstring aiogram.types.forum_topic.ForumTopic.icon_custom_emoji_id:1 +#: of +msgid "*Optional*. Unique identifier of the custom emoji shown as the topic icon" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_closed.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_closed.po new file mode 100644 index 00000000..9fadeb3d --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_closed.po @@ -0,0 +1,32 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/types/forum_topic_closed.rst:3 +msgid "ForumTopicClosed" +msgstr "" + +#: aiogram.types.forum_topic_closed.ForumTopicClosed:1 of +msgid "" +"This object represents a service message about a forum topic closed in " +"the chat. Currently holds no information." +msgstr "" + +#: aiogram.types.forum_topic_closed.ForumTopicClosed:3 of +msgid "Source: https://core.telegram.org/bots/api#forumtopicclosed" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_created.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_created.po new file mode 100644 index 00000000..59855d81 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_created.po @@ -0,0 +1,48 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/types/forum_topic_created.rst:3 +msgid "ForumTopicCreated" +msgstr "" + +#: aiogram.types.forum_topic_created.ForumTopicCreated:1 of +msgid "" +"This object represents a service message about a new forum topic created " +"in the chat." +msgstr "" + +#: aiogram.types.forum_topic_created.ForumTopicCreated:3 of +msgid "Source: https://core.telegram.org/bots/api#forumtopiccreated" +msgstr "" + +#: ../../docstring aiogram.types.forum_topic_created.ForumTopicCreated.name:1 +#: of +msgid "Name of the topic" +msgstr "" + +#: ../../docstring +#: aiogram.types.forum_topic_created.ForumTopicCreated.icon_color:1 of +msgid "Color of the topic icon in RGB format" +msgstr "" + +#: ../../docstring +#: aiogram.types.forum_topic_created.ForumTopicCreated.icon_custom_emoji_id:1 +#: of +msgid "*Optional*. Unique identifier of the custom emoji shown as the topic icon" +msgstr "" diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_reopened.po b/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_reopened.po new file mode 100644 index 00000000..0d202ed8 --- /dev/null +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/forum_topic_reopened.po @@ -0,0 +1,32 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, aiogram Team +# This file is distributed under the same license as the aiogram package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: aiogram \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-06 14:18+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" + +#: ../../api/types/forum_topic_reopened.rst:3 +msgid "ForumTopicReopened" +msgstr "" + +#: aiogram.types.forum_topic_reopened.ForumTopicReopened:1 of +msgid "" +"This object represents a service message about a forum topic reopened in " +"the chat. Currently holds no information." +msgstr "" + +#: aiogram.types.forum_topic_reopened.ForumTopicReopened:3 of +msgid "Source: https://core.telegram.org/bots/api#forumtopicreopened" +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 b049e43e..b516034d 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -24,10 +24,10 @@ msgstr "" #: aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup:1 of 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*." +"`_ 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 "" #: aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup:4 of @@ -42,3 +42,15 @@ msgid "" ":class:`aiogram.types.inline_keyboard_button.InlineKeyboardButton` " "objects" 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 d761d642..6615989c 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -55,8 +55,8 @@ msgstr "" #: aiogram.types.inline_query_result_article.InlineQueryResultArticle.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -95,3 +95,10 @@ msgstr "" #: of msgid "*Optional*. Thumbnail height" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" 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 3dfddc39..9ee8ea87 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -93,8 +93,8 @@ msgstr "" #: aiogram.types.inline_query_result_audio.InlineQueryResultAudio.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -102,3 +102,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the audio" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 2cfb88da..5accdb13 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -81,8 +81,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_audio.InlineQueryResultCachedAudio.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -90,3 +90,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the audio" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 31f3de9b..eb805a02 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -96,8 +96,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_document.InlineQueryResultCachedDocument.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -105,3 +105,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the file" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 edf9387d..ffc4e8f0 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -86,8 +86,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_gif.InlineQueryResultCachedGif.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -95,3 +95,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the GIF animation" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" 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 0b7bab94..96885946 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -89,8 +89,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_mpeg4_gif.InlineQueryResultCachedMpeg4Gif.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -100,3 +100,10 @@ msgid "" "*Optional*. Content of the message to be sent instead of the video " "animation" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" 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 7c02f1c9..965f8ad7 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -94,8 +94,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_photo.InlineQueryResultCachedPhoto.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -103,3 +103,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the photo" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" 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 7ff93dc4..dc79cbca 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -60,8 +60,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_sticker.InlineQueryResultCachedSticker.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -69,3 +69,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the sticker" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 3d7c9d43..3836cf30 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -94,8 +94,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_video.InlineQueryResultCachedVideo.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -103,3 +103,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the video" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" 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 80065211..d2bb9f10 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -88,8 +88,8 @@ msgstr "" #: aiogram.types.inline_query_result_cached_voice.InlineQueryResultCachedVoice.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -97,3 +97,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the voice message" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 a2eb800b..d9620a12 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -74,8 +74,8 @@ msgstr "" #: aiogram.types.inline_query_result_contact.InlineQueryResultContact.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -101,3 +101,10 @@ msgstr "" #: of msgid "*Optional*. Thumbnail height" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 0ea07107..a82f430f 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,7 +8,7 @@ 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: 2022-11-06 14:18+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 @@ msgstr "" #: aiogram.types.inline_query_result_game.InlineQueryResultGame.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 77647404..0e298f7f 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -109,8 +109,8 @@ msgstr "" #: ../../docstring #: aiogram.types.inline_query_result_gif.InlineQueryResultGif.reply_markup:1 of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -118,3 +118,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the GIF animation" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 e941651d..aee2b822 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -100,8 +100,8 @@ msgstr "" #: aiogram.types.inline_query_result_location.InlineQueryResultLocation.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -127,3 +127,10 @@ msgstr "" #: of msgid "*Optional*. Thumbnail height" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 91b260dc..56c4da50 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -120,8 +120,8 @@ msgstr "" #: aiogram.types.inline_query_result_mpeg4_gif.InlineQueryResultMpeg4Gif.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -131,3 +131,10 @@ msgid "" "*Optional*. Content of the message to be sent instead of the video " "animation" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 18beec63..6d189167 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -108,8 +108,8 @@ msgstr "" #: aiogram.types.inline_query_result_photo.InlineQueryResultPhoto.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -117,3 +117,10 @@ msgstr "" #: of msgid "*Optional*. Content of the message to be sent instead of the photo" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" 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 2a466504..2867f687 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -98,8 +98,8 @@ msgstr "" #: aiogram.types.inline_query_result_venue.InlineQueryResultVenue.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -125,3 +125,10 @@ msgstr "" #: of msgid "*Optional*. Thumbnail height" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 bbfd5ddd..379ba6ed 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -124,8 +124,8 @@ msgstr "" #: aiogram.types.inline_query_result_video.InlineQueryResultVideo.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -136,3 +136,10 @@ msgid "" "field is **required** if InlineQueryResultVideo is used to send an HTML-" "page as a result (e.g., a YouTube video)." msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ msgstr "" 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 3c32226e..4f87318b 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,7 +8,7 @@ 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: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -88,8 +88,8 @@ msgstr "" #: aiogram.types.inline_query_result_voice.InlineQueryResultVoice.reply_markup:1 #: of msgid "" -"*Optional*. `Inline keyboard `_ attached to the message" +"*Optional*. `Inline keyboard `_ attached to the message" msgstr "" #: ../../docstring @@ -99,3 +99,10 @@ msgid "" "*Optional*. Content of the message to be sent instead of the voice " "recording" msgstr "" + +#~ msgid "" +#~ "*Optional*. `Inline keyboard " +#~ "`_ attached to " +#~ "the message" +#~ 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 4b8107f9..bab449e0 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: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -41,6 +41,12 @@ msgstr "" msgid "Conversation the message belongs to" msgstr "" +#: ../../docstring aiogram.types.message.Message.message_thread_id:1 of +msgid "" +"*Optional*. Unique identifier of a message thread to which the message " +"belongs; for supergroups only" +msgstr "" + #: ../../docstring aiogram.types.message.Message.from_user:1 of msgid "" "*Optional*. Sender of the message; empty for messages sent to channels. " @@ -93,6 +99,10 @@ msgid "" " Unix time" msgstr "" +#: ../../docstring aiogram.types.message.Message.is_topic_message:1 of +msgid "*Optional*. :code:`True`, if the message is sent to a forum topic" +msgstr "" + #: ../../docstring aiogram.types.message.Message.is_automatic_forward:1 of msgid "" "*Optional*. :code:`True`, if the message is a channel post that was " @@ -329,6 +339,18 @@ msgid "" "proximity alert while sharing Live Location." msgstr "" +#: ../../docstring aiogram.types.message.Message.forum_topic_created:1 of +msgid "*Optional*. Service message: forum topic created" +msgstr "" + +#: ../../docstring aiogram.types.message.Message.forum_topic_closed:1 of +msgid "*Optional*. Service message: forum topic closed" +msgstr "" + +#: ../../docstring aiogram.types.message.Message.forum_topic_reopened:1 of +msgid "*Optional*. Service message: forum topic reopened" +msgstr "" + #: ../../docstring aiogram.types.message.Message.video_chat_scheduled:1 of msgid "*Optional*. Service message: video chat scheduled" 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 04fb86df..d2ffb3dc 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/types/user.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/types/user.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-02 22:41+0200\n" +"POT-Creation-Date: 2022-11-06 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,9 +22,11 @@ msgid "User" msgstr "" #: aiogram.types.user.User:1 of -msgid "" -"This object represents a Telegram user or bot. Source: " -"https://core.telegram.org/bots/api#user" +msgid "This object represents a Telegram user or bot." +msgstr "" + +#: aiogram.types.user.User:3 of +msgid "Source: https://core.telegram.org/bots/api#user" msgstr "" #: ../../docstring aiogram.types.user.User.id:1 of @@ -78,8 +80,8 @@ msgstr "" #: ../../docstring aiogram.types.user.User.can_read_all_group_messages:1 of msgid "" "*Optional*. :code:`True`, if `privacy mode " -"`_ is disabled for the bot. " -"Returned only in :class:`aiogram.methods.get_me.GetMe`." +"`_ is disabled for " +"the bot. Returned only in :class:`aiogram.methods.get_me.GetMe`." msgstr "" #: ../../docstring aiogram.types.user.User.supports_inline_queries:1 of @@ -93,3 +95,16 @@ msgstr "" #~ msgid "Source: https://core.telegram.org/bots/api#user" #~ msgstr "" + +#~ msgid "" +#~ "This object represents a Telegram user" +#~ " or bot. Source: " +#~ "https://core.telegram.org/bots/api#user" +#~ msgstr "" + +#~ msgid "" +#~ "*Optional*. :code:`True`, if `privacy mode " +#~ "`_ is " +#~ "disabled for the bot. Returned only " +#~ "in :class:`aiogram.methods.get_me.GetMe`." +#~ msgstr "" diff --git a/pyproject.toml b/pyproject.toml index 2cafc84b..9d0bb66b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aiogram" -version = "3.0.0-beta.5" +version = "3.0.0-beta.6" description = "Modern and fully asynchronous framework for Telegram Bot API" authors = [ "Alex Root Junior ", diff --git a/tests/test_api/test_methods/test_close_forum_topic.py b/tests/test_api/test_methods/test_close_forum_topic.py new file mode 100644 index 00000000..a9fa87b3 --- /dev/null +++ b/tests/test_api/test_methods/test_close_forum_topic.py @@ -0,0 +1,32 @@ +import pytest + +from aiogram.methods import CloseForumTopic, Request +from tests.mocked_bot import MockedBot + + +class TestCloseForumTopic: + @pytest.mark.asyncio + async def test_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(CloseForumTopic, ok=True, result=True) + + response: bool = await CloseForumTopic( + chat_id=42, + message_thread_id=42, + ) + request: Request = bot.get_request() + assert request.method == "closeForumTopic" + # assert request.data == {} + assert response == prepare_result.result + + @pytest.mark.asyncio + async def test_bot_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(CloseForumTopic, ok=True, result=True) + + response: bool = await bot.close_forum_topic( + chat_id=42, + message_thread_id=42, + ) + request: Request = bot.get_request() + assert request.method == "closeForumTopic" + # assert request.data == {} + assert response == prepare_result.result diff --git a/tests/test_api/test_methods/test_create_forum_topic.py b/tests/test_api/test_methods/test_create_forum_topic.py new file mode 100644 index 00000000..69f5ff3d --- /dev/null +++ b/tests/test_api/test_methods/test_create_forum_topic.py @@ -0,0 +1,41 @@ +import pytest + +from aiogram.methods import CreateForumTopic, Request +from aiogram.types import ForumTopic +from tests.mocked_bot import MockedBot + + +class TestCreateForumTopic: + @pytest.mark.asyncio + async def test_method(self, bot: MockedBot): + prepare_result = bot.add_result_for( + CreateForumTopic, + ok=True, + result=ForumTopic(message_thread_id=42, name="test", icon_color=0xFFD67E), + ) + + response: ForumTopic = await CreateForumTopic( + chat_id=42, + name="test", + ) + request: Request = bot.get_request() + assert request.method == "createForumTopic" + # assert request.data == {} + assert response == prepare_result.result + + @pytest.mark.asyncio + async def test_bot_method(self, bot: MockedBot): + prepare_result = bot.add_result_for( + CreateForumTopic, + ok=True, + result=ForumTopic(message_thread_id=42, name="test", icon_color=0xFFD67E), + ) + + response: ForumTopic = await bot.create_forum_topic( + chat_id=42, + name="test", + ) + request: Request = bot.get_request() + assert request.method == "createForumTopic" + # assert request.data == {} + assert response == prepare_result.result diff --git a/tests/test_api/test_methods/test_delete_forum_topic.py b/tests/test_api/test_methods/test_delete_forum_topic.py new file mode 100644 index 00000000..773627fe --- /dev/null +++ b/tests/test_api/test_methods/test_delete_forum_topic.py @@ -0,0 +1,32 @@ +import pytest + +from aiogram.methods import DeleteForumTopic, Request +from tests.mocked_bot import MockedBot + + +class TestDeleteForumTopic: + @pytest.mark.asyncio + async def test_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(DeleteForumTopic, ok=True, result=True) + + response: bool = await DeleteForumTopic( + chat_id=42, + message_thread_id=42, + ) + request: Request = bot.get_request() + assert request.method == "deleteForumTopic" + # assert request.data == {} + assert response == prepare_result.result + + @pytest.mark.asyncio + async def test_bot_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(DeleteForumTopic, ok=True, result=True) + + response: bool = await bot.delete_forum_topic( + chat_id=42, + message_thread_id=42, + ) + request: Request = bot.get_request() + assert request.method == "deleteForumTopic" + # assert request.data == {} + assert response == prepare_result.result diff --git a/tests/test_api/test_methods/test_edit_forum_topic.py b/tests/test_api/test_methods/test_edit_forum_topic.py new file mode 100644 index 00000000..5441bd9b --- /dev/null +++ b/tests/test_api/test_methods/test_edit_forum_topic.py @@ -0,0 +1,37 @@ +import pytest + +from aiogram.methods import EditForumTopic, Request +from tests.mocked_bot import MockedBot + + +class TestEditForumTopic: + @pytest.mark.asyncio + async def test_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(EditForumTopic, ok=True, result=True) + + response: bool = await EditForumTopic( + chat_id=42, + message_thread_id=42, + name="test", + icon_color=0xFFD67E, + icon_custom_emoji_id="0", + ) + request: Request = bot.get_request() + assert request.method == "editForumTopic" + # assert request.data == {} + assert response == prepare_result.result + + @pytest.mark.asyncio + async def test_bot_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(EditForumTopic, ok=True, result=True) + + response: bool = await bot.edit_forum_topic( + chat_id=42, + message_thread_id=42, + name="test", + icon_custom_emoji_id="0", + ) + request: Request = bot.get_request() + assert request.method == "editForumTopic" + # assert request.data == {} + assert response == prepare_result.result diff --git a/tests/test_api/test_methods/test_get_forum_topic_icon_stickers.py b/tests/test_api/test_methods/test_get_forum_topic_icon_stickers.py new file mode 100644 index 00000000..d8233eea --- /dev/null +++ b/tests/test_api/test_methods/test_get_forum_topic_icon_stickers.py @@ -0,0 +1,29 @@ +from typing import List + +import pytest + +from aiogram.methods import GetForumTopicIconStickers, Request +from aiogram.types import Sticker +from tests.mocked_bot import MockedBot + + +class TestGetForumTopicIconStickers: + @pytest.mark.asyncio + async def test_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(GetForumTopicIconStickers, ok=True, result=[]) + + response: List[Sticker] = await GetForumTopicIconStickers() + request: Request = bot.get_request() + assert request.method == "getForumTopicIconStickers" + # assert request.data == {} + assert response == prepare_result.result + + @pytest.mark.asyncio + async def test_bot_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(GetForumTopicIconStickers, ok=True, result=[]) + + response: List[Sticker] = await bot.get_forum_topic_icon_stickers() + request: Request = bot.get_request() + assert request.method == "getForumTopicIconStickers" + # assert request.data == {} + assert response == prepare_result.result diff --git a/tests/test_api/test_methods/test_reopen_forum_topic.py b/tests/test_api/test_methods/test_reopen_forum_topic.py new file mode 100644 index 00000000..9fe47eac --- /dev/null +++ b/tests/test_api/test_methods/test_reopen_forum_topic.py @@ -0,0 +1,32 @@ +import pytest + +from aiogram.methods import ReopenForumTopic, Request +from tests.mocked_bot import MockedBot + + +class TestReopenForumTopic: + @pytest.mark.asyncio + async def test_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(ReopenForumTopic, ok=True, result=None) + + response: bool = await ReopenForumTopic( + chat_id=42, + message_thread_id=42, + ) + request: Request = bot.get_request() + assert request.method == "reopenForumTopic" + # assert request.data == {} + assert response == prepare_result.result + + @pytest.mark.asyncio + async def test_bot_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(ReopenForumTopic, ok=True, result=None) + + response: bool = await bot.reopen_forum_topic( + chat_id=42, + message_thread_id=42, + ) + request: Request = bot.get_request() + assert request.method == "reopenForumTopic" + # assert request.data == {} + assert response == prepare_result.result diff --git a/tests/test_api/test_methods/test_unpin_all_forum_topic_messages.py b/tests/test_api/test_methods/test_unpin_all_forum_topic_messages.py new file mode 100644 index 00000000..eaf64b69 --- /dev/null +++ b/tests/test_api/test_methods/test_unpin_all_forum_topic_messages.py @@ -0,0 +1,32 @@ +import pytest + +from aiogram.methods import Request, UnpinAllForumTopicMessages +from tests.mocked_bot import MockedBot + + +class TestUnpinAllForumTopicMessages: + @pytest.mark.asyncio + async def test_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(UnpinAllForumTopicMessages, ok=True, result=True) + + response: bool = await UnpinAllForumTopicMessages( + chat_id=42, + message_thread_id=42, + ) + request: Request = bot.get_request() + assert request.method == "unpinAllForumTopicMessages" + # assert request.data == {} + assert response == prepare_result.result + + @pytest.mark.asyncio + async def test_bot_method(self, bot: MockedBot): + prepare_result = bot.add_result_for(UnpinAllForumTopicMessages, ok=True, result=True) + + response: bool = await bot.unpin_all_forum_topic_messages( + chat_id=42, + message_thread_id=42, + ) + request: Request = bot.get_request() + assert request.method == "unpinAllForumTopicMessages" + # assert request.data == {} + assert response == prepare_result.result diff --git a/tests/test_api/test_types/test_message.py b/tests/test_api/test_types/test_message.py index 596b13ab..7eec99c7 100644 --- a/tests/test_api/test_types/test_message.py +++ b/tests/test_api/test_types/test_message.py @@ -42,6 +42,9 @@ from aiogram.types import ( Dice, Document, EncryptedCredentials, + ForumTopicClosed, + ForumTopicCreated, + ForumTopicReopened, Game, InlineKeyboardButton, InlineKeyboardMarkup, @@ -401,6 +404,30 @@ TEST_MESSAGE_WEB_APP_DATA = Message( web_app_data=WebAppData(data="test", button_text="Test"), from_user=User(id=42, is_bot=False, first_name="Test"), ) +TEST_FORUM_TOPIC_CREATED = Message( + message_id=42, + date=datetime.datetime.now(), + chat=Chat(id=42, type="private"), + from_user=User(id=42, is_bot=False, first_name="Test"), + forum_topic_created=ForumTopicCreated( + name="test", + icon_color=0xFFD67E, + ), +) +TEST_FORUM_TOPIC_CLOSED = Message( + message_id=42, + date=datetime.datetime.now(), + chat=Chat(id=42, type="private"), + from_user=User(id=42, is_bot=False, first_name="Test"), + forum_topic_closed=ForumTopicClosed(), +) +TEST_FORUM_TOPIC_REOPENED = Message( + message_id=42, + date=datetime.datetime.now(), + chat=Chat(id=42, type="private"), + from_user=User(id=42, is_bot=False, first_name="Test"), + forum_topic_reopened=ForumTopicReopened(), +) TEST_MESSAGE_UNKNOWN = Message( message_id=42, date=datetime.datetime.now(), @@ -456,6 +483,9 @@ class TestMessage: ], [TEST_MESSAGE_DICE, ContentType.DICE], [TEST_MESSAGE_WEB_APP_DATA, ContentType.WEB_APP_DATA], + [TEST_FORUM_TOPIC_CREATED, ContentType.FORUM_TOPIC_CREATED], + [TEST_FORUM_TOPIC_CLOSED, ContentType.FORUM_TOPIC_CLOSED], + [TEST_FORUM_TOPIC_REOPENED, ContentType.FORUM_TOPIC_REOPENED], [TEST_MESSAGE_UNKNOWN, ContentType.UNKNOWN], ], ) diff --git a/tests/test_filters/test_chat_member_updated.py b/tests/test_filters/test_chat_member_updated.py index a4c5502d..42386a55 100644 --- a/tests/test_filters/test_chat_member_updated.py +++ b/tests/test_filters/test_chat_member_updated.py @@ -333,6 +333,7 @@ class TestChatMemberUpdatedStatusFilter: "can_send_polls": True, "can_send_other_messages": True, "can_add_web_page_previews": True, + "can_manage_topics": True, } event = ChatMemberUpdated( chat=Chat(id=42, type="test"),