Small refactor

This commit is contained in:
Profitroll 2023-05-24 11:22:24 +02:00
parent 49b81d8b1a
commit 3c1594f0b1

View File

@ -2,7 +2,9 @@ from pyrogram import filters
from pyrogram.client import Client from pyrogram.client import Client
from pyrogram.types import Message from pyrogram.types import Message
from modules.app import PyroClient
@Client.on_message(filters.text & filters.private)
async def echo_reversed(app: Client, message: Message): @Client.on_message(filters.text & filters.private) # type: ignore
async def handler_echo(app: PyroClient, message: Message):
await message.reply(message.text[::-1]) await message.reply(message.text[::-1])