Package it.tdlight.jni
Class TdApi.ToggleChatIsPinned
- 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/arhive 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
True, if the chat is pinned. -
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) -
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 isPinnedTrue, if the chat is pinned. -
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/arhive chat list.Returns
Ok
-
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/arhive chat list.Returns
Ok
- Parameters:
chatList
- ChatList Chat list in which to change the pinned state of the chat.chatId
- long Chat identifier.isPinned
- boolean True, if the chat is pinned.
-
ToggleChatIsPinned
- 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()
-