Module tdlight.api

Class TdApi.InputSticker

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InputSticker
Enclosing class:
TdApi

public static final class TdApi.InputSticker extends TdApi.Object
A sticker to be added to a sticker set.
  • Field Details

    • sticker

      public TdApi.InputFile sticker
      File with the sticker; must fit in a 512x512 square. For WEBP stickers and masks the file must be in PNG format, which will be converted to WEBP server-side. Otherwise, the file must be local or uploaded within a week. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements.
    • emojis

      public String emojis
      Emojis corresponding to the sticker.
    • format

      public TdApi.StickerFormat format
      Sticker format.
    • maskPosition

      public TdApi.MaskPosition maskPosition
      Position where the mask is placed; pass null if not specified.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • InputSticker

      public InputSticker()
      A sticker to be added to a sticker set.
    • InputSticker

      public InputSticker(TdApi.InputFile sticker, String emojis, TdApi.StickerFormat format, TdApi.MaskPosition maskPosition)
      A sticker to be added to a sticker set.
      Parameters:
      sticker - InputFile File with the sticker; must fit in a 512x512 square. For WEBP stickers and masks the file must be in PNG format, which will be converted to WEBP server-side. Otherwise, the file must be local or uploaded within a week. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements.
      emojis - String Emojis corresponding to the sticker.
      format - StickerFormat Sticker format.
      maskPosition - MaskPosition Position where the mask is placed; pass null if not specified.
    • InputSticker

      public InputSticker(DataInput input) throws IOException
      A sticker to be added to a sticker set.
      Throws:
      IOException
  • Method Details