Message.report()¶
- async Message.report()[source]¶
Bound method report of
Message.Use as a shortcut for:
client.report_messages(chat_id, message_id, reason, message, option)
- Parameters:
reason (
ReportReason|str, optional) – The reason for reporting. Defaults toSPAM.message (
str, optional) – Additional explanatory text or details about the report. Defaults to “”.option (
bytes, optional) – Specific report option bytes. Defaults to b””.
Example
await message.report(enums.ReportReason.SPAM)
- Returns:
bool– On success, True is returned.