mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-17 23:04:17 +02:00
Commited backup
This commit is contained in:
19
Fl1yd/FTG-Modules/report.py
Normal file
19
Fl1yd/FTG-Modules/report.py
Normal file
@@ -0,0 +1,19 @@
|
||||
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>")
|
||||
Reference in New Issue
Block a user