report_spam()

async Client.report_spam()

Report a peer as spam and dismiss dialog.

This performs Telegram’s 1-click “Report Spam and Leave/Block” action.

Usable by Users Bots
Parameters:

chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

Returns:

bool – True on success.

Example

# Report spam on a chat or dialog
await app.report_spam(chat_id)