public static class TdApi.CreateNewSupergroupChat extends TdApi.Function<TdApi.Chat>
Returns Chat
| 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
Pass true to create a supergroup for importing messages using importMessages.
|
boolean |
isChannel
Pass true to create a channel chat; ignored if a forum is created.
|
boolean |
isForum
Pass true to create a forum supergroup chat.
|
TdApi.ChatLocation |
location
Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat.
|
int |
messageAutoDeleteTime
Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400.
|
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 isForum,
boolean isChannel,
java.lang.String description,
TdApi.ChatLocation location,
int messageAutoDeleteTime,
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()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String title
public boolean isForum
public boolean isChannel
public java.lang.String description
public TdApi.ChatLocation location
public int messageAutoDeleteTime
public boolean forImport
public static final int CONSTRUCTOR
public CreateNewSupergroupChat()
Returns Chat
public CreateNewSupergroupChat(java.lang.String title,
boolean isForum,
boolean isChannel,
java.lang.String description,
TdApi.ChatLocation location,
int messageAutoDeleteTime,
boolean forImport)
Returns Chat
title - Title of the new chat; 1-128 characters.isForum - Pass true to create a forum supergroup chat.isChannel - Pass true to create a channel chat; ignored if a forum is 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.messageAutoDeleteTime - Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically.forImport - Pass true to create a supergroup for importing messages using importMessages.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object