telegram api method · layer 229 · #a76a5392
stickers.setStickerSetThumb
Set stickerset thumbnail
definition
stickers.setStickerSetThumb#a76a5392 flags:# stickerset:InputStickerSet thumb:flags.0?InputDocument thumb_document_id:flags.1?long = messages.StickerSet;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
stickerset | InputStickerSet | Stickerset |
thumb | InputDocument | Thumbnail (only for normal stickersets, not custom emoji stickersets). |
thumb_document_id | long | Only 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
errors (5)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 400 | STICKER_THUMB_PNG_NOPNG | Incorrect stickerset thumb file provided, PNG / WEBP expected. |
| 400 | STICKER_THUMB_TGS_NOTGS | Incorrect stickerset TGS thumb file provided. |
| 400 | STICKERSET_INVALID | The provided sticker set is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The 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×
| id | layers |
|---|---|
| #9a364e30 | 112–152 |
| #a76a5392 | 153–229 |