Files
FileStreamBot-Caduceus/bot/plugins/commands.py

19 lines
619 B
Python
Raw Normal View History

2024-11-20 15:29:44 +05:30
from hydrogram import filters
from hydrogram.types import Message
2023-11-13 11:53:06 +05:30
from bot import TelegramBot
2023-11-05 22:02:58 +05:30
from bot.modules.static import *
from bot.modules.decorators import verify_user
2024-11-20 15:29:44 +05:30
@TelegramBot.on_message(filters.command(['start', 'help']) & filters.private)
@verify_user
async def start_command(_, msg: Message):
await msg.reply(
text=WelcomeText % {'first_name': msg.from_user.first_name},
quote=True
2023-11-05 22:02:58 +05:30
)
2024-11-20 15:29:44 +05:30
@TelegramBot.on_message(filters.command('privacy') & filters.private)
@verify_user
async def privacy_command(_, msg: Message):
await msg.reply(text=PrivacyText, quote=True)