public static class TdApi.UserGift extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
date
Point in time (Unix timestamp) when the gift was sent.
|
TdApi.Gift |
gift
The gift.
|
boolean |
isPrivate
True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone are able to see them.
|
boolean |
isSaved
True, if the gift is displayed on the user's profile page; may be false only for the receiver of the gift.
|
long |
messageId
Identifier of the message with the gift in the chat with the sender of the gift; can be 0 or an identifier of a deleted message; only for the gift receiver.
|
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 current user.
|
long |
senderUserId
Identifier of the user that sent the gift; 0 if unknown.
|
TdApi.FormattedText |
text
Message added to the gift.
|
| Constructor and Description |
|---|
UserGift()
Represents a gift received by a user.
|
UserGift(long senderUserId,
TdApi.FormattedText text,
boolean isPrivate,
boolean isSaved,
int date,
TdApi.Gift gift,
long messageId,
long sellStarCount)
Represents a gift received by a user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long senderUserId
public TdApi.FormattedText text
public boolean isPrivate
public boolean isSaved
public int date
public TdApi.Gift gift
public long messageId
public long sellStarCount
public static final int CONSTRUCTOR
public UserGift()
public UserGift(long senderUserId,
TdApi.FormattedText text,
boolean isPrivate,
boolean isSaved,
int date,
TdApi.Gift gift,
long messageId,
long sellStarCount)
senderUserId - Identifier of the user that sent the gift; 0 if unknown.text - Message added to the gift.isPrivate - True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone are able to see them.isSaved - True, if the gift is displayed on the user's profile page; may be false only for the receiver of the gift.date - Point in time (Unix timestamp) when the gift was sent.gift - The gift.messageId - Identifier of the message with the gift in the chat with the sender of the gift; can be 0 or an identifier of a deleted message; only for the gift receiver.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 current user.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object