mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Don't use KeyboardBuilder directly
As discussed in issue #1595 KeyboardBuilder should not be used directly. Instead InlineKeyboardBuilder or ReplyKeyboardBuilder should be used. This fix makes sure that the documentation rendered does not include a "wrong example".
This commit is contained in:
parent
51beb48257
commit
da9b7d1ad6
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ class KeyboardBuilder(Generic[ButtonType], ABC):
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
>>> builder = KeyboardBuilder(button_type=InlineKeyboardButton)
|
||||
>>> builder = InlineKeyboardBuilder(button_type=InlineKeyboardButton)
|
||||
>>> ... # Add buttons to builder
|
||||
>>> markup = InlineKeyboardMarkup(inline_keyboard=builder.export())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue