public static class TdApi.Gift extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
defaultSellStarCount
Number of Telegram Stars that can be claimed by the receiver instead of the gift by default.
|
int |
firstSendDate
Point in time (Unix timestamp) when the gift was send for the first time; for sold out gifts only.
|
long |
id
Unique identifier of the gift.
|
boolean |
isForBirthday
True, if the gift is a birthday gift.
|
int |
lastSendDate
Point in time (Unix timestamp) when the gift was send for the last time; for sold out gifts only.
|
int |
remainingCount
Number of remaining times the gift can be purchased by all users; 0 if not limited or the gift was sold out.
|
long |
starCount
Number of Telegram Stars that must be paid for the gift.
|
TdApi.Sticker |
sticker
The sticker representing the gift.
|
int |
totalCount
Number of total times the gift can be purchased by all users; 0 if not limited.
|
| Constructor and Description |
|---|
Gift()
Describes a gift that can be sent to another user.
|
Gift(long id,
TdApi.Sticker sticker,
long starCount,
long defaultSellStarCount,
boolean isForBirthday,
int remainingCount,
int totalCount,
int firstSendDate,
int lastSendDate)
Describes a gift that can be sent to another user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long id
public TdApi.Sticker sticker
public long starCount
public long defaultSellStarCount
public boolean isForBirthday
public int remainingCount
public int totalCount
public int firstSendDate
public int lastSendDate
public static final int CONSTRUCTOR
public Gift()
public Gift(long id,
TdApi.Sticker sticker,
long starCount,
long defaultSellStarCount,
boolean isForBirthday,
int remainingCount,
int totalCount,
int firstSendDate,
int lastSendDate)
id - Unique identifier of the gift.sticker - The sticker representing the gift.starCount - Number of Telegram Stars that must be paid for the gift.defaultSellStarCount - Number of Telegram Stars that can be claimed by the receiver instead of the gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed.isForBirthday - True, if the gift is a birthday gift.remainingCount - Number of remaining times the gift can be purchased by all users; 0 if not limited or the gift was sold out.totalCount - Number of total times the gift can be purchased by all users; 0 if not limited.firstSendDate - Point in time (Unix timestamp) when the gift was send for the first time; for sold out gifts only.lastSendDate - Point in time (Unix timestamp) when the gift was send for the last time; for sold out gifts only.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object