11 lines
319 B
Python
11 lines
319 B
Python
from pyrogram import filters
|
|
from pyrogram.client import Client
|
|
from pyrogram.types import Message
|
|
|
|
from libbot.pyrogram.classes import PyroClient
|
|
|
|
|
|
@Client.on_message(filters.text & filters.private) # type: ignore
|
|
async def handler_echo(app: PyroClient, message: Message):
|
|
await message.reply(message.text[::-1])
|