public static class TdApi.SellGift extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
messageId
Identifier of the message with the gift in the chat with the user.
|
long |
senderUserId
Identifier of the user that sent the gift.
|
| Constructor and Description |
|---|
SellGift()
Default constructor for a function, which sells a gift received by the current user for Telegram Stars.
|
SellGift(long senderUserId,
long messageId)
Creates a function, which sells a gift received by the current user for Telegram Stars.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long senderUserId
public long messageId
public static final int CONSTRUCTOR
public SellGift()
Returns Ok
public SellGift(long senderUserId,
long messageId)
Returns Ok
senderUserId - Identifier of the user that sent the gift.messageId - Identifier of the message with the gift in the chat with the user.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object