mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
More docs
This commit is contained in:
parent
3931253a88
commit
f97367b3ee
16 changed files with 415 additions and 100 deletions
|
|
@ -126,7 +126,7 @@ Deal with Babel
|
|||
===============
|
||||
|
||||
Step 1: Extract messages
|
||||
-------------------
|
||||
------------------------
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
|
|
@ -148,7 +148,7 @@ is template where messages will be extracted and `messages` is translation domai
|
|||
|
||||
|
||||
Step 2: Init language
|
||||
----------------
|
||||
---------------------
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
|
|
|
|||
|
|
@ -2,23 +2,40 @@
|
|||
Keyboard builder
|
||||
================
|
||||
|
||||
Inline Keyboard
|
||||
===============
|
||||
|
||||
.. autoclass:: aiogram.utils.keyboard.InlineKeyboardBuilder
|
||||
:members: __init__, buttons, copy, export, add, row, adjust, button, as_markup
|
||||
:undoc-members: True
|
||||
|
||||
Reply Keyboard
|
||||
==============
|
||||
|
||||
.. autoclass:: aiogram.utils.keyboard.ReplyKeyboardBuilder
|
||||
:members: __init__, buttons, copy, export, add, row, adjust, button, as_markup
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Base builder
|
||||
============
|
||||
.. autoclass:: aiogram.utils.keyboard.ReplyKeyboardBuilder
|
||||
:members: __init__, buttons, copy, export, add, row, adjust, button, as_markup
|
||||
:undoc-members: True
|
||||
|
||||
Inline Keyboard
|
||||
===============
|
||||
|
||||
.. autoclass:: aiogram.utils.keyboard.InlineKeyboardBuilder
|
||||
:noindex:
|
||||
|
||||
.. method:: button(text: str, url: Optional[str] = None, login_url: Optional[LoginUrl] = None, callback_data: Optional[Union[str, CallbackData]] = None, switch_inline_query: Optional[str] = None, switch_inline_query_current_chat: Optional[str] = None, callback_game: Optional[CallbackGame] = None, pay: Optional[bool] = None, **kwargs: Any) -> aiogram.utils.keyboard.InlineKeyboardBuilder
|
||||
:noindex:
|
||||
|
||||
Add new inline button to markup
|
||||
|
||||
.. method:: as_markup() -> aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup
|
||||
:noindex:
|
||||
|
||||
Construct an InlineKeyboardMarkup
|
||||
|
||||
Reply Keyboard
|
||||
==============
|
||||
|
||||
.. autoclass:: aiogram.utils.keyboard.ReplyKeyboardBuilder
|
||||
:noindex:
|
||||
|
||||
.. method:: button(text: str, request_contact: Optional[bool] = None, request_location: Optional[bool] = None, request_poll: Optional[KeyboardButtonPollType] = None, **kwargs: Any) -> aiogram.utils.keyboard.ReplyKeyboardBuilder
|
||||
:noindex:
|
||||
|
||||
Add new button to markup
|
||||
|
||||
.. method:: as_markup() -> aiogram.types.reply_keyboard_markup.ReplyKeyboardMarkup
|
||||
:noindex:
|
||||
|
||||
Construct an ReplyKeyboardMarkup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue