Class TdApi.ToggleChatIsPinned

Enclosing class:
TdApi

public static class TdApi.ToggleChatIsPinned extends TdApi.Function<TdApi.Ok>
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 Details

    • 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
      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

      public ToggleChatIsPinned(TdApi.ChatList chatList, long chatId, boolean isPinned)
      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

      public ToggleChatIsPinned(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details