messages.installStickerSet

Install a stickerset

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.installStickerSet({
        stickerset: new Api.InputStickerSet({...}),
        archived: new Api.Bool({...}),
        }));
    console.log(result); // prints the result
})();

TL schema

messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult;
messages.stickerSetInstallResultArchive#35e410a8 sets:Vector<StickerSetCovered> = messages.StickerSetInstallResult;
---functions---
messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult;

Parameters

Name

Type

Description

stickerset

Stickerset to install

archived

Whether to archive stickerset

Result

messages.StickerSetInstallResult

Possible errors

Code

Type

Description

400

STICKERSET_INVALID

The provided sticker set is invalid

Can bots use this methd ?

yes

Last updated