diff --git a/CHANGES/1596.doc.rst b/CHANGES/1596.doc.rst new file mode 100644 index 00000000..126d685b --- /dev/null +++ b/CHANGES/1596.doc.rst @@ -0,0 +1 @@ +Make sure KeyboardBuilder is not suggested to be used directly in the documentation. diff --git a/aiogram/utils/keyboard.py b/aiogram/utils/keyboard.py index 2dba452c..5591a5b7 100644 --- a/aiogram/utils/keyboard.py +++ b/aiogram/utils/keyboard.py @@ -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())