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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputEncryptedChat | yes | The secret chat to report |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHAT_ID_INVALID | The provided chat id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.reportEncryptedSpam#4b0c8c0f