mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-07-25 09:44:29 +00:00
23 lines
536 B
Python
23 lines
536 B
Python
# - *- coding: utf- 8 - *-
|
|
from aiogram.utils.keyboard import InlineKeyboardBuilder
|
|
|
|
from tgbot.data.config import get_admins
|
|
from tgbot.utils.const_functions import ikb
|
|
|
|
|
|
# Кнопки инлайн меню
|
|
def menu_finl(user_id):
|
|
keyboard = InlineKeyboardBuilder(
|
|
).row(
|
|
ikb("User 1", data="..."),
|
|
ikb("User 2", data="..."),
|
|
)
|
|
|
|
if user_id in get_admins():
|
|
keyboard.row(
|
|
ikb("Admin 1", data="..."),
|
|
ikb("Admin 2", data="..."),
|
|
)
|
|
|
|
return keyboard.as_markup()
|