Chat.report()

async Chat.report()[source]

Bound method report of Chat.

Use as a shortcut for:

client.report_chat(chat_id, reason, message)
Parameters:
  • reason (ReportReason | str, optional) – The reason for reporting. Defaults to SPAM.

  • message (str, optional) – Additional explanatory text or details about the report. Defaults to “”.

Example

await chat.report(enums.ReportReason.SPAM)
Returns:

bool – On success, True is returned.