You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
594 B
16 lines
594 B
2 years ago
|
#-*-coding utf-8-*-
|
||
|
# Общественное достояние 2023, Алексей Безбородов (Alexei Bezborodov) <AlexeiBv+mirocod_platform_bot@narod.ru>
|
||
|
|
||
|
# Работа с кнопками и клавиатурой
|
||
|
|
||
|
from aiogram import types, Bot, Dispatcher
|
||
|
from aiogram.types import ReplyKeyboardRemove, ReplyKeyboardMarkup, KeyboardButton, InlineKeyboardMarkup, InlineKeyboardButton
|
||
|
|
||
|
def MakeKeyboard(a_ButtonList):
|
||
|
key = types.ReplyKeyboardMarkup(resize_keyboard = True)
|
||
|
for b in a_ButtonList:
|
||
|
k = types.KeyboardButton(b)
|
||
|
key.add(k)
|
||
|
|
||
|
return key
|