mirror of
https://github.com/Llloooggg/TextSouls.git
synced 2026-03-06 12:36:23 +03:00
backend + telegram: добавлено создание персонажа
This commit is contained in:
18
telegram/textsouls/keyboards/common.py
Normal file
18
telegram/textsouls/keyboards/common.py
Normal 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)
|
||||
Reference in New Issue
Block a user