This commit is contained in:
Stefan de Konink 2026-04-04 20:44:46 +00:00 committed by GitHub
commit aeffdf85f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

1
CHANGES/1596.doc.rst Normal file
View file

@ -0,0 +1 @@
Make sure KeyboardBuilder is not suggested to be used directly in the documentation.

View file

@ -150,7 +150,7 @@ class KeyboardBuilder(ABC, Generic[ButtonType]):
.. code-block:: python
>>> builder = KeyboardBuilder(button_type=InlineKeyboardButton)
>>> builder = InlineKeyboardBuilder(button_type=InlineKeyboardButton)
>>> ... # Add buttons to builder
>>> markup = InlineKeyboardMarkup(inline_keyboard=builder.export())