mail2telegram/modules/ping.py
2024-02-22 22:26:21 +08:00

8 lines
255 B
Python

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)