mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
124 lines
3.3 KiB
Text
124 lines
3.3 KiB
Text
# SOME DESCRIPTIVE TITLE.
|
|
# Copyright (C) 2023, aiogram Team
|
|
# This file is distributed under the same license as the aiogram package.
|
|
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
|
|
#
|
|
#, fuzzy
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: aiogram \n"
|
|
"Report-Msgid-Bugs-To: \n"
|
|
"POT-Creation-Date: 2023-02-26 20:35+0500\n"
|
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
"Language: en\n"
|
|
"Language-Team: en <LL@li.org>\n"
|
|
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=utf-8\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
"Generated-By: Babel 2.9.1\n"
|
|
|
|
#: ../../utils/callback_answer.rst:4
|
|
msgid "Callback answer"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:6
|
|
msgid ""
|
|
"Helper for callback query handlers, can be useful in bots with a lot of "
|
|
"callback handlers to automatically take answer to all requests."
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:10
|
|
msgid "Simple usage"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:12
|
|
msgid ""
|
|
"For use, it is enough to register the inner middleware "
|
|
":class:`aiogram.utils.callback_answer.CallbackAnswerMiddleware` in "
|
|
"dispatcher or specific router:"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:18
|
|
msgid ""
|
|
"After that all handled callback queries will be answered automatically "
|
|
"after processing the handler."
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:21
|
|
msgid "Advanced usage"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:23
|
|
msgid ""
|
|
"In some cases you need to have some non-standard response parameters, "
|
|
"this can be done in several ways:"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:26
|
|
msgid "Global defaults"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:28
|
|
msgid ""
|
|
"Change default parameters while initializing middleware, for example "
|
|
"change answer to `pre` mode and text \"OK\":"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:35
|
|
msgid ""
|
|
"Look at :class:`aiogram.utils.callback_answer.CallbackAnswerMiddleware` "
|
|
"to get all available parameters"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:39
|
|
msgid "Handler specific"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:41
|
|
msgid ""
|
|
"By using :ref:`flags <flags>` you can change the behavior for specific "
|
|
"handler"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:50
|
|
msgid ""
|
|
"Flag arguments is the same as in "
|
|
":class:`aiogram.utils.callback_answer.CallbackAnswerMiddleware` with "
|
|
"additional one :code:`disabled` to disable answer."
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:54
|
|
msgid "A special case"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:56
|
|
msgid ""
|
|
"It is not always correct to answer the same in every case, so there is an"
|
|
" option to change the answer inside the handler. You can get an instance "
|
|
"of :class:`aiogram.utils.callback_answer.CallbackAnswer` object inside "
|
|
"handler and change whatever you want."
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:61
|
|
msgid ""
|
|
"Note that is impossible to change callback answer attributes when you use"
|
|
" :code:`pre=True` mode."
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:76
|
|
msgid "Combine that all at once"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:78
|
|
msgid ""
|
|
"For example you want to answer in most of cases before handler with text "
|
|
"\"🤔\" but at some cases need to answer after the handler with custom "
|
|
"text, so you can do it:"
|
|
msgstr ""
|
|
|
|
#: ../../utils/callback_answer.rst:94
|
|
msgid "Description of objects"
|
|
msgstr ""
|
|
|