public static class TdApi.StorePaymentPurposePremiumGiftCodes extends TdApi.StorePaymentPurpose
| Modifier and Type | Field and Description |
|---|---|
long |
amount
Paid amount, in the smallest units of the currency.
|
long |
boostedChatId
Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user; 0 if none.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
currency
ISO 4217 currency code of the payment currency.
|
TdApi.FormattedText |
text
Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters.
|
long[] |
userIds
Identifiers of the users which can activate the gift codes.
|
| Constructor and Description |
|---|
StorePaymentPurposePremiumGiftCodes()
The user creating Telegram Premium gift codes for other users.
|
StorePaymentPurposePremiumGiftCodes(long boostedChatId,
java.lang.String currency,
long amount,
long[] userIds,
TdApi.FormattedText text)
The user creating Telegram Premium gift codes for other users.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long boostedChatId
public java.lang.String currency
public long amount
public long[] userIds
public TdApi.FormattedText text
public static final int CONSTRUCTOR
public StorePaymentPurposePremiumGiftCodes()
public StorePaymentPurposePremiumGiftCodes(long boostedChatId,
java.lang.String currency,
long amount,
long[] userIds,
TdApi.FormattedText text)
boostedChatId - Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user; 0 if none.currency - ISO 4217 currency code of the payment currency.amount - Paid amount, in the smallest units of the currency.userIds - Identifiers of the users which can activate the gift codes.text - Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object