telegram api method · layer 229 · #8653febe

stickers.addStickerToSet

usable by users and bots

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

definition

stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet;

parameters

nametypedescription
stickersetInputStickerSetThe stickerset
stickerInputStickerSetItemThe sticker

returns

messages.StickerSet

errors (8)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400STICKER_PNG_NOPNGOne of the specified stickers is not a valid PNG file.
400STICKER_TGS_NOTGSInvalid TGS sticker provided.
400STICKERPACK_STICKERS_TOO_MUCHThere are too many stickers in this stickerpack, you can't add any more.
400STICKERS_TOO_MUCHThere are too many stickers in this stickerpack, you can't add any more.
400STICKERSET_INVALIDThe provided sticker set is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
406STICKERSET_INVALIDThe provided sticker set is invalid.

history

present in layers 68–229

idlayers
#8653febe68–229