12 lines
382 B
Python
Executable File
12 lines
382 B
Python
Executable File
from aiogram.utils.keyboard import ReplyKeyboardBuilder, KeyboardButton
|
|
|
|
|
|
def get_keyboard(authorized: bool):
|
|
kb = ReplyKeyboardBuilder()
|
|
if authorized:
|
|
kb.button(text="Открыть дверь")
|
|
else:
|
|
kb.add(KeyboardButton(text="Поделиться контактом", request_contact=True))
|
|
return kb.as_markup(resize_keyboard=True)
|
|
|