mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-16 12:07:13 +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
77
docs/locale/en/LC_MESSAGES/api/methods/get_file.po
Normal file
77
docs/locale/en/LC_MESSAGES/api/methods/get_file.po
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
# 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_file.rst:3
|
||||
msgid "getFile"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_file.rst:5
|
||||
msgid "Returns: :obj:`File`"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.methods.get_file.GetFile:1 of
|
||||
msgid ""
|
||||
"Use this method to get basic information about a file and prepare it for "
|
||||
"downloading. For the moment, bots can download files of up to 20MB in "
|
||||
"size. On success, a :class:`aiogram.types.file.File` object is returned. "
|
||||
"The file can then be downloaded via the link "
|
||||
":code:`https://api.telegram.org/file/bot<token>/<file_path>`, where "
|
||||
":code:`<file_path>` is taken from the response. It is guaranteed that the"
|
||||
" link will be valid for at least 1 hour. When the link expires, a new one"
|
||||
" can be requested by calling :class:`aiogram.methods.get_file.GetFile` "
|
||||
"again. **Note:** This function may not preserve the original file name "
|
||||
"and MIME type. You should save the file's MIME type and name (if "
|
||||
"available) when the File object is received."
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.methods.get_file.GetFile:4 of
|
||||
msgid "Source: https://core.telegram.org/bots/api#getfile"
|
||||
msgstr ""
|
||||
|
||||
#: ../../docstring aiogram.methods.get_file.GetFile.file_id:1 of
|
||||
msgid "File identifier to get information about"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_file.rst:14
|
||||
msgid "Usage"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_file.rst:17
|
||||
msgid "As bot method"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_file.rst:25
|
||||
msgid "Method as object"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_file.rst:27
|
||||
msgid "Imports:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_file.rst:29
|
||||
msgid ":code:`from aiogram.methods.get_file import GetFile`"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_file.rst:30
|
||||
msgid "alias: :code:`from aiogram.methods import GetFile`"
|
||||
msgstr ""
|
||||
|
||||
#: ../../api/methods/get_file.rst:33
|
||||
msgid "With specific bot"
|
||||
msgstr ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue