Package org.drinkless.tdlib
Class TdApi.ToggleChatIsPinned
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 longchatIdChat identifier.TdApi.ChatListchatListChat list in which to change the pinned state of the chat.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanisPinnedTrue, if the chat is pinned.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
chatList
public TdApi.ChatList chatList
Chat list in which to change the pinned state of the chat.
-
chatId
public long chatId
Chat identifier.
-
isPinned
public boolean isPinned
True, if the chat is pinned.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToggleChatIsPinned
public ToggleChatIsPinned()
Default constructor for a function, which 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
public ToggleChatIsPinned(TdApi.ChatList chatList, long chatId, boolean isPinned)
Creates a function, which 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- Chat list in which to change the pinned state of the chat.chatId- Chat identifier.isPinned- True, if the chat is pinned.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-