messages.getFullChat

Returns full chat info according to its ID.

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.messages.getFullChat({
        chatId: 6999007,
        }));
    console.log(result); // prints the result
})();

TL schema

messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;
---functions---
messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull;

Parameters

Name

Type

Description

chat_id

Chat ID

Result

messages.ChatFull

Possible errors

Code

Type

Description

400

CHAT_ID_INVALID

The provided chat id is invalid

400

PEER_ID_INVALID

The provided peer id is invalid

Can bots use this methd ?

yes

Last updated