public static class TdApi.MessageEffect extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
emoji
Emoji corresponding to the effect that can be used if static icon isn't available.
|
long |
id
Unique identifier of the effect.
|
boolean |
isPremium
True, if Telegram Premium subscription is required to use the effect.
|
TdApi.Sticker |
staticIcon
Static icon for the effect in WEBP format; may be null if none.
|
TdApi.MessageEffectType |
type
Type of the effect.
|
| Constructor and Description |
|---|
MessageEffect()
Contains information about an effect added to a message.
|
MessageEffect(long id,
TdApi.Sticker staticIcon,
java.lang.String emoji,
boolean isPremium,
TdApi.MessageEffectType type)
Contains information about an effect added to a message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long id
public TdApi.Sticker staticIcon
public java.lang.String emoji
public boolean isPremium
public TdApi.MessageEffectType type
public static final int CONSTRUCTOR
public MessageEffect()
public MessageEffect(long id,
TdApi.Sticker staticIcon,
java.lang.String emoji,
boolean isPremium,
TdApi.MessageEffectType type)
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object