public static class TdApi.ToggleGiftIsSaved extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isSaved
Pass true to display the gift on the user's profile page; pass false to remove it from the profile page.
|
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 |
|---|
ToggleGiftIsSaved()
Default constructor for a function, which toggles whether a gift is shown on the current user's profile page.
|
ToggleGiftIsSaved(long senderUserId,
long messageId,
boolean isSaved)
Creates a function, which toggles whether a gift is shown on the current user's profile page.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long senderUserId
public long messageId
public boolean isSaved
public static final int CONSTRUCTOR
public ToggleGiftIsSaved()
Returns Ok
public ToggleGiftIsSaved(long senderUserId,
long messageId,
boolean isSaved)
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.isSaved - Pass true to display the gift on the user's profile page; pass false to remove it from the profile page.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object