mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
* Added full support for the Bot API 9.6 * Add support for `managed_bot` updates * Set `description_parse_mode` default to `"parse_mode"` and use `DateTime` for `addition_date` in `PollOption` * Update changelog with features and changes from Bot API 9.6 * Add changelog fragment generator and update poll parameter descriptions
45 lines
933 B
ReStructuredText
45 lines
933 B
ReStructuredText
##########################
|
|
savePreparedKeyboardButton
|
|
##########################
|
|
|
|
Returns: :obj:`PreparedKeyboardButton`
|
|
|
|
.. automodule:: aiogram.methods.save_prepared_keyboard_button
|
|
:members:
|
|
:member-order: bysource
|
|
:undoc-members: True
|
|
:exclude-members: model_config,model_fields
|
|
|
|
|
|
Usage
|
|
=====
|
|
|
|
As bot method
|
|
-------------
|
|
|
|
.. code-block::
|
|
|
|
result: PreparedKeyboardButton = await bot.save_prepared_keyboard_button(...)
|
|
|
|
|
|
Method as object
|
|
----------------
|
|
|
|
Imports:
|
|
|
|
- :code:`from aiogram.methods.save_prepared_keyboard_button import SavePreparedKeyboardButton`
|
|
- alias: :code:`from aiogram.methods import SavePreparedKeyboardButton`
|
|
|
|
With specific bot
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
result: PreparedKeyboardButton = await bot(SavePreparedKeyboardButton(...))
|
|
|
|
As reply into Webhook in handler
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
return SavePreparedKeyboardButton(...)
|