Class TdApi.CreateNewSupergroupChat

  • Enclosing class:
    TdApi

    public static class TdApi.CreateNewSupergroupChat
    extends TdApi.Function
    Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat.

    Returns Chat

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      java.lang.String description
      Chat description; 0-255 characters.
      boolean isChannel
      True, if a channel chat should be created.
      java.lang.String title
      Title of the new chat; 1-255 characters.
    • Constructor Summary

      Constructors 
      Constructor Description
      CreateNewSupergroupChat()
      Default constructor.
      CreateNewSupergroupChat​(java.lang.String title, boolean isChannel, java.lang.String description)
      Constructor for initialization of all fields.
    • Field Detail

      • title

        public java.lang.String title
        Title of the new chat; 1-255 characters.
      • isChannel

        public boolean isChannel
        True, if a channel chat should be created.
      • description

        public java.lang.String description
        Chat description; 0-255 characters.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CreateNewSupergroupChat

        public CreateNewSupergroupChat()
        Default constructor.
      • CreateNewSupergroupChat

        public CreateNewSupergroupChat​(java.lang.String title,
                                       boolean isChannel,
                                       java.lang.String description)
        Constructor for initialization of all fields.
        Parameters:
        title - Title of the new chat; 1-255 characters.
        isChannel - True, if a channel chat should be created.
        description - Chat description; 0-255 characters.