messages.toggleStickerSets

Apply changes to multiple stickersets

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.toggleStickerSets({
        uninstall: true,
        archive: true,
        unarchive: true,
        stickersets: [new Api.InputStickerSet({...})],
        }));
    console.log(result); // prints the result
})();

TL schema

Parameters

Name

Type

Description

uninstall

Uninstall the specified stickersets

archive

Archive the specified stickersets

unarchive

Unarchive the specified stickersets

stickersets

Stickersets to act upon

Result

Boolarrow-up-right

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

Last updated