Module tdlight.api

Class TdApi.AnimatedEmoji

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

public static final class TdApi.AnimatedEmoji extends TdApi.Object
Describes an animated or custom representation of an emoji.
  • Field Details

    • sticker

      public TdApi.Sticker sticker
      Sticker for the emoji; may be null if yet unknown for a custom emoji. If the sticker is a custom emoji, it can have arbitrary format different from stickerFormatTgs.
    • stickerWidth

      public int stickerWidth
      Expected width of the sticker, which can be used if the sticker is null.
    • stickerHeight

      public int stickerHeight
      Expected height of the sticker, which can be used if the sticker is null.
    • fitzpatrickType

      public int fitzpatrickType
      Emoji modifier fitzpatrick type; 0-6; 0 if none.
    • sound

      public TdApi.File sound
      File containing the sound to be played when the sticker is clicked; may be null. The sound is encoded with the Opus codec, and stored inside an OGG container.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • AnimatedEmoji

      public AnimatedEmoji()
      Describes an animated or custom representation of an emoji.
    • AnimatedEmoji

      public AnimatedEmoji(TdApi.Sticker sticker, int stickerWidth, int stickerHeight, int fitzpatrickType, TdApi.File sound)
      Describes an animated or custom representation of an emoji.
      Parameters:
      sticker - Sticker Sticker for the emoji; may be null if yet unknown for a custom emoji. If the sticker is a custom emoji, it can have arbitrary format different from stickerFormatTgs.
      stickerWidth - int Expected width of the sticker, which can be used if the sticker is null.
      stickerHeight - int Expected height of the sticker, which can be used if the sticker is null.
      fitzpatrickType - int Emoji modifier fitzpatrick type; 0-6; 0 if none.
      sound - File File containing the sound to be played when the sticker is clicked; may be null. The sound is encoded with the Opus codec, and stored inside an OGG container.
    • AnimatedEmoji

      public AnimatedEmoji(DataInput input) throws IOException
      Describes an animated or custom representation of an emoji.
      Throws:
      IOException
  • Method Details