Files
limoka/Fl1yd/FTG-Modules/report.py
2025-07-10 21:02:34 +03:00

19 lines
657 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from .. import loader, utils
from telethon import functions
def register(cb):
cb(ReportMod())
class ReportMod(loader.Module):
"""Репорт"""
strings = {"name": "Report"}
async def reportcmd(self, message):
"""Репорт пользователя за спам."""
reply = await message.get_reply_message()
if reply:
await message.client(functions.messages.ReportSpamRequest(peer=reply.sender.id))
await message.edit("<b>Ты получил репорт за спам!</b>")
else:
return await message.edit("<b>Кого я должен зарепортить?</b>")