# account.getAllSecureValues

Get all saved [Telegram Passport](https://core.telegram.org/passport) documents, [for more info see the passport docs »](https://core.telegram.org/passport/encryption#encryption)

## Example

{% tabs %}
{% tab title="Javascript" %}

```javascript
const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');

const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});

(async function run() {
    const result = await client.invoke(new Api.account.getAllSecureValues({
        }));
    console.log(result); // prints the result
})();
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
import {Api, TelegramClient} from 'telegram';
import {StringSession} from 'telegram/sessions';

const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});

(async function run() {
    const result: Api.Vector<SecureValue> = await client.invoke(new Api.account.getAllSecureValues({
        }));
    console.log(result); // prints the result
})();
```

{% endtab %}
{% endtabs %}

## TL schema

```
---functions---
account.getAllSecureValues#b288bc7d = Vector<SecureValue>;
```

## Parameters

| Name | Type | Description |
| :--: | ---- | ----------- |

## Result

[Vector](https://core.telegram.org/type/Vector%20t)[\[SecureValue\](https://core.telegram.org/type/SecureValue)](https://app.gitbook.com/s/-MMkAn4QUh4dOGfc-vjY/working-with-telegram-passport/\[SecureValue]\(https://core.telegram.org/type/SecureValue\))

## Possible errors

| Code | Type | Description |
| :--: | ---- | ----------- |

## Can bots use this methd ?

### yes

## Related pages

### [Telegram Passport Manual](https://core.telegram.org/passport)

### [Telegram Passport Encryption Details](https://core.telegram.org/passport/encryption)
