I’m using Telethon in python to automatic replies in Telegram’s Group. I wanna reporting spam or abuse an account automatically via the Telethon and I read the Telethon document and google it, but I can’t find any example.
If this can be done, please provide an example with a sample code.
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
https://tl.telethon.dev/methods/messages/report.html
Example from page:
One can use search to find the following report methods:
messages.ReportRequest
to report one or more messages.account.ReportPeerRequest
to report a user in private, chat or channel with a specific reason.messages.ReportSpamRequest
to report a user in private, chat or channel without a reason.channels.ReportSpamRequest
to report one or more messages of a user in a channel.