from aiogram import Bot, Dispatcher, types
game_markup = types.ReplyKeyboardMarkup()
btn1 = 'Бросить кубик'
btn2 = 'Бросить в корзину'
game_markup.add(btn1, btn2)
Не работает и выдаёт ошибку:
game_markup = types.ReplyKeyboardMarkup()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\danil\AppData\Roaming\Python\Python311\site-packages\pydantic\main.py", line 164, in __init__
__pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 1 validation error for ReplyKeyboardMarkup
keyboard
Field required [type=missing, input_value={}, input_type=dict]