public static class TdApi.ToggleSavedMessagesTopicIsPinned extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isPinned
Pass true to pin the topic; pass false to unpin it.
|
long |
savedMessagesTopicId
Identifier of Saved Messages topic to pin or unpin.
|
| Constructor and Description |
|---|
ToggleSavedMessagesTopicIsPinned()
Default constructor for a function, which changes the pinned state of a Saved Messages topic.
|
ToggleSavedMessagesTopicIsPinned(long savedMessagesTopicId,
boolean isPinned)
Creates a function, which changes the pinned state of a Saved Messages topic.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long savedMessagesTopicId
public boolean isPinned
public static final int CONSTRUCTOR
public ToggleSavedMessagesTopicIsPinned()
Returns Ok
public ToggleSavedMessagesTopicIsPinned(long savedMessagesTopicId,
boolean isPinned)
Returns Ok
savedMessagesTopicId - Identifier of Saved Messages topic to pin or unpin.isPinned - Pass true to pin the topic; pass false to unpin it.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object