telegram api method · layer 229 · #a76a5392

stickers.setStickerSetThumb

usable by users and bots

Set stickerset thumbnail

definition

stickers.setStickerSetThumb#a76a5392 flags:# stickerset:InputStickerSet thumb:flags.0?InputDocument thumb_document_id:flags.1?long = messages.StickerSet;

parameters

nametypedescription
flags#Flags, see TL conditional fields
stickersetInputStickerSetStickerset
thumbflags.0?InputDocumentThumbnail (only for normal stickersets, not custom emoji stickersets).
thumb_document_idflags.1?longOnly for custom emoji stickersets, ID of a custom emoji present in the set to use as thumbnail; pass 0 to fallback to the first custom emoji of the set.

returns

messages.StickerSet

errors (5)

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_THUMB_PNG_NOPNGIncorrect stickerset thumb file provided, PNG / WEBP expected.
400STICKER_THUMB_TGS_NOTGSIncorrect stickerset TGS thumb file provided.
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).

history

present in layers 112–229 · constructor id changed 1×

idlayers
#9a364e30112–152
#a76a5392153–229