mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-16 04:05:47 +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
115
docs/locale/en/LC_MESSAGES/api/methods/get_updates.po
Normal file
115
docs/locale/en/LC_MESSAGES/api/methods/get_updates.po
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
# 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/methods/get_updates.rst:3
|
||||
msgid "getUpdates"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_updates.rst:5
|
||||
msgid "Returns: :obj:`List[Update]`"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.methods.get_updates.GetUpdates:1 of
|
||||
msgid ""
|
||||
"Use this method to receive incoming updates using long polling (`wiki "
|
||||
"<https://en.wikipedia.org/wiki/Push_technology#Long_polling>`_). Returns "
|
||||
"an Array of :class:`aiogram.types.update.Update` objects."
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.methods.get_updates.GetUpdates:3 of
|
||||
msgid "**Notes**"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.methods.get_updates.GetUpdates:5 of
|
||||
msgid "**1.** This method will not work if an outgoing webhook is set up."
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.methods.get_updates.GetUpdates:7 of
|
||||
msgid ""
|
||||
"**2.** In order to avoid getting duplicate updates, recalculate *offset* "
|
||||
"after each server response."
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.methods.get_updates.GetUpdates:9 of
|
||||
msgid "Source: https://core.telegram.org/bots/api#getupdates"
|
||||
msgstr ""
|
||||
|
||||
#: ../../docstring aiogram.methods.get_updates.GetUpdates.offset:1 of
|
||||
msgid ""
|
||||
"Identifier of the first update to be returned. Must be greater by one "
|
||||
"than the highest among the identifiers of previously received updates. By"
|
||||
" default, updates starting with the earliest unconfirmed update are "
|
||||
"returned. An update is considered confirmed as soon as "
|
||||
":class:`aiogram.methods.get_updates.GetUpdates` is called with an "
|
||||
"*offset* higher than its *update_id*. The negative offset can be "
|
||||
"specified to retrieve updates starting from *-offset* update from the end"
|
||||
" of the updates queue. All previous updates will forgotten."
|
||||
msgstr ""
|
||||
|
||||
#: ../../docstring aiogram.methods.get_updates.GetUpdates.limit:1 of
|
||||
msgid ""
|
||||
"Limits the number of updates to be retrieved. Values between 1-100 are "
|
||||
"accepted. Defaults to 100."
|
||||
msgstr ""
|
||||
|
||||
#: ../../docstring aiogram.methods.get_updates.GetUpdates.timeout:1 of
|
||||
msgid ""
|
||||
"Timeout in seconds for long polling. Defaults to 0, i.e. usual short "
|
||||
"polling. Should be positive, short polling should be used for testing "
|
||||
"purposes only."
|
||||
msgstr ""
|
||||
|
||||
#: ../../docstring aiogram.methods.get_updates.GetUpdates.allowed_updates:1 of
|
||||
msgid ""
|
||||
"A JSON-serialized list of the update types you want your bot to receive. "
|
||||
"For example, specify ['message', 'edited_channel_post', 'callback_query']"
|
||||
" to only receive updates of these types. See "
|
||||
":class:`aiogram.types.update.Update` for a complete list of available "
|
||||
"update types. Specify an empty list to receive all update types except "
|
||||
"*chat_member* (default). If not specified, the previous setting will be "
|
||||
"used."
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_updates.rst:14
|
||||
msgid "Usage"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_updates.rst:17
|
||||
msgid "As bot method"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_updates.rst:25
|
||||
msgid "Method as object"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_updates.rst:27
|
||||
msgid "Imports:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_updates.rst:29
|
||||
msgid ":code:`from aiogram.methods.get_updates import GetUpdates`"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_updates.rst:30
|
||||
msgid "alias: :code:`from aiogram.methods import GetUpdates`"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_updates.rst:33
|
||||
msgid "With specific bot"
|
||||
msgstr ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue