Layer 220
method Users
account.reportPeer#c5ba3d86 peer:InputPeer reason:ReportReason message:string = Bool;

Parameters

Name Type Description
Peer InputPeer The peer to report
Reason ReportReason The reason why this peer is being reported
Message string Comment for report moderation

Returns

Bool

Possible Errors

Code Type Description
400 CHANNEL_PRIVATE You haven't joined this channel/supergroup.
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

// AccountReportPeer - positional arguments
result, err := client.AccountReportPeer(&tg.InputPeerUser{UserID: int64(123456789)}, &tg.ReportReason{}, "...")
if err != nil {
    // handle error
}
// result is *tg.Bool