Template
mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-08-29 16:37:44 +00:00
Update
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# - *- coding: utf- 8 - *-
|
||||
from aiogram.utils.keyboard import ReplyKeyboardBuilder
|
||||
|
||||
from tgbot.data.config import get_admins
|
||||
from tgbot.utils.const_functions import rkb
|
||||
|
||||
|
||||
# Кнопки главного меню
|
||||
def menu_frep(user_id):
|
||||
keyboard = ReplyKeyboardBuilder(
|
||||
).row(
|
||||
rkb("User Inline"), rkb("User Reply"),
|
||||
)
|
||||
|
||||
if user_id in get_admins():
|
||||
keyboard.row(
|
||||
rkb("Admin Inline"), rkb("Admin Reply"),
|
||||
)
|
||||
|
||||
return keyboard.as_markup(resize_keyboard=True)
|
||||
Reference in New Issue
Block a user