from pyrogram import filters from pyrogram.types import Message from classes.pyroclient import PyroClient @PyroClient.on_message(filters.text & filters.private) # type: ignore async def handler_echo(app: PyroClient, message: Message): await message.reply(message.text[::-1])