report_profile_photo()

async Client.report_profile_photo()

Report a profile photo of a user or channel for rule violations.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat/user.

  • photo (str | Photo | ChatPhoto | InputPhoto) – Target profile photo, file identifier as string, Photo object, or raw InputPhoto.

  • reason (ReportReason | str, optional) – The reason for reporting. Defaults to SPAM.

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

Returns:

bool – True on success.

Example

from pyrogram.enums import ReportReason

# Report a user's inappropriate profile photo
await app.report_profile_photo(user_id, photo, ReportReason.PORNOGRAPHY)