16 lines
502 B
Python
Executable File
16 lines
502 B
Python
Executable File
from aiogram.utils.keyboard import ReplyKeyboardBuilder
|
|
from aiogram.types import KeyboardButton
|
|
|
|
|
|
def get_locks_keyboard(allowed_locks: list):
|
|
kb = ReplyKeyboardBuilder()
|
|
for lock in allowed_locks:
|
|
kb.button(text=lock)
|
|
return kb.as_markup(resize_keyboard=True)
|
|
|
|
|
|
def get_contact_keyboard():
|
|
kb = ReplyKeyboardBuilder()
|
|
kb.add(KeyboardButton(text="Поделиться контактом", request_contact=True))
|
|
return kb.as_markup(resize_keyboard=True)
|