account.ReportProfilePhoto

class pyrogram.raw.functions.account.ReportProfilePhoto

Report a profile photo of a dialog

Details:
  • Layer: 223

  • 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
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── photo_idInputPhoto
│ ├── InputPhotoEmpty
│ └── InputPhoto
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── reasonReportReason
│ ├── InputReportReasonSpam
│ ├── InputReportReasonFake
└── messagestring

Example

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