backend + telegram: добавлено создание персонажа

This commit is contained in:
2022-11-19 01:31:35 +03:00
parent 2bc6931525
commit 194b5aaff1
11 changed files with 291 additions and 51 deletions

View File

@@ -0,0 +1,18 @@
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)