Skip to main content

messages.reportEncryptedSpam

Report a secret chat for spam

func (c *Client) MessagesReportEncryptedSpam(ctx context.Context, peer InputEncryptedChat) (bool, error)

Calling this method

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

res, err := api.MessagesReportEncryptedSpam(ctx, peer)
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputEncryptedChatyesThe secret chat to report

Returns

bool

Possible errors

CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid.

References