blob: fc77dd42d67636153b571e08382c23e3f1b58388 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from telebot.types import Message
from config_data.config import DEFAULT_COMMANDS, ADMIN_COMMANDS, ALLOWED_USERS
from loader import bot
@bot.message_handler(commands=['help'])
def bot_help(message: Message):
commands = [f"/{command} - {description}" for command, description in DEFAULT_COMMANDS]
if message.from_user.id in ALLOWED_USERS:
commands.extend([f"/{command} - {description}" for command, description in ADMIN_COMMANDS])
bot.reply_to(message, "📋 Доступные команды:\n" + "\n".join(commands))
bot.send_message(message.chat.id, "🤝 Для поддержки обращайтесь: @guardtunnel_support")
|