invokeWithoutUpdates

Invoke a request without subscribing the used connection for updates (this is enabled by default for file queries).

Example

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
})();

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

How to subscribe to updates and handle them properly.

How to transfer large data batches correctly.

Last updated