public static class TdApi.MessageGiftedPremium extends TdApi.MessageContent
| Modifier and Type | Field and Description |
|---|---|
long |
amount
The paid amount, in the smallest units of the currency.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
cryptocurrency
Cryptocurrency used to pay for the gift; may be empty if none.
|
long |
cryptocurrencyAmount
The paid amount, in the smallest units of the cryptocurrency; 0 if none.
|
java.lang.String |
currency
Currency for the paid amount.
|
long |
gifterUserId
The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous or is outgoing.
|
int |
monthCount
Number of months the Telegram Premium subscription will be active.
|
long |
receiverUserId
The identifier of a user that received Telegram Premium; 0 if the gift is incoming.
|
TdApi.Sticker |
sticker
A sticker to be shown in the message; may be null if unknown.
|
TdApi.FormattedText |
text
Message added to the gifted Telegram Premium by the sender.
|
| Constructor and Description |
|---|
MessageGiftedPremium()
Telegram Premium was gifted to a user.
|
MessageGiftedPremium(long gifterUserId,
long receiverUserId,
TdApi.FormattedText text,
java.lang.String currency,
long amount,
java.lang.String cryptocurrency,
long cryptocurrencyAmount,
int monthCount,
TdApi.Sticker sticker)
Telegram Premium was gifted to a user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long gifterUserId
public long receiverUserId
public TdApi.FormattedText text
public java.lang.String currency
public long amount
public java.lang.String cryptocurrency
public long cryptocurrencyAmount
public int monthCount
public TdApi.Sticker sticker
public static final int CONSTRUCTOR
public MessageGiftedPremium()
public MessageGiftedPremium(long gifterUserId,
long receiverUserId,
TdApi.FormattedText text,
java.lang.String currency,
long amount,
java.lang.String cryptocurrency,
long cryptocurrencyAmount,
int monthCount,
TdApi.Sticker sticker)
gifterUserId - The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous or is outgoing.receiverUserId - The identifier of a user that received Telegram Premium; 0 if the gift is incoming.text - Message added to the gifted Telegram Premium by the sender.currency - Currency for the paid amount.amount - The paid amount, in the smallest units of the currency.cryptocurrency - Cryptocurrency used to pay for the gift; may be empty if none.cryptocurrencyAmount - The paid amount, in the smallest units of the cryptocurrency; 0 if none.monthCount - Number of months the Telegram Premium subscription will be active.sticker - A sticker to be shown in the message; may be null if unknown.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object