Layer 220
AccountReportProfilePhoto
Report a profile photo of a dialog
method
Users
account.reportProfilePhoto#fa8cc6f5 peer:InputPeer photo_id:InputPhoto reason:ReportReason message:string = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | The dialog |
| PhotoId | InputPhoto | Dialog photo ID |
| Reason | ReportReason | Report reason |
| Message | string | Comment for report moderation |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// AccountReportProfilePhoto - positional arguments result, err := client.AccountReportProfilePhoto(&tg.InputPeerUser{UserID: int64(123456789)}, &tg.InputPhoto{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}, &tg.ReportReason{}, "...") if err != nil { // handle error } // result is *tg.Bool