mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-15 11:25:54 +00:00
Remove filters factory, introduce docs translation (#978)
* Rewrite filters * Update README.rst * Fixed tests * Small optimization of the Text filter (TY to @bomzheg) * Remove dataclass slots argument in due to the only Python 3.10 has an slots argument * Fixed mypy * Update tests * Disable Python 3.11 * Fixed #1013: Empty mention should be None instead of empty string. * Added #990 to the changelog * Added #942 to the changelog * Fixed coverage * Update poetry and dependencies * Fixed mypy * Remove deprecated code * Added more tests, update pyproject.toml * Partial update docs * Added initial Docs translation files * Added more changes * Added log message when connection is established in polling process * Fixed action * Disable lint for PyPy * Added changelog for docs translation
This commit is contained in:
parent
94030903ec
commit
f4251382e8
610 changed files with 61738 additions and 1687 deletions
97
docs/locale/en/LC_MESSAGES/api/session/aiohttp.po
Normal file
97
docs/locale/en/LC_MESSAGES/api/session/aiohttp.po
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2022, aiogram Team
|
||||
# This file is distributed under the same license as the aiogram package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: aiogram \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-10-01 22:51+0300\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\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/session/aiohttp.rst:3
|
||||
msgid "aiohttp"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:5
|
||||
msgid ""
|
||||
"AiohttpSession represents a wrapper-class around `ClientSession` from "
|
||||
"`aiohttp <https://pypi.org/project/aiohttp/>`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:7
|
||||
msgid "Currently `AiohttpSession` is a default session used in `aiogram.Bot`"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:12
|
||||
msgid "Usage example"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:24
|
||||
msgid "Proxy requests in AiohttpSession"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:26
|
||||
msgid ""
|
||||
"In order to use AiohttpSession with proxy connector you have to install "
|
||||
"`aiohttp-socks <https://pypi.org/project/aiohttp-socks>`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:28
|
||||
msgid "Binding session to bot:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:41
|
||||
msgid ""
|
||||
"Only following protocols are supported: http(tunneling), socks4(a), "
|
||||
"socks5 as aiohttp_socks `documentation <https://github.com/romis2012"
|
||||
"/aiohttp-socks/blob/master/README.md>`_ claims."
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:46
|
||||
msgid "Authorization"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:48
|
||||
msgid ""
|
||||
"Proxy authorization credentials can be specified in proxy URL or come as "
|
||||
"an instance of :obj:`aiohttp.BasicAuth` containing login and password."
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:51
|
||||
msgid "Consider examples:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:62
|
||||
msgid "or simply include your basic auth credential in URL"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:71
|
||||
msgid ""
|
||||
"Aiogram prefers `BasicAuth` over username and password in URL, so if "
|
||||
"proxy URL contains login and password and `BasicAuth` object is passed at"
|
||||
" the same time aiogram will use login and password from `BasicAuth` "
|
||||
"instance."
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:77
|
||||
msgid "Proxy chains"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:79
|
||||
msgid ""
|
||||
"Since `aiohttp-socks <https://pypi.org/project/aiohttp-socks/>`_ supports"
|
||||
" proxy chains, you're able to use them in aiogram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/aiohttp.rst:81
|
||||
msgid "Example of chain proxies:"
|
||||
msgstr ""
|
||||
74
docs/locale/en/LC_MESSAGES/api/session/base.po
Normal file
74
docs/locale/en/LC_MESSAGES/api/session/base.po
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2022, aiogram Team
|
||||
# This file is distributed under the same license as the aiogram package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: aiogram \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-10-01 22:51+0300\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\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/session/base.rst:3
|
||||
msgid "Base"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/base.rst:5
|
||||
msgid "Abstract session for all client sessions"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.check_response:1 of
|
||||
msgid "Check response status"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.clean_json:1 of
|
||||
msgid "Clean data before send"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.close:1 of
|
||||
msgid "Close client session"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.make_request:1 of
|
||||
msgid "Make request to Telegram Bot API"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.make_request of
|
||||
msgid "Parameters"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.make_request:3 of
|
||||
msgid "Bot instance"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.make_request:4 of
|
||||
msgid "Method instance"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.make_request:5 of
|
||||
msgid "Request timeout"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.make_request of
|
||||
msgid "Returns"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.make_request of
|
||||
msgid "Raises"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.prepare_value:1 of
|
||||
msgid "Prepare value before send"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.session.base.BaseSession.stream_content:1 of
|
||||
msgid "Stream reader"
|
||||
msgstr ""
|
||||
96
docs/locale/en/LC_MESSAGES/api/session/custom_server.po
Normal file
96
docs/locale/en/LC_MESSAGES/api/session/custom_server.po
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2022, aiogram Team
|
||||
# This file is distributed under the same license as the aiogram package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: aiogram \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-10-01 22:51+0300\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\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/session/custom_server.rst:2
|
||||
msgid "Use Custom API server"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.telegram.TelegramAPIServer:1 of
|
||||
msgid "Base config for API Endpoints"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.telegram.TelegramAPIServer.api_url:1 of
|
||||
msgid "Generate URL for API methods"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.telegram.TelegramAPIServer.api_url
|
||||
#: aiogram.client.telegram.TelegramAPIServer.file_url
|
||||
#: aiogram.client.telegram.TelegramAPIServer.from_base of
|
||||
msgid "Parameters"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.telegram.TelegramAPIServer.api_url:3
|
||||
#: aiogram.client.telegram.TelegramAPIServer.file_url:3 of
|
||||
msgid "Bot token"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.telegram.TelegramAPIServer.api_url:4 of
|
||||
msgid "API method name (case insensitive)"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.telegram.TelegramAPIServer.api_url
|
||||
#: aiogram.client.telegram.TelegramAPIServer.file_url
|
||||
#: aiogram.client.telegram.TelegramAPIServer.from_base of
|
||||
msgid "Returns"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.telegram.TelegramAPIServer.api_url:5
|
||||
#: aiogram.client.telegram.TelegramAPIServer.file_url:5 of
|
||||
msgid "URL"
|
||||
msgstr ""
|
||||
|
||||
#: ../../docstring aiogram.client.telegram.TelegramAPIServer.base:1
|
||||
#: aiogram.client.telegram.TelegramAPIServer.from_base:3 of
|
||||
msgid "Base URL"
|
||||
msgstr ""
|
||||
|
||||
#: ../../docstring aiogram.client.telegram.TelegramAPIServer.file:1 of
|
||||
msgid "Files URL"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.telegram.TelegramAPIServer.file_url:1 of
|
||||
msgid "Generate URL for downloading files"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.telegram.TelegramAPIServer.file_url:4 of
|
||||
msgid "file path"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.telegram.TelegramAPIServer.from_base:1 of
|
||||
msgid "Use this method to auto-generate TelegramAPIServer instance from base URL"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.client.telegram.TelegramAPIServer.from_base:4 of
|
||||
msgid "instance of :class:`TelegramAPIServer`"
|
||||
msgstr ""
|
||||
|
||||
#: ../../docstring aiogram.client.telegram.TelegramAPIServer.is_local:1 of
|
||||
msgid ""
|
||||
"Mark this server is in `local mode "
|
||||
"<https://core.telegram.org/bots/api#using-a-local-bot-api-server>`_."
|
||||
msgstr ""
|
||||
|
||||
#: ../../docstring aiogram.client.telegram.TelegramAPIServer.wrap_local_file:1
|
||||
#: of
|
||||
msgid "Callback to wrap files path in local mode"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/custom_server.rst:7
|
||||
msgid "For example, if you want to use self-hosted API server:"
|
||||
msgstr ""
|
||||
26
docs/locale/en/LC_MESSAGES/api/session/index.po
Normal file
26
docs/locale/en/LC_MESSAGES/api/session/index.po
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2022, aiogram Team
|
||||
# This file is distributed under the same license as the aiogram package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: aiogram \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-10-01 22:51+0300\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\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/session/index.rst:3
|
||||
msgid "Client session"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/session/index.rst:5
|
||||
msgid "Client sessions is used for interacting with API server."
|
||||
msgstr ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue