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