Added /help and /start command

This commit is contained in:
2023-08-11 22:43:34 +02:00
parent 822693decc
commit 860d9ac281
4 changed files with 20 additions and 0 deletions

17
plugins/commands/help.py Normal file
View File

@@ -0,0 +1,17 @@
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):
await message.reply_text(app._("help", "messages", locale=message.from_user.language_code))