This repository has been archived on 2024-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
EmojiCaptchaBot/plugins/commands/help.py

21 lines
516 B
Python
Raw Normal View History

2023-08-11 23:43:34 +03:00
import logging
from pyrogram import filters
from pyrogram.types import Message
from classes.pyroclient import PyroClient
logger = logging.getLogger(__name__)
@PyroClient.on_message(
~filters.scheduled
& filters.private
& filters.command(["help", "start"], prefixes=["/"]) # type: ignore
)
async def command_help(app: PyroClient, message: Message):
2023-08-12 19:45:23 +03:00
await message.reply_text(
app._("help", "messages", locale=message.from_user.language_code),
disable_web_page_preview=True,
)