Class TdApi.MessageEffect
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.MessageEffect
- Enclosing class:
- TdApi
Contains information about an effect added to a message.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Emoji corresponding to the effect that can be used if static icon isn't available.long
Unique identifier of the effect.boolean
True, 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
ConstructorDescriptionContains 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 TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.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.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-