Class TdApi.ToggleChatIsPinned

  • Enclosing class:
    TdApi

    public static class TdApi.ToggleChatIsPinned
    extends TdApi.Function
    Changes the pinned state of a chat. You can pin up to GetOption("pinnedChatCountMax") non-secret chats and the same number of secret chats.

    Returns Ok

    • Field Summary

      Fields 
      Modifier and Type Field Description
      long chatId
      Chat identifier.
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      boolean isPinned
      New value of isPinned.
    • Constructor Summary

      Constructors 
      Constructor Description
      ToggleChatIsPinned()
      Default constructor.
      ToggleChatIsPinned​(long chatId, boolean isPinned)
      Constructor for initialization of all fields.
    • Field Detail

      • chatId

        public long chatId
        Chat identifier.
      • isPinned

        public boolean isPinned
        New value of isPinned.
      • 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.
      • ToggleChatIsPinned

        public ToggleChatIsPinned​(long chatId,
                                  boolean isPinned)
        Constructor for initialization of all fields.
        Parameters:
        chatId - Chat identifier.
        isPinned - New value of isPinned.