public static class TdApi.PremiumGiftCodeInfo extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
creationDate
Point in time (Unix timestamp) when the code was created.
|
TdApi.MessageSender |
creatorId
Identifier of a chat or a user that created the gift code; may be null if unknown.
|
long |
giveawayMessageId
Identifier of the corresponding giveaway message in the creatorId chat; can be 0 or an identifier of a deleted message.
|
boolean |
isFromGiveaway
True, if the gift code was created for a giveaway.
|
int |
monthCount
Number of months the Telegram Premium subscription will be active after code activation.
|
int |
useDate
Point in time (Unix timestamp) when the code was activated; 0 if none.
|
long |
userId
Identifier of a user for which the code was created; 0 if none.
|
| Constructor and Description |
|---|
PremiumGiftCodeInfo()
Contains information about a Telegram Premium gift code.
|
PremiumGiftCodeInfo(TdApi.MessageSender creatorId,
int creationDate,
boolean isFromGiveaway,
long giveawayMessageId,
int monthCount,
long userId,
int useDate)
Contains information about a Telegram Premium gift code.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.MessageSender creatorId
public int creationDate
public boolean isFromGiveaway
public long giveawayMessageId
public int monthCount
public long userId
public int useDate
public static final int CONSTRUCTOR
public PremiumGiftCodeInfo()
public PremiumGiftCodeInfo(TdApi.MessageSender creatorId, int creationDate, boolean isFromGiveaway, long giveawayMessageId, int monthCount, long userId, int useDate)
creatorId - Identifier of a chat or a user that created the gift code; may be null if unknown. If null and the code is from messagePremiumGiftCode message, then creatorId from the message can be used.creationDate - Point in time (Unix timestamp) when the code was created.isFromGiveaway - True, if the gift code was created for a giveaway.giveawayMessageId - Identifier of the corresponding giveaway message in the creatorId chat; can be 0 or an identifier of a deleted message.monthCount - Number of months the Telegram Premium subscription will be active after code activation.userId - Identifier of a user for which the code was created; 0 if none.useDate - Point in time (Unix timestamp) when the code was activated; 0 if none.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object