Class TdApi.MessageEffect

java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.MessageEffect
Enclosing class:
TdApi

public static class TdApi.MessageEffect extends TdApi.Object
Contains information about an effect added to a message.
  • Field Details

    • id

      public long id
      Unique identifier of the effect.
    • staticIcon

      public TdApi.Sticker staticIcon
      Static icon for the effect in WEBP format; may be null if none.
    • emoji

      public String emoji
      Emoji corresponding to the effect that can be used if static icon isn't available.
    • isPremium

      public boolean isPremium
      True, if Telegram Premium subscription is required to use the effect.
    • type

      Type of the effect.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • MessageEffect

      public MessageEffect()
      Contains information about an effect added to a message.
    • MessageEffect

      public MessageEffect(long id, TdApi.Sticker staticIcon, String emoji, boolean isPremium, TdApi.MessageEffectType type)
      Contains information about an effect added to a message.
      Parameters:
      id - Unique identifier of the effect.
      staticIcon - Static icon for the effect in WEBP format; may be null if none.
      emoji - Emoji corresponding to the effect that can be used if static icon isn't available.
      isPremium - True, if Telegram Premium subscription is required to use the effect.
      type - Type of the effect.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR