public static class TdApi.StarGiveawayPaymentOption extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
long |
amount
The amount to pay, in the smallest units of the currency.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
currency
ISO 4217 currency code for the payment.
|
boolean |
isAdditional
True, if the option must be shown only in the full list of payment options.
|
boolean |
isDefault
True, if the option must be chosen by default.
|
long |
starCount
Number of Telegram Stars that will be distributed among winners.
|
java.lang.String |
storeProductId
Identifier of the store product associated with the option; may be empty if none.
|
TdApi.StarGiveawayWinnerOption[] |
winnerOptions
Allowed options for the number of giveaway winners.
|
int |
yearlyBoostCount
Number of times the chat will be boosted for one year if the option is chosen.
|
| Constructor and Description |
|---|
StarGiveawayPaymentOption()
Describes an option for creating Telegram Star giveaway.
|
StarGiveawayPaymentOption(java.lang.String currency,
long amount,
long starCount,
java.lang.String storeProductId,
int yearlyBoostCount,
TdApi.StarGiveawayWinnerOption[] winnerOptions,
boolean isDefault,
boolean isAdditional)
Describes an option for creating Telegram Star giveaway.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String currency
public long amount
public long starCount
public java.lang.String storeProductId
public int yearlyBoostCount
public TdApi.StarGiveawayWinnerOption[] winnerOptions
public boolean isDefault
public boolean isAdditional
public static final int CONSTRUCTOR
public StarGiveawayPaymentOption()
public StarGiveawayPaymentOption(java.lang.String currency,
long amount,
long starCount,
java.lang.String storeProductId,
int yearlyBoostCount,
TdApi.StarGiveawayWinnerOption[] winnerOptions,
boolean isDefault,
boolean isAdditional)
currency - ISO 4217 currency code for the payment.amount - The amount to pay, in the smallest units of the currency.starCount - Number of Telegram Stars that will be distributed among winners.storeProductId - Identifier of the store product associated with the option; may be empty if none.yearlyBoostCount - Number of times the chat will be boosted for one year if the option is chosen.winnerOptions - Allowed options for the number of giveaway winners.isDefault - True, if the option must be chosen by default.isAdditional - True, if the option must be shown only in the full list of payment options.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object