Class 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 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.