Package it.tdlight.jni
Class TdApi.ToggleChatIsPinned
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.ToggleChatIsPinned
- Enclosing class:
- TdApi
public static class TdApi.ToggleChatIsPinned extends TdApi.Function
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
Fields Modifier and Type Field Description long
chatId
Chat identifier.TdApi.ChatList
chatList
Chat list in which to change the pinned state of the chat.static int
CONSTRUCTOR
boolean
isPinned
True, if the chat is pinned. -
Constructor Summary
Constructors Constructor Description ToggleChatIsPinned()
Changes 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
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
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:
- Constant Field Values
-
-
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()
-