Layer 224
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

Gogram Example

// AccountReportPeer - positional arguments
result, err := client.AccountReportPeer(&tg.InputPeerUser{UserID: int64(777000)}, &tg.ReportReason{}, "Hello, World!")
if err != nil {
    // handle error
}
// result is *tg.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.