account.ReportProfilePhoto

class pyrogram.raw.functions.account.ReportProfilePhoto

Report a profile photo of a dialog

Details:
  • Layer: 227

  • ID: FA8CC6F5

Parameters:
  • peer (InputPeer) – The dialog

  • photo_id (InputPhoto) – Dialog photo ID

  • reason (ReportReason) – Report reason

  • message (str) – Comment for report moderation

Returns:

bool

TL Schema

account.reportProfilePhoto#fa8cc6f5
peer:InputPeer
photo_id:InputPhoto
reason:ReportReason
message:string

= Bool

Parameter Tree

ReportProfilePhoto
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── photo_id → InputPhoto
│ ├── InputPhotoEmpty
│ └── InputPhoto
│ ├── id → long
│ ├── access_hash → long
│ └── file_reference → bytes
├── reason → ReportReason
│ ├── InputReportReasonSpam
│ ├── InputReportReasonFake
└── message → string

Example

await app.invoke(
    ReportProfilePhoto(
        peer=await app.resolve_peer(chat_id),
        photo_id=InputPhotoEmpty(),
        reason=InputReportReasonSpam(),
        message="Hello",
    )
)