Module tdlight.api

Class TdApi.ChatFolder

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatFolder
Enclosing class:
TdApi

public static final class TdApi.ChatFolder extends TdApi.Object
Represents a folder for user chats.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    boolean
    True, if archived chats need to be excluded.
    long[]
    The chat identifiers of always excluded chats in the folder.
    boolean
    True, if muted chats need to be excluded.
    boolean
    True, if read chats need to be excluded.
    The chosen icon for the chat folder; may be null.
    boolean
    True, if bots need to be included.
    boolean
    True, if channels need to be included.
    boolean
    True, if contacts need to be included.
    long[]
    The chat identifiers of always included chats in the folder.
    boolean
    True, if basic groups and supergroups need to be included.
    boolean
    True, if non-contact users need to be included.
    boolean
    True, if at least one link has been created for the folder.
    long[]
    The chat identifiers of pinned chats in the folder.
    The title of the folder; 1-12 characters without line feeds.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Represents a folder for user chats.
    Represents a folder for user chats.
    ChatFolder(String title, TdApi.ChatFolderIcon icon, boolean isShareable, long[] pinnedChatIds, long[] includedChatIds, long[] excludedChatIds, boolean excludeMuted, boolean excludeRead, boolean excludeArchived, boolean includeContacts, boolean includeNonContacts, boolean includeBots, boolean includeGroups, boolean includeChannels)
    Represents a folder for user chats.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Returns an identifier uniquely determining type of the object.
    int
     
    void
    Serialize the TDLib class

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • title

      public String title
      The title of the folder; 1-12 characters without line feeds.
    • icon

      public TdApi.ChatFolderIcon icon
      The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder.
    • isShareable

      public boolean isShareable
      True, if at least one link has been created for the folder.
    • pinnedChatIds

      public long[] pinnedChatIds
      The chat identifiers of pinned chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
    • includedChatIds

      public long[] includedChatIds
      The chat identifiers of always included chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
    • excludedChatIds

      public long[] excludedChatIds
      The chat identifiers of always excluded chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
    • excludeMuted

      public boolean excludeMuted
      True, if muted chats need to be excluded.
    • excludeRead

      public boolean excludeRead
      True, if read chats need to be excluded.
    • excludeArchived

      public boolean excludeArchived
      True, if archived chats need to be excluded.
    • includeContacts

      public boolean includeContacts
      True, if contacts need to be included.
    • includeNonContacts

      public boolean includeNonContacts
      True, if non-contact users need to be included.
    • includeBots

      public boolean includeBots
      True, if bots need to be included.
    • includeGroups

      public boolean includeGroups
      True, if basic groups and supergroups need to be included.
    • includeChannels

      public boolean includeChannels
      True, if channels need to be included.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • ChatFolder

      public ChatFolder()
      Represents a folder for user chats.
    • ChatFolder

      public ChatFolder(String title, TdApi.ChatFolderIcon icon, boolean isShareable, long[] pinnedChatIds, long[] includedChatIds, long[] excludedChatIds, boolean excludeMuted, boolean excludeRead, boolean excludeArchived, boolean includeContacts, boolean includeNonContacts, boolean includeBots, boolean includeGroups, boolean includeChannels)
      Represents a folder for user chats.
      Parameters:
      title - The title of the folder; 1-12 characters without line feeds.
      icon - The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder.
      isShareable - True, if at least one link has been created for the folder.
      pinnedChatIds - The chat identifiers of pinned chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
      includedChatIds - The chat identifiers of always included chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
      excludedChatIds - The chat identifiers of always excluded chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
      excludeMuted - True, if muted chats need to be excluded.
      excludeRead - True, if read chats need to be excluded.
      excludeArchived - True, if archived chats need to be excluded.
      includeContacts - True, if contacts need to be included.
      includeNonContacts - True, if non-contact users need to be included.
      includeBots - True, if bots need to be included.
      includeGroups - True, if basic groups and supergroups need to be included.
      includeChannels - True, if channels need to be included.
    • ChatFolder

      public ChatFolder(DataInput input) throws IOException
      Represents a folder for user chats.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object