File size: 787 Bytes
e581a8c 07f63a8 e581a8c 07f63a8 e581a8c 07f63a8 e581a8c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | from pyrogram import Client, filters
from pyrogram.types import Message
from Backend.helper.settings_manager import SettingsManager
from Backend.helper.custom_filter import CustomFilters
@Client.on_message(filters.command("help"))
async def help_command(client: Client, message: Message):
if SettingsManager.current().subscription:
text = (
"<b>Bot Commands:</b>\n\n"
"/start - Main menu / Purchase membership\n"
"/status - Check your subscription expiry date\n"
"/help - Show this message"
)
else:
text = (
"<b>Bot Commands:</b>\n\n"
"/start - Get the Stremio Addon URL\n"
"/help - Show this message"
)
await message.reply_text(text, quote=True)
|