account.deleteSecureValue
Delete stored Telegram Passport documents, for more info see the passport docs »
func (c *Client) AccountDeleteSecureValue(ctx context.Context, types []SecureValueTypeClass) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountDeleteSecureValue(ctx, types)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Types | []SecureValueTypeClass | yes | Document types to delete |
Returns
bool
References
- Official documentation
- Generated Go reference
- TL definition:
account.deleteSecureValue#b880bc4b