Clean bot class & texts

This commit is contained in:
Alex Root Junior 2023-01-07 23:03:42 +02:00
parent ea0987e7d9
commit d5f3e30215
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
11 changed files with 53 additions and 7707 deletions

View file

@ -9,8 +9,12 @@ This class has aliases for all methods and named in :code:`lower_camel_case`.
For example :code:`sendMessage` named :code:`send_message` and has the same specification with all class-based methods. For example :code:`sendMessage` named :code:`send_message` and has the same specification with all class-based methods.
.. warning::
A full list of methods can be found in the appropriate section of the documentation
.. autoclass:: aiogram.client.bot.Bot .. autoclass:: aiogram.client.bot.Bot
:members: :members: __init__,token,id,context,me,download_file,download
:show-inheritance: :show-inheritance:
:member-order: bysource :member-order: bysource
:special-members: __init__ :special-members: __init__

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: aiogram \n" "Project-Id-Version: aiogram \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-30 22:28+0200\n" "POT-Creation-Date: 2023-01-07 23:01+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -50,8 +50,8 @@ msgstr ""
#: ../../docstring aiogram.methods.edit_forum_topic.EditForumTopic.name:1 of #: ../../docstring aiogram.methods.edit_forum_topic.EditForumTopic.name:1 of
msgid "" msgid ""
"New topic name, 0-128 characters. If not specififed or empty, the current" "New topic name, 0-128 characters. If not specified or empty, the current "
" name of the topic will be kept" "name of the topic will be kept"
msgstr "" msgstr ""
#: ../../docstring #: ../../docstring
@ -94,24 +94,3 @@ msgstr ""
#: ../../api/methods/edit_forum_topic.rst:40 #: ../../api/methods/edit_forum_topic.rst:40
msgid "As reply into Webhook in handler" msgid "As reply into Webhook in handler"
msgstr "" msgstr ""
#~ 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 ""
#~ msgid "New topic name, 1-128 characters"
#~ msgstr ""
#~ 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 ""

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: aiogram \n" "Project-Id-Version: aiogram \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-30 22:28+0200\n" "POT-Creation-Date: 2023-01-07 23:01+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -31,9 +31,9 @@ msgstr ""
#: aiogram.methods.get_chat_member.GetChatMember:1 of #: aiogram.methods.get_chat_member.GetChatMember:1 of
msgid "" msgid ""
"Use this method to get information about a member of a chat. The method " "Use this method to get information about a member of a chat. The method "
"is guaranteed to work only if the bot is an administrator in the chat. " "is guaranteed to work for other users, only if the bot is an "
"Returns a :class:`aiogram.types.chat_member.ChatMember` object on " "administrator in the chat. Returns a "
"success." ":class:`aiogram.types.chat_member.ChatMember` object on success."
msgstr "" msgstr ""
#: aiogram.methods.get_chat_member.GetChatMember:3 of #: aiogram.methods.get_chat_member.GetChatMember:3 of
@ -85,10 +85,3 @@ msgstr ""
#: ../../api/methods/get_chat_member.rst:45 #: ../../api/methods/get_chat_member.rst:45
msgid ":meth:`aiogram.types.chat.Chat.get_member`" msgid ":meth:`aiogram.types.chat.Chat.get_member`"
msgstr "" msgstr ""
#~ msgid ""
#~ "Use this method to get information "
#~ "about a member of a chat. Returns"
#~ " a :class:`aiogram.types.chat_member.ChatMember` object"
#~ " on success."
#~ msgstr ""

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: aiogram \n" "Project-Id-Version: aiogram \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-30 22:28+0200\n" "POT-Creation-Date: 2023-01-07 23:01+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -733,9 +733,9 @@ msgstr ""
#: aiogram.types.chat.Chat.get_member:6 of #: aiogram.types.chat.Chat.get_member:6 of
msgid "" msgid ""
"Use this method to get information about a member of a chat. The method " "Use this method to get information about a member of a chat. The method "
"is guaranteed to work only if the bot is an administrator in the chat. " "is guaranteed to work for other users, only if the bot is an "
"Returns a :class:`aiogram.types.chat_member.ChatMember` object on " "administrator in the chat. Returns a "
"success." ":class:`aiogram.types.chat_member.ChatMember` object on success."
msgstr "" msgstr ""
#: aiogram.types.chat.Chat.get_member:8 of #: aiogram.types.chat.Chat.get_member:8 of
@ -1256,10 +1256,3 @@ msgstr ""
#: aiogram.types.chat.Chat.set_photo:11 of #: aiogram.types.chat.Chat.set_photo:11 of
msgid "instance of method :class:`aiogram.methods.set_chat_photo.SetChatPhoto`" msgid "instance of method :class:`aiogram.methods.set_chat_photo.SetChatPhoto`"
msgstr "" msgstr ""
#~ msgid ""
#~ "Use this method to get information "
#~ "about a member of a chat. Returns"
#~ " a :class:`aiogram.types.chat_member.ChatMember` object"
#~ " on success."
#~ msgstr ""

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: aiogram \n" "Project-Id-Version: aiogram \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-30 22:28+0200\n" "POT-Creation-Date: 2023-01-07 23:01+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -22,7 +22,7 @@ msgid "Changelog"
msgstr "" msgstr ""
#: ../../[towncrier-fragments]:2 #: ../../[towncrier-fragments]:2
msgid "\\ |release| [UNRELEASED DRAFT] (2022-12-30)" msgid "\\ |release| [UNRELEASED DRAFT] (2023-01-07)"
msgstr "" msgstr ""
#: ../../../CHANGES.rst:23 ../../../CHANGES.rst:83 ../../../CHANGES.rst:134 #: ../../../CHANGES.rst:23 ../../../CHANGES.rst:83 ../../../CHANGES.rst:134
@ -2480,25 +2480,3 @@ msgstr ""
#: ../../../HISTORY.rst:497 #: ../../../HISTORY.rst:497
msgid "0.1 (2017-06-03)" msgid "0.1 (2017-06-03)"
msgstr "" msgstr ""
#~ msgid ""
#~ "Added is_chat_creator method to "
#~ "ChatMemberStatus.yml (`#394 "
#~ "<https://github.com/aiogram/aiogram/issues/394>`_)"
#~ msgstr ""
#~ msgid ""
#~ ":code:`is_member` and :code:`is_admin` methods "
#~ "of :code:`ChatMember` and "
#~ ":code:`ChatMemberStatus.yml` was renamed to "
#~ ":code:`is_chat_member` and :code:`is_chat_admin`"
#~ msgstr ""
#~ msgid "\\ |release| [UNRELEASED DRAFT] (2022-11-23)"
#~ msgstr ""
#~ msgid ""
#~ "Added missing shortcuts, new enums, "
#~ "reworked old stuff `#952 "
#~ "<https://github.com/aiogram/aiogram/issues/952>`_"
#~ msgstr ""

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: aiogram \n" "Project-Id-Version: aiogram \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-30 22:28+0200\n" "POT-Creation-Date: 2023-01-07 23:01+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -50,8 +50,8 @@ msgstr ""
#: ../../docstring aiogram.methods.edit_forum_topic.EditForumTopic.name:1 of #: ../../docstring aiogram.methods.edit_forum_topic.EditForumTopic.name:1 of
msgid "" msgid ""
"New topic name, 0-128 characters. If not specififed or empty, the current" "New topic name, 0-128 characters. If not specified or empty, the current "
" name of the topic will be kept" "name of the topic will be kept"
msgstr "" msgstr ""
#: ../../docstring #: ../../docstring
@ -94,24 +94,3 @@ msgstr ""
#: ../../api/methods/edit_forum_topic.rst:40 #: ../../api/methods/edit_forum_topic.rst:40
msgid "As reply into Webhook in handler" msgid "As reply into Webhook in handler"
msgstr "" msgstr ""
#~ 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 ""
#~ msgid "New topic name, 1-128 characters"
#~ msgstr ""
#~ 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 ""

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: aiogram \n" "Project-Id-Version: aiogram \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-30 22:28+0200\n" "POT-Creation-Date: 2023-01-07 23:01+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -31,9 +31,9 @@ msgstr ""
#: aiogram.methods.get_chat_member.GetChatMember:1 of #: aiogram.methods.get_chat_member.GetChatMember:1 of
msgid "" msgid ""
"Use this method to get information about a member of a chat. The method " "Use this method to get information about a member of a chat. The method "
"is guaranteed to work only if the bot is an administrator in the chat. " "is guaranteed to work for other users, only if the bot is an "
"Returns a :class:`aiogram.types.chat_member.ChatMember` object on " "administrator in the chat. Returns a "
"success." ":class:`aiogram.types.chat_member.ChatMember` object on success."
msgstr "" msgstr ""
#: aiogram.methods.get_chat_member.GetChatMember:3 of #: aiogram.methods.get_chat_member.GetChatMember:3 of
@ -85,10 +85,3 @@ msgstr ""
#: ../../api/methods/get_chat_member.rst:45 #: ../../api/methods/get_chat_member.rst:45
msgid ":meth:`aiogram.types.chat.Chat.get_member`" msgid ":meth:`aiogram.types.chat.Chat.get_member`"
msgstr "" msgstr ""
#~ msgid ""
#~ "Use this method to get information "
#~ "about a member of a chat. Returns"
#~ " a :class:`aiogram.types.chat_member.ChatMember` object"
#~ " on success."
#~ msgstr ""

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: aiogram \n" "Project-Id-Version: aiogram \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-30 22:28+0200\n" "POT-Creation-Date: 2023-01-07 23:01+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -733,9 +733,9 @@ msgstr ""
#: aiogram.types.chat.Chat.get_member:6 of #: aiogram.types.chat.Chat.get_member:6 of
msgid "" msgid ""
"Use this method to get information about a member of a chat. The method " "Use this method to get information about a member of a chat. The method "
"is guaranteed to work only if the bot is an administrator in the chat. " "is guaranteed to work for other users, only if the bot is an "
"Returns a :class:`aiogram.types.chat_member.ChatMember` object on " "administrator in the chat. Returns a "
"success." ":class:`aiogram.types.chat_member.ChatMember` object on success."
msgstr "" msgstr ""
#: aiogram.types.chat.Chat.get_member:8 of #: aiogram.types.chat.Chat.get_member:8 of
@ -1256,10 +1256,3 @@ msgstr ""
#: aiogram.types.chat.Chat.set_photo:11 of #: aiogram.types.chat.Chat.set_photo:11 of
msgid "instance of method :class:`aiogram.methods.set_chat_photo.SetChatPhoto`" msgid "instance of method :class:`aiogram.methods.set_chat_photo.SetChatPhoto`"
msgstr "" msgstr ""
#~ msgid ""
#~ "Use this method to get information "
#~ "about a member of a chat. Returns"
#~ " a :class:`aiogram.types.chat_member.ChatMember` object"
#~ " on success."
#~ msgstr ""

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: aiogram \n" "Project-Id-Version: aiogram \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-30 22:28+0200\n" "POT-Creation-Date: 2023-01-07 23:01+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -22,7 +22,7 @@ msgid "Changelog"
msgstr "" msgstr ""
#: ../../[towncrier-fragments]:2 #: ../../[towncrier-fragments]:2
msgid "\\ |release| [UNRELEASED DRAFT] (2022-12-30)" msgid "\\ |release| [UNRELEASED DRAFT] (2023-01-07)"
msgstr "" msgstr ""
#: ../../../CHANGES.rst:23 ../../../CHANGES.rst:83 ../../../CHANGES.rst:134 #: ../../../CHANGES.rst:23 ../../../CHANGES.rst:83 ../../../CHANGES.rst:134
@ -2480,25 +2480,3 @@ msgstr ""
#: ../../../HISTORY.rst:497 #: ../../../HISTORY.rst:497
msgid "0.1 (2017-06-03)" msgid "0.1 (2017-06-03)"
msgstr "" msgstr ""
#~ msgid ""
#~ "Added is_chat_creator method to "
#~ "ChatMemberStatus.yml (`#394 "
#~ "<https://github.com/aiogram/aiogram/issues/394>`_)"
#~ msgstr ""
#~ msgid ""
#~ ":code:`is_member` and :code:`is_admin` methods "
#~ "of :code:`ChatMember` and "
#~ ":code:`ChatMemberStatus.yml` was renamed to "
#~ ":code:`is_chat_member` and :code:`is_chat_admin`"
#~ msgstr ""
#~ msgid "\\ |release| [UNRELEASED DRAFT] (2022-11-23)"
#~ msgstr ""
#~ msgid ""
#~ "Added missing shortcuts, new enums, "
#~ "reworked old stuff `#952 "
#~ "<https://github.com/aiogram/aiogram/issues/952>`_"
#~ msgstr ""