public static class TdApi.MessageGiftedStars 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 Stars; 0 if the gift was anonymous or is outgoing.
|
long |
receiverUserId
The identifier of a user that received Telegram Stars; 0 if the gift is incoming.
|
long |
starCount
Number of Telegram Stars that were gifted.
|
TdApi.Sticker |
sticker
A sticker to be shown in the message; may be null if unknown.
|
java.lang.String |
transactionId
Identifier of the transaction for Telegram Stars purchase; for receiver only.
|
| Constructor and Description |
|---|
MessageGiftedStars()
Telegram Stars were gifted to a user.
|
MessageGiftedStars(long gifterUserId,
long receiverUserId,
java.lang.String currency,
long amount,
java.lang.String cryptocurrency,
long cryptocurrencyAmount,
long starCount,
java.lang.String transactionId,
TdApi.Sticker sticker)
Telegram Stars were 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 java.lang.String currency
public long amount
public java.lang.String cryptocurrency
public long cryptocurrencyAmount
public long starCount
public java.lang.String transactionId
public TdApi.Sticker sticker
public static final int CONSTRUCTOR
public MessageGiftedStars()
public MessageGiftedStars(long gifterUserId,
long receiverUserId,
java.lang.String currency,
long amount,
java.lang.String cryptocurrency,
long cryptocurrencyAmount,
long starCount,
java.lang.String transactionId,
TdApi.Sticker sticker)
gifterUserId - The identifier of a user that gifted Telegram Stars; 0 if the gift was anonymous or is outgoing.receiverUserId - The identifier of a user that received Telegram Stars; 0 if the gift is incoming.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.starCount - Number of Telegram Stars that were gifted.transactionId - Identifier of the transaction for Telegram Stars purchase; for receiver only.sticker - A sticker to be shown in the message; may be null if unknown.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object