stickers.addStickerToSet #

Add a sticker to a stickerset. The sticker set must have been created by the current user/bot.

Layer 223

messages.stickerSet#6e153f16 set:StickerSet packs:Vector<StickerPack> keywords:Vector<StickerKeyword> documents:Vector<Document> = messages.StickerSet;
messages.stickerSetNotModified#d3f924eb = messages.StickerSet;
---functions---
stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet;

Parameters #

NameTypeDescription
stickersetInputStickerSetThe stickerset
stickerInputStickerSetItemThe sticker

Result #

messages.StickerSet

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400STICKERPACK_STICKERS_TOO_MUCHThere are too many stickers in this stickerpack, you can't add any more.
406STICKERSET_INVALIDThe provided sticker set is invalid.
400STICKERS_TOO_MUCHThere are too many stickers in this stickerpack, you can't add any more.
400STICKER_PNG_NOPNGOne of the specified stickers is not a valid PNG file.
400STICKER_TGS_NOTGSInvalid TGS sticker provided.