From 3c1594f0b18088d20c1790eba806ebe73aecc90a Mon Sep 17 00:00:00 2001 From: profitroll Date: Wed, 24 May 2023 11:22:24 +0200 Subject: [PATCH] Small refactor --- plugins/handler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/handler.py b/plugins/handler.py index a972b7d..df99764 100644 --- a/plugins/handler.py +++ b/plugins/handler.py @@ -2,7 +2,9 @@ from pyrogram import filters from pyrogram.client import Client 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])