Skip to main content

channels.reportAntiSpamFalsePositive

Report a native antispam false positive

func (c *Client) ChannelsReportAntiSpamFalsePositive(ctx context.Context, request *ChannelsReportAntiSpamFalsePositiveRequest) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.ChannelsReportAntiSpamFalsePositive(ctx, &tg.ChannelsReportAntiSpamFalsePositiveRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
ChannelInputChannelClassyesSupergroup ID
MsgIDintyesMessage ID that was mistakenly deleted by the native antispam system, taken from the admin log

Returns

bool

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.

References