mail2telegram/modules/ping.py

8 lines
255 B
Python
Raw Normal View History

2024-02-22 14:26:21 +00:00
from pyrogram import Client, filters
from pyrogram.types import Message
@Client.on_message(filters.incoming & filters.private & filters.command(["ping"]))
async def ping_command(_: Client, message: Message):
await message.reply("pong~", quote=True)