From 94939660c737c8361d4fa17dcf9b7372443da890 Mon Sep 17 00:00:00 2001 From: JRoot Junior Date: Fri, 24 Nov 2023 21:26:33 +0200 Subject: [PATCH] Update texts --- docs/api/methods/delete_message.rst | 2 +- docs/api/methods/index.rst | 124 ++++++++++----------- docs/api/methods/pin_chat_message.rst | 2 +- docs/api/methods/send_animation.rst | 2 +- docs/api/methods/send_audio.rst | 2 +- docs/api/methods/send_contact.rst | 2 +- docs/api/methods/send_dice.rst | 2 +- docs/api/methods/send_document.rst | 2 +- docs/api/methods/send_game.rst | 2 +- docs/api/methods/send_invoice.rst | 2 +- docs/api/methods/send_location.rst | 2 +- docs/api/methods/send_media_group.rst | 2 +- docs/api/methods/send_message.rst | 2 +- docs/api/methods/send_photo.rst | 2 +- docs/api/methods/send_poll.rst | 2 +- docs/api/methods/send_sticker.rst | 2 +- docs/api/methods/send_venue.rst | 2 +- docs/api/methods/send_video.rst | 2 +- docs/api/methods/send_video_note.rst | 2 +- docs/api/methods/send_voice.rst | 2 +- docs/api/methods/unpin_chat_message.rst | 2 +- docs/api/types/index.rst | 116 +++++++++---------- docs/locale/uk_UA/LC_MESSAGES/changelog.po | 46 ++------ docs/utils/index.rst | 1 + 24 files changed, 149 insertions(+), 178 deletions(-) diff --git a/docs/api/methods/delete_message.rst b/docs/api/methods/delete_message.rst index dade9117..3ad298f0 100644 --- a/docs/api/methods/delete_message.rst +++ b/docs/api/methods/delete_message.rst @@ -48,5 +48,5 @@ As reply into Webhook in handler As shortcut from received object -------------------------------- -- :meth:`aiogram.types.message.Message.delete` - :meth:`aiogram.types.chat.Chat.delete_message` +- :meth:`aiogram.types.message.Message.delete` diff --git a/docs/api/methods/index.rst b/docs/api/methods/index.rst index e63e35b7..f8ab38ff 100644 --- a/docs/api/methods/index.rst +++ b/docs/api/methods/index.rst @@ -5,6 +5,28 @@ Methods Here is list of all available API methods: +Stickers +======== + +.. toctree:: + :maxdepth: 1 + + add_sticker_to_set + create_new_sticker_set + delete_sticker_from_set + delete_sticker_set + get_custom_emoji_stickers + get_sticker_set + send_sticker + set_custom_emoji_sticker_set_thumbnail + set_sticker_emoji_list + set_sticker_keywords + set_sticker_mask_position + set_sticker_position_in_set + set_sticker_set_thumbnail + set_sticker_set_title + upload_sticker_file + Available methods ================= @@ -89,68 +111,6 @@ Available methods unpin_all_general_forum_topic_messages unpin_chat_message -Payments -======== - -.. toctree:: - :maxdepth: 1 - - answer_pre_checkout_query - answer_shipping_query - create_invoice_link - send_invoice - -Stickers -======== - -.. toctree:: - :maxdepth: 1 - - add_sticker_to_set - create_new_sticker_set - delete_sticker_from_set - delete_sticker_set - get_custom_emoji_stickers - get_sticker_set - send_sticker - set_custom_emoji_sticker_set_thumbnail - set_sticker_emoji_list - set_sticker_keywords - set_sticker_mask_position - set_sticker_position_in_set - set_sticker_set_thumbnail - set_sticker_set_title - upload_sticker_file - -Games -===== - -.. toctree:: - :maxdepth: 1 - - get_game_high_scores - send_game - set_game_score - -Getting updates -=============== - -.. toctree:: - :maxdepth: 1 - - delete_webhook - get_updates - get_webhook_info - set_webhook - -Telegram Passport -================= - -.. toctree:: - :maxdepth: 1 - - set_passport_data_errors - Updating messages ================= @@ -174,3 +134,43 @@ Inline mode answer_inline_query answer_web_app_query + +Games +===== + +.. toctree:: + :maxdepth: 1 + + get_game_high_scores + send_game + set_game_score + +Payments +======== + +.. toctree:: + :maxdepth: 1 + + answer_pre_checkout_query + answer_shipping_query + create_invoice_link + send_invoice + +Getting updates +=============== + +.. toctree:: + :maxdepth: 1 + + delete_webhook + get_updates + get_webhook_info + set_webhook + +Telegram Passport +================= + +.. toctree:: + :maxdepth: 1 + + set_passport_data_errors diff --git a/docs/api/methods/pin_chat_message.rst b/docs/api/methods/pin_chat_message.rst index 6c6756bd..e6374d29 100644 --- a/docs/api/methods/pin_chat_message.rst +++ b/docs/api/methods/pin_chat_message.rst @@ -48,5 +48,5 @@ As reply into Webhook in handler As shortcut from received object -------------------------------- -- :meth:`aiogram.types.message.Message.pin` - :meth:`aiogram.types.chat.Chat.pin_message` +- :meth:`aiogram.types.message.Message.pin` diff --git a/docs/api/methods/send_animation.rst b/docs/api/methods/send_animation.rst index 2bc2d9a5..5c6782cb 100644 --- a/docs/api/methods/send_animation.rst +++ b/docs/api/methods/send_animation.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_animation` - :meth:`aiogram.types.message.Message.reply_animation` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_animation` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_animation_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_animation` diff --git a/docs/api/methods/send_audio.rst b/docs/api/methods/send_audio.rst index 569e7e2b..2dbde591 100644 --- a/docs/api/methods/send_audio.rst +++ b/docs/api/methods/send_audio.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_audio` - :meth:`aiogram.types.message.Message.reply_audio` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_audio` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_audio_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_audio` diff --git a/docs/api/methods/send_contact.rst b/docs/api/methods/send_contact.rst index c39f5186..460a7702 100644 --- a/docs/api/methods/send_contact.rst +++ b/docs/api/methods/send_contact.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_contact` - :meth:`aiogram.types.message.Message.reply_contact` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_contact` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_contact_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_contact` diff --git a/docs/api/methods/send_dice.rst b/docs/api/methods/send_dice.rst index 3624a0e9..aa665be9 100644 --- a/docs/api/methods/send_dice.rst +++ b/docs/api/methods/send_dice.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_dice` - :meth:`aiogram.types.message.Message.reply_dice` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_dice` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_dice_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_dice` diff --git a/docs/api/methods/send_document.rst b/docs/api/methods/send_document.rst index 3a5af639..5b979c56 100644 --- a/docs/api/methods/send_document.rst +++ b/docs/api/methods/send_document.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_document` - :meth:`aiogram.types.message.Message.reply_document` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_document` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_document_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_document` diff --git a/docs/api/methods/send_game.rst b/docs/api/methods/send_game.rst index 4bf86c7a..9015b3f4 100644 --- a/docs/api/methods/send_game.rst +++ b/docs/api/methods/send_game.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_game` - :meth:`aiogram.types.message.Message.reply_game` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_game` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_game_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_game` diff --git a/docs/api/methods/send_invoice.rst b/docs/api/methods/send_invoice.rst index fcd7818c..7737f402 100644 --- a/docs/api/methods/send_invoice.rst +++ b/docs/api/methods/send_invoice.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_invoice` - :meth:`aiogram.types.message.Message.reply_invoice` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_invoice_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_invoice` diff --git a/docs/api/methods/send_location.rst b/docs/api/methods/send_location.rst index db9acffe..4bea6902 100644 --- a/docs/api/methods/send_location.rst +++ b/docs/api/methods/send_location.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_location` - :meth:`aiogram.types.message.Message.reply_location` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_location` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_location_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_location` diff --git a/docs/api/methods/send_media_group.rst b/docs/api/methods/send_media_group.rst index ec43022c..21823573 100644 --- a/docs/api/methods/send_media_group.rst +++ b/docs/api/methods/send_media_group.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_media_group` - :meth:`aiogram.types.message.Message.reply_media_group` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_media_group_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_media_group` diff --git a/docs/api/methods/send_message.rst b/docs/api/methods/send_message.rst index d3157f50..fee3bfa5 100644 --- a/docs/api/methods/send_message.rst +++ b/docs/api/methods/send_message.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer` - :meth:`aiogram.types.message.Message.reply` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer` diff --git a/docs/api/methods/send_photo.rst b/docs/api/methods/send_photo.rst index d7ce9653..c9797fc0 100644 --- a/docs/api/methods/send_photo.rst +++ b/docs/api/methods/send_photo.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_photo` - :meth:`aiogram.types.message.Message.reply_photo` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_photo` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_photo_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_photo` diff --git a/docs/api/methods/send_poll.rst b/docs/api/methods/send_poll.rst index e92e15b5..d81f042c 100644 --- a/docs/api/methods/send_poll.rst +++ b/docs/api/methods/send_poll.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_poll` - :meth:`aiogram.types.message.Message.reply_poll` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_poll` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_poll_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_poll` diff --git a/docs/api/methods/send_sticker.rst b/docs/api/methods/send_sticker.rst index ea5334af..9399b7e1 100644 --- a/docs/api/methods/send_sticker.rst +++ b/docs/api/methods/send_sticker.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_sticker` - :meth:`aiogram.types.message.Message.reply_sticker` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_sticker_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_sticker` diff --git a/docs/api/methods/send_venue.rst b/docs/api/methods/send_venue.rst index d7a09910..ec42e991 100644 --- a/docs/api/methods/send_venue.rst +++ b/docs/api/methods/send_venue.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_venue` - :meth:`aiogram.types.message.Message.reply_venue` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_venue` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue` diff --git a/docs/api/methods/send_video.rst b/docs/api/methods/send_video.rst index 899779da..db454359 100644 --- a/docs/api/methods/send_video.rst +++ b/docs/api/methods/send_video.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_video` - :meth:`aiogram.types.message.Message.reply_video` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_video` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_video_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video` diff --git a/docs/api/methods/send_video_note.rst b/docs/api/methods/send_video_note.rst index 80dbe859..6bc89b09 100644 --- a/docs/api/methods/send_video_note.rst +++ b/docs/api/methods/send_video_note.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_video_note` - :meth:`aiogram.types.message.Message.reply_video_note` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_video_note_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_video_note` diff --git a/docs/api/methods/send_voice.rst b/docs/api/methods/send_voice.rst index 8d81b707..2e4ffc72 100644 --- a/docs/api/methods/send_voice.rst +++ b/docs/api/methods/send_voice.rst @@ -50,6 +50,6 @@ As shortcut from received object - :meth:`aiogram.types.message.Message.answer_voice` - :meth:`aiogram.types.message.Message.reply_voice` -- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_voice` - :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_voice_pm` +- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_voice` diff --git a/docs/api/methods/unpin_chat_message.rst b/docs/api/methods/unpin_chat_message.rst index 003c83b8..bfc3d614 100644 --- a/docs/api/methods/unpin_chat_message.rst +++ b/docs/api/methods/unpin_chat_message.rst @@ -48,5 +48,5 @@ As reply into Webhook in handler As shortcut from received object -------------------------------- -- :meth:`aiogram.types.message.Message.unpin` - :meth:`aiogram.types.chat.Chat.unpin_message` +- :meth:`aiogram.types.message.Message.unpin` diff --git a/docs/api/types/index.rst b/docs/api/types/index.rst index 20d71e22..be0769ec 100644 --- a/docs/api/types/index.rst +++ b/docs/api/types/index.rst @@ -5,44 +5,6 @@ Types Here is list of all available API types: -Inline mode -=========== - -.. toctree:: - :maxdepth: 1 - - chosen_inline_result - inline_query - inline_query_result - inline_query_result_article - inline_query_result_audio - inline_query_result_cached_audio - inline_query_result_cached_document - inline_query_result_cached_gif - inline_query_result_cached_mpeg4_gif - inline_query_result_cached_photo - inline_query_result_cached_sticker - inline_query_result_cached_video - inline_query_result_cached_voice - inline_query_result_contact - inline_query_result_document - inline_query_result_game - inline_query_result_gif - inline_query_result_location - inline_query_result_mpeg4_gif - inline_query_result_photo - inline_query_result_venue - inline_query_result_video - inline_query_result_voice - inline_query_results_button - input_contact_message_content - input_invoice_message_content - input_location_message_content - input_message_content - input_text_message_content - input_venue_message_content - sent_web_app_message - Available types =============== @@ -140,6 +102,55 @@ Available types web_app_info write_access_allowed +Inline mode +=========== + +.. toctree:: + :maxdepth: 1 + + chosen_inline_result + inline_query + inline_query_result + inline_query_result_article + inline_query_result_audio + inline_query_result_cached_audio + inline_query_result_cached_document + inline_query_result_cached_gif + inline_query_result_cached_mpeg4_gif + inline_query_result_cached_photo + inline_query_result_cached_sticker + inline_query_result_cached_video + inline_query_result_cached_voice + inline_query_result_contact + inline_query_result_document + inline_query_result_game + inline_query_result_gif + inline_query_result_location + inline_query_result_mpeg4_gif + inline_query_result_photo + inline_query_result_venue + inline_query_result_video + inline_query_result_voice + inline_query_results_button + input_contact_message_content + input_invoice_message_content + input_location_message_content + input_message_content + input_text_message_content + input_venue_message_content + sent_web_app_message + +Stickers +======== + +.. toctree:: + :maxdepth: 1 + + input_sticker + mask_position + sticker + sticker_set + Telegram Passport ================= @@ -161,26 +172,6 @@ Telegram Passport passport_element_error_unspecified passport_file -Getting updates -=============== - -.. toctree:: - :maxdepth: 1 - - update - webhook_info - -Stickers -======== - -.. toctree:: - :maxdepth: 1 - - input_sticker - mask_position - sticker - sticker_set - Payments ======== @@ -196,6 +187,15 @@ Payments shipping_query successful_payment +Getting updates +=============== + +.. toctree:: + :maxdepth: 1 + + update + webhook_info + Games ===== diff --git a/docs/locale/uk_UA/LC_MESSAGES/changelog.po b/docs/locale/uk_UA/LC_MESSAGES/changelog.po index d30c0179..a5da0969 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/changelog.po +++ b/docs/locale/uk_UA/LC_MESSAGES/changelog.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: aiogram \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-23 00:44+0200\n" +"POT-Creation-Date: 2023-11-24 21:10+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,7 +22,7 @@ msgid "Changelog" msgstr "" #: ../../[towncrier-fragments]:2 -msgid "\\ |release| [UNRELEASED DRAFT] (2023-11-23)" +msgid "\\ |release| [UNRELEASED DRAFT] (2023-11-24)" msgstr "" #: ../../../CHANGES.rst:33 ../../../CHANGES.rst:122 ../../../CHANGES.rst:180 @@ -186,6 +186,12 @@ msgid "" "`_" msgstr "" +#: ../../[towncrier-fragments]:61 +msgid "" +"Updated :code:`thumbnail` fields type to :code:`InputFile` only `#1372 " +"`_" +msgstr "" + #: ../../../CHANGES.rst:20 msgid "3.1.1 (2023-09-25)" msgstr "" @@ -3253,39 +3259,3 @@ msgstr "" #: ../../../HISTORY.rst:497 msgid "0.1 (2017-06-03)" msgstr "" - -#~ msgid "\\ |release| [UNRELEASED DRAFT] (2023-10-08)" -#~ msgstr "" - -#~ msgid "\\ |release| [UNRELEASED DRAFT] (2023-10-29)" -#~ msgstr "" - -#~ msgid "\\ |release| [UNRELEASED DRAFT] (2023-11-16)" -#~ msgstr "" - -#~ msgid "" -#~ "The new FSM strategy CHAT_TOPIC, which" -#~ " sets the state for the entire " -#~ "topic in the chat, also works in" -#~ " private messages and regular groups " -#~ "without topics. `#1343 " -#~ "`_" -#~ msgstr "" - -#~ msgid "" -#~ "Fixed ``parse_mode`` in ``send_copy`` helper." -#~ " Disable by default. `#1332 " -#~ "`_" -#~ msgstr "" - -#~ msgid "" -#~ "Added current handler to filters, so " -#~ "that flags can be retrieved from " -#~ "it. `#1360 " -#~ "`_" -#~ msgstr "" - -#~ msgid "" -#~ "Added pydantic v2.5 support. `#1361 " -#~ "`_" -#~ msgstr "" diff --git a/docs/utils/index.rst b/docs/utils/index.rst index 034c04d8..10df8c84 100644 --- a/docs/utils/index.rst +++ b/docs/utils/index.rst @@ -11,3 +11,4 @@ Utils callback_answer formatting media_group + deep_linking