Layer 224
method Users
channels.reportSpam#f44a8315 channel:InputChannel participant:InputPeer id:Vector<int> = Bool;

Parameters

Name Type Description
Channel InputChannel Supergroup
Participant InputPeer Participant whose messages should be reported
Id Vector<int> IDs of spam messages

Returns

Bool

Gogram Example

// ChannelsReportSpam - positional arguments
result, err := client.ChannelsReportSpam(&tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)}, &tg.InputPeerUser{UserID: int64(777000)}, []int{})
if err != nil {
    // handle error
}
// result is *tg.Bool

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
400 CHAT_ADMIN_REQUIRED You must be an admin in this chat to do this.
400 INPUT_USER_DEACTIVATED The specified user was deleted.
400 MSG_ID_INVALID Invalid message ID provided.
400 USER_ID_INVALID The provided user ID is invalid.