Package org.drinkless.tdlib
Class TdApi.MessageEffect
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageEffect
- Enclosing class:
- TdApi
Contains information about an effect added to a message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.Emoji corresponding to the effect that can be used if static icon isn't available.longUnique identifier of the effect.booleanTrue, if Telegram Premium subscription is required to use the effect.Static icon for the effect in WEBP format; may be null if none.Type of the effect. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about an effect added to a message.MessageEffect(long id, TdApi.Sticker staticIcon, String emoji, boolean isPremium, TdApi.MessageEffectType type) Contains information about an effect added to a message. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
id
public long idUnique 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
public boolean isPremiumTrue, if Telegram Premium subscription is required to use the effect. -
type
Type of the effect. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-