public static class TdApi.CreateNewSupergroupChat extends TdApi.Function
Returns Chat
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
description
Chat description; 0-255 characters.
|
boolean |
forImport
True, if the supergroup is created for importing messages using importMessage.
|
boolean |
isChannel
True, if a channel chat needs to be created.
|
TdApi.ChatLocation |
location
Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat.
|
java.lang.String |
title
Title of the new chat; 1-128 characters.
|
Constructor and Description |
---|
CreateNewSupergroupChat()
Default constructor for a function, which creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate.
|
CreateNewSupergroupChat(java.lang.String title,
boolean isChannel,
java.lang.String description,
TdApi.ChatLocation location,
boolean forImport)
Creates a function, which creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String title
public boolean isChannel
public java.lang.String description
public TdApi.ChatLocation location
public boolean forImport
public static final int CONSTRUCTOR
public CreateNewSupergroupChat()
Returns Chat
public CreateNewSupergroupChat(java.lang.String title, boolean isChannel, java.lang.String description, TdApi.ChatLocation location, boolean forImport)
Returns Chat
title
- Title of the new chat; 1-128 characters.isChannel
- True, if a channel chat needs to be created.description
- Chat description; 0-255 characters.location
- Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat.forImport
- True, if the supergroup is created for importing messages using importMessage.public int getConstructor()
getConstructor
in class TdApi.Function