# invokeWithoutUpdates

Invoke a request without subscribing the used connection for [updates](https://core.telegram.org/api/updates) (this is enabled by default for [file queries](https://core.telegram.org/api/files)).

## 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.invokeWithoutUpdates({
        query: new Api.!X({...}),
        }));
    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.X = await client.invoke(new Api.invokeWithoutUpdates({
        query: new Api.!X({...}),
        }));
    console.log(result); // prints the result
})();
```

{% endtab %}
{% endtabs %}

## TL schema

```
---functions---
invokeWithoutUpdates#bf9459b7 {X:Type} query:!X = X;
```

## Parameters

|    Name   | Type | Description |
| :-------: | ---- | ----------- |
| **query** | !X   | The query   |

## Result

X

## Possible errors

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

## Can bots use this methd ?

### yes

## Related pages

### [Working with Updates](https://core.telegram.org/api/updates)

How to subscribe to updates and handle them properly.

### [Uploading and Downloading Files](https://core.telegram.org/api/files)

How to transfer large data batches correctly.
