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:
Stefan de Konink 2024-10-22 23:20:03 +02:00
parent 51beb48257
commit da9b7d1ad6

View file

@ -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())