**********************************КОД************************************************************
data = ("Nike", "Adidas", "Reebok")
**********************************КОД************************************************************
from aiogram.types import (ReplyKeyboardMarkup, KeyboardButton,
InlineKeyboardMarkup, InlineKeyboardButton)
data = ("Nike", "Adidas", "Reebok")
def brands():
buttons = []
for brand in data:
buttons.append([KeyboardButton(text=brand)])
keyboard = ReplyKeyboardMarkup(keyboard=buttons)
return keyboard
**********************************КОД************************************************************
from aiogram.types import KeyboardButton, InlineKeyboardButton
from aiogram.utils.keyboard import ReplyKeyboardBuilder, InlineKeyboardBuilder
data = ("Nike", "Adidas", "Reebok")
def brands():
keyboard = ReplyKeyboardBuilder()
for brand in data:
keyboard.add(KeyboardButton(text=brand))
return keyboard.adjust(2).as_markup()