tgadmin/bot/markups/adminmarkup.py
2024-07-25 15:19:15 +03:00

32 lines
1.1 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from config import types, InlineKeyboardBuilder
from filters import filtersbot
from sql_function import databasework
def admin_markup():
markup = (
InlineKeyboardBuilder()
.button(text='⚙️ Выгрузить юзеров', callback_data='users')
.button(text='🛠 Тарифы', callback_data='tarifs_admin')
.button(text='🔴 Заблокировать юзера', callback_data='ban_user')
.button(text='✉️ Рассылка', callback_data='mailing')
.button(text='📊 Статистика', callback_data='statistic')
.button(text='💲 Выдать подписку', callback_data='give_subscribe')
.button(text='📝 Написать пользователю', callback_data='send_message')
.adjust(1, 2, 2, 1, 1, repeat=True)
.as_markup()
)
return markup
def main_admin():
markup = (
InlineKeyboardBuilder()
.button(text='🔙 В главное меню', callback_data='main_admin')
.adjust(2, repeat=True)
.as_markup()
)
return markup