init
This commit is contained in:
15
keyboards.py
Normal file
15
keyboards.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
|
||||
|
||||
def get_request_kb():
|
||||
return InlineKeyboardMarkup(inline_keyboard=[
|
||||
[InlineKeyboardButton(text="🔐 Запросить доступ", callback_data="req_access")]
|
||||
])
|
||||
|
||||
def get_admin_decision_kb(user_id: int):
|
||||
"""Кнопки для админа с ID пользователя в callback_data"""
|
||||
return InlineKeyboardMarkup(inline_keyboard=[
|
||||
[
|
||||
InlineKeyboardButton(text="✅ Разрешить", callback_data=f"access_allow_{user_id}"),
|
||||
InlineKeyboardButton(text="🚫 Запретить", callback_data=f"access_deny_{user_id}")
|
||||
]
|
||||
])
|
||||
Reference in New Issue
Block a user