Bot API 5.7

January 31, 2022

Bot API 5.7

Sticker

Field Type Description
is_video Boolean True, if the sticker is a video sticker

StickerSet

Field Type Description
is_video Boolean True, if the sticker set contains video stickers
thumb PhotoSize Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format

sendSticker

Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned.

createNewStickerSet

Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success.

Parameter Type Required Description
webm_sticker InputFile Optional WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-stickers for technical requirements

addStickerToSet

Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.

Parameter Type Required Description
webm_sticker InputFile Optional WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-stickers for technical requirements

setStickerSetThumb

Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Video thumbnails can be set only for video sticker sets only. Returns True on success.

Parameter Type Required Description
thumb InputFile or String Optional A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#animated-sticker-requirements for animated sticker technical requirements, or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-sticker-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files ». Animated sticker set thumbnail can't be uploaded via HTTP URL.