mirror of
https://github.com/Llloooggg/TextSouls.git
synced 2026-03-06 12:36:23 +03:00
19 lines
426 B
Python
19 lines
426 B
Python
from aiogram.utils.keyboard import (
|
|
ReplyKeyboardBuilder,
|
|
ReplyKeyboardMarkup,
|
|
KeyboardButton,
|
|
)
|
|
|
|
|
|
def yes_no_kb():
|
|
kb = ReplyKeyboardBuilder()
|
|
kb.button(text="Да")
|
|
kb.button(text="Нет")
|
|
kb.adjust(2)
|
|
return kb.as_markup(resize_keyboard=True)
|
|
|
|
|
|
def row_kb(items):
|
|
row = [KeyboardButton(text=item) for item in items]
|
|
return ReplyKeyboardMarkup(keyboard=[row], resize_keyboard=True)
|