Skip to main content

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

NameTypeRequiredDescription
Types[]SecureValueTypeClassyesDocument types to delete

Returns

bool

References