- Enclosing class:
- TdApi
Changes the pinned state of a chat.
There can be up to
GetOption("pinned_chat_count_max")/GetOption("pinned_archived_chat_count_max")
pinned non-secret chats and the same
number of secret chats in the main/archive chat list.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.Chat list in which to change the pinned state of the chat.static final int
boolean
Pass true to pin the chat; pass false to unpin it. -
Constructor Summary
ConstructorDescriptionChanges the pinned state of a chat.ToggleChatIsPinned
(TdApi.ChatList chatList, long chatId, boolean isPinned) Changes the pinned state of a chat.ToggleChatIsPinned
(DataInput input) Changes the pinned state of a chat. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatList
Chat list in which to change the pinned state of the chat. -
chatId
public long chatIdChat identifier. -
isPinned
public boolean isPinnedPass true to pin the chat; pass false to unpin it. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ToggleChatIsPinned
public ToggleChatIsPinned()Changes the pinned state of a chat. There can be up to GetOption("pinned_chat_count_max")/GetOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. ReturnsOk
-
ToggleChatIsPinned
Changes the pinned state of a chat. There can be up to GetOption("pinned_chat_count_max")/GetOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. ReturnsOk
- Parameters:
chatList
- ChatList Chat list in which to change the pinned state of the chat.chatId
- long Chat identifier.isPinned
- boolean Pass true to pin the chat; pass false to unpin it.
-
ToggleChatIsPinned
Changes the pinned state of a chat. There can be up to GetOption("pinned_chat_count_max")/GetOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. ReturnsOk
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-