Refactor bot handlers and keyboards; implement admin features
- Removed unused prehandling, referrals, support, and states files. - Updated admin and client handlers to improve structure and functionality. - Introduced admin filters and routers for better access control. - Added new billing and deposit functionalities for client interactions. - Enhanced keyboard layouts for admin and client menus. - Implemented promotion handling for admin users. - Updated configuration to include admin settings. - Improved utility functions for quote fetching and menu text building. - Added common handlers for undefined commands and message deletions.
This commit is contained in:
28
bot/texts.py
28
bot/texts.py
@@ -19,20 +19,15 @@ MALENIA_LINK = PremiumEmoji(5276012730636082950, "🔗")
|
||||
MALENIA_COINS = PremiumEmoji(5276298354551199712, "🪙")
|
||||
MALENIA_LOCKED = PremiumEmoji(5276346642868508688, "🔒")
|
||||
MALENIA_SUPPORT = PremiumEmoji(5275968088746006467, "🎧")
|
||||
MALENIA_SHIELD = PremiumEmoji(5444924740596702937, "☀️")
|
||||
MALENIA_SILHOUETTE = PremiumEmoji(5447117295631506779, "☀️")
|
||||
MALENIA_CARD = PremiumEmoji(5447145526451543197, "☀️")
|
||||
|
||||
|
||||
# ============================================================
|
||||
# ШАБЛОНЫ — ОБЩИЕ БЛОКИ
|
||||
# ============================================================
|
||||
|
||||
_SUPPORT_USER_DESCRIPTION = (
|
||||
"👤 <b>Профиль:</b> {full_name}\n"
|
||||
"🔗 <b>Alias:</b> {username_display}\n"
|
||||
"🆔 <b>UID:</b> <code>{telegram_id}</code>\n\n"
|
||||
"❤️ <b>Referal UID:</b> <code>{referal_id}</code>\n\n"
|
||||
"💰 <b>Баланс:</b> <code>{balance}</code>"
|
||||
)
|
||||
|
||||
_DIVIDER = "────────────────────────────\n\n"
|
||||
|
||||
|
||||
@@ -205,3 +200,20 @@ SUPPORT_INIT = "<b>🎧 Тех. Поддержка Malenia</b> — не здес
|
||||
SUPPORT_MSG_SENT = "⏳ Приняли ваше сообщение. Мы постараемся ответить на него в ближайшее время.\n<i>Вернуться в меню: /cancel</i>"
|
||||
|
||||
SUPPORT_SIGNATURE = "<b>📡 Ответ от Malenia:</b>"
|
||||
|
||||
# ========================================================================================================================
|
||||
|
||||
# ============================================================
|
||||
# ADMIN
|
||||
# ============================================================
|
||||
|
||||
ADM_MAIN_MENU = (
|
||||
f"<b>{MALENIA_SHIELD} Malenia. Админ-панель.</b>\n"
|
||||
"<i>— {quote}</i>\n\n"
|
||||
f"<b>{MALENIA_SILHOUETTE} Пользователей в боте:</b> <code>{{user_count}}</code>\n"
|
||||
f"<b>{MALENIA_CARD} Ваш ID:</b> <code>{{user_id}}</code>\n"
|
||||
)
|
||||
|
||||
ADM_PROMO_INIT = "<b>📢 Введите/перешлите текст рассылки:</b>"
|
||||
ADM_VERIFY_PROMOTION = "<b>❓ Отправить рассылку? <i>Это действие будет невозможно отменить.</i></b>"
|
||||
SUCCESSFULLY_SENT_PROMO = "<b>💚 Успешно отправлена рассылка.</b>\n<i>⚡ Успешных отправок: <code>{successful}</code>.</i>"
|
||||
Reference in New Issue
Block a user