contacts.getContactIDs

Get contact by telegram IDs

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.contacts.getContactIDs({
        hash: 4483311,
        }));
    console.log(result); // prints the result
})();

TL schema

---functions---
contacts.getContactIDs#2caa4a42 hash:int = Vector<int>;

Parameters

Name

Type

Description

hash

Result

Vector[int](https://core.telegram.org/type/int)

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

How to fetch results from large lists of objects.

Last updated