Download Backend/pyrofork/plugins/help.py from DevDoCode/stremio: direct link, hf CLI and curl.
- Browser
- Download file 787 Bytes
-
https://huggingface.co/spaces/DevDoCode/stremio/resolve/1a247cd7a14d1e50f7c5ddb8ff0ceb2f710eeeaf/Backend/pyrofork/plugins/help.py
- Command line
-
hf download hf://spaces/DevDoCode/stremio@1a247cd7a14d1e50f7c5ddb8ff0ceb2f710eeeaf/Backend/pyrofork/plugins/help.py
-
curl -L -o help.py https://huggingface.co/spaces/DevDoCode/stremio/resolve/1a247cd7a14d1e50f7c5ddb8ff0ceb2f710eeeaf/Backend/pyrofork/plugins/help.py
787 Bytes
| from pyrogram import Client, filters | |
| from pyrogram.types import Message | |
| from Backend.helper.settings_manager import SettingsManager | |
| from Backend.helper.custom_filter import CustomFilters | |
| 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) | |