public static class TdApi.MessageGift extends TdApi.MessageContent
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.Gift |
gift
The gift.
|
boolean |
isPrivate
True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
|
boolean |
isSaved
True, if the gift is displayed on the user's profile page; only for the receiver of the gift.
|
long |
sellStarCount
Number of Telegram Stars that can be claimed by the receiver instead of the gift; 0 if the gift can't be sold by the receiver.
|
TdApi.FormattedText |
text
Message added to the gift.
|
boolean |
wasConverted
True, if the gift was converted to Telegram Stars; only for the receiver of the gift.
|
| Constructor and Description |
|---|
MessageGift()
A gift was received or sent by the current user.
|
MessageGift(TdApi.Gift gift,
TdApi.FormattedText text,
long sellStarCount,
boolean isPrivate,
boolean isSaved,
boolean wasConverted)
A gift was received or sent by the current user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.Gift gift
public TdApi.FormattedText text
public long sellStarCount
public boolean isPrivate
public boolean isSaved
public boolean wasConverted
public static final int CONSTRUCTOR
public MessageGift()
public MessageGift(TdApi.Gift gift, TdApi.FormattedText text, long sellStarCount, boolean isPrivate, boolean isSaved, boolean wasConverted)
gift - The gift.text - Message added to the gift.sellStarCount - Number of Telegram Stars that can be claimed by the receiver instead of the gift; 0 if the gift can't be sold by the receiver.isPrivate - True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.isSaved - True, if the gift is displayed on the user's profile page; only for the receiver of the gift.wasConverted - True, if the gift was converted to Telegram Stars; only for the receiver of the gift.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object