**********************************КОД************************************************************
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
main = ReplyKeyboardMarkup(keyboard=[
[KeyboardButton(text='Корзина')],
[KeyboardButton(text='Контакты')]
])
**********************************КОД************************************************************
from aiogram import Router, F
from aiogram.types import Message
from aiogram.filters import CommandStart
import app.keyboards as kb
router = Router()
@router.message(CommandStart())
async def cmd_start(message: Message):
await message.answer(f'Привет!', reply_markup=kb.main)
**********************************КОД************************************************************
main = ReplyKeyboardMarkup(keyboard=[
[KeyboardButton(text='Корзина')],
[KeyboardButton(text='Контакты')]
],
resize_keyboard=True,
input_field_placeholder='Выберите пункт меню.')
**********************************КОД************************************************************
@router.message(F.text == 'Корзина')
async def basket(message: Message):
await message.answer('В вашей корзине пусто.')
**********************************КОД************************************************************
main = ReplyKeyboardMarkup(keyboard=[
[KeyboardButton(text='Корзина')],
[KeyboardButton(text='Контакты')],
[KeyboardButton(text='Отправить локацию', request_location=True),
KeyboardButton(text='Отправить контакт', request_contact=True)]
],
resize_keyboard=True,
input_field_placeholder='Выберите пункт меню.')