account.getSecureValue
Get saved Telegram Passport document, for more info see the passport docs »
func (c *Client) AccountGetSecureValue(ctx context.Context, types []SecureValueTypeClass) ([]SecureValue, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountGetSecureValue(ctx, types)
if err != nil {
return err
}
_ = res // []SecureValue
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Types | []SecureValueTypeClass | yes | Requested value types |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
account.getSecureValue#73665bc2