Spaces:
Running
Running
| from pyrogram.types import (InlineKeyboardButton, InlineKeyboardMarkup) | |
| from config import * | |
| from pyrogram import Client, filters | |
| async def warn(c, m): | |
| if len(m.command) >= 3: | |
| try: | |
| user_id = m.text.split(' ', 2)[1] | |
| reason = m.text.split(' ', 2)[2] | |
| await m.reply_text("User Notfied Sucessfully π") | |
| await c.send_message(chat_id=int(user_id), text=reason) | |
| except: | |
| await m.reply_text("User Not Notfied Sucessfully π") | |