public static class TdApi.ApplyPremiumGiftCode extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
code
The code to apply.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
| Constructor and Description |
|---|
ApplyPremiumGiftCode()
Default constructor for a function, which applies a Telegram Premium gift code.
|
ApplyPremiumGiftCode(java.lang.String code)
Creates a function, which applies a Telegram Premium gift code.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String code
public static final int CONSTRUCTOR
public ApplyPremiumGiftCode()
Returns Ok
public ApplyPremiumGiftCode(java.lang.String code)
Returns Ok
code - The code to apply.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object