2023-08-27 23:43:16 +03:00
|
|
|
from pyrogram import filters
|
|
|
|
from pyrogram.types import Message
|
|
|
|
|
|
|
|
from classes.pyroclient import PyroClient
|
|
|
|
|
|
|
|
|
|
|
|
@PyroClient.on_message(
|
|
|
|
~filters.scheduled & filters.private & filters.command(["help"], prefixes=["/"]) # type: ignore
|
|
|
|
)
|
|
|
|
async def command_help(app: PyroClient, message: Message):
|
|
|
|
user = await app.find_user(message.from_user)
|
|
|
|
|
2023-08-28 17:06:15 +03:00
|
|
|
await message.reply_text(
|
2023-08-29 17:32:37 +03:00
|
|
|
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,
|
2023-08-28 17:06:15 +03:00
|
|
|
)
|