public static class TdApi.ChatBoostSourceGiftCode extends TdApi.ChatBoostSource
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
giftCode
The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed.
|
long |
userId
Identifier of a user, for which the gift code was created.
|
| Constructor and Description |
|---|
ChatBoostSourceGiftCode()
The chat created a Telegram Premium gift code for a user.
|
ChatBoostSourceGiftCode(long userId,
java.lang.String giftCode)
The chat created a Telegram Premium gift code for a user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long userId
public java.lang.String giftCode
public static final int CONSTRUCTOR
public ChatBoostSourceGiftCode()
public ChatBoostSourceGiftCode(long userId,
java.lang.String giftCode)
userId - Identifier of a user, for which the gift code was created.giftCode - The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object