Layer 224
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
BoolGogram Example
// AccountReportProfilePhoto - positional arguments result, err := client.AccountReportProfilePhoto(&tg.InputPeerUser{UserID: int64(777000)}, &tg.InputPhoto{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, &tg.ReportReason{}, "Hello, World!") if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |