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

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector<InputStickerSet> = Bool;

Parameters

Name

Type

Description

flags

uninstall

Uninstall the specified stickersets

archive

Archive the specified stickersets

unarchive

Unarchive the specified stickersets

stickersets

Stickersets to act upon

Result

Bool

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

Last updated