channels.getLeftChannels

Get a list of channels/supergroups we left

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.channels.getLeftChannels({
        offset: 7453814,
        }));
    console.log(result); // prints the result
})();

TL schema

messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;
---functions---
channels.getLeftChannels#8341ecc0 offset:int = messages.Chats;

Parameters

Name

Type

Description

offset

Offset for pagination

Result

messages.Chats

Possible errors

Code

Type

Description

403

TAKEOUT_REQUIRED

A takeout session has to be initialized, first

Can bots use this methd ?

yes

How to fetch results from large lists of objects.

How to handle channels, supergroups, groups, and what's the difference between them.

Last updated