Skip to content

NewSticker

Type · TDLib 1.8.67 · d1085f9c

A sticker to be added to a sticker set

NewSticker(
  sticker: InputFile,
  format: StickerFormat,
  emojis: string,
  mask_position: MaskPosition,
  keywords: list of string
) → NewSticker

sticker

InputFile

File with the sticker; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements

format

StickerFormat

Format of the sticker

emojis

string

String with 1-20 emoji corresponding to the sticker

mask_position

MaskPosition

Position where the mask is placed; pass null if not specified

keywords

list of string

List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker