21 lines
673 B
Python
21 lines
673 B
Python
from pyrogram import filters
|
|
from pyrogram.types import Message
|
|
|
|
from classes.pyroclient import PyroClient
|
|
from modules import custom_filters
|
|
|
|
|
|
@PyroClient.on_message(
|
|
~filters.scheduled & filters.private & filters.command(["help"], prefixes=["/"]) & ~custom_filters.context # type: ignore
|
|
)
|
|
async def command_help(app: PyroClient, message: Message):
|
|
user = await app.find_user(message.from_user)
|
|
|
|
await message.reply_text(
|
|
app._("help", "messages", locale=user.locale).format(
|
|
url_contact=app.config["strings"]["url_contact"],
|
|
url_repo=app.config["strings"]["url_repo"],
|
|
),
|
|
disable_web_page_preview=True,
|
|
)
|