java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageContent
it.tdlight.jni.TdApi.MessagePremiumGiftCode
- Enclosing class:
- TdApi
A Telegram Premium gift code was created for the user.
-
Field Summary
Modifier and TypeFieldDescriptionThe gift code.static final int
Identifier uniquely determining type of the object.Identifier of a chat or a user that created the gift code.boolean
True, if the gift code was created for a giveaway.boolean
True, if the winner for the corresponding Telegram Premium subscription wasn't chosen.int
Number of month the Telegram Premium subscription will be active after code activation.A sticker to be shown in the message; may be null if unknown. -
Constructor Summary
ConstructorDescriptionA Telegram Premium gift code was created for the user.MessagePremiumGiftCode
(TdApi.MessageSender creatorId, boolean isFromGiveaway, boolean isUnclaimed, int monthCount, TdApi.Sticker sticker, String code) A Telegram Premium gift code was created for the user.MessagePremiumGiftCode
(DataInput input) A Telegram Premium gift code was created for the user. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
creatorId
Identifier of a chat or a user that created the gift code. -
isFromGiveaway
public boolean isFromGiveawayTrue, if the gift code was created for a giveaway. -
isUnclaimed
public boolean isUnclaimedTrue, if the winner for the corresponding Telegram Premium subscription wasn't chosen. -
monthCount
public int monthCountNumber of month the Telegram Premium subscription will be active after code activation. -
sticker
A sticker to be shown in the message; may be null if unknown. -
code
The gift code. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessagePremiumGiftCode
public MessagePremiumGiftCode()A Telegram Premium gift code was created for the user. -
MessagePremiumGiftCode
public MessagePremiumGiftCode(TdApi.MessageSender creatorId, boolean isFromGiveaway, boolean isUnclaimed, int monthCount, TdApi.Sticker sticker, String code) A Telegram Premium gift code was created for the user.- Parameters:
creatorId
- Identifier of a chat or a user that created the gift code.isFromGiveaway
- True, if the gift code was created for a giveaway.isUnclaimed
- True, if the winner for the corresponding Telegram Premium subscription wasn't chosen.monthCount
- Number of month the Telegram Premium subscription will be active after code activation.sticker
- A sticker to be shown in the message; may be null if unknown.code
- The gift code.
-
MessagePremiumGiftCode
A Telegram Premium gift code was created for the user.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-