public static class TdApi.CreateSupergroupChat extends TdApi.Function<TdApi.Chat>
Returns Chat
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
force
Pass true to create the chat without a network request.
|
long |
supergroupId
Supergroup or channel identifier.
|
| Constructor and Description |
|---|
CreateSupergroupChat()
Default constructor for a function, which returns an existing chat corresponding to a known supergroup or channel.
|
CreateSupergroupChat(long supergroupId,
boolean force)
Creates a function, which returns an existing chat corresponding to a known supergroup or channel.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long supergroupId
public boolean force
public static final int CONSTRUCTOR
public CreateSupergroupChat()
Returns Chat
public CreateSupergroupChat(long supergroupId,
boolean force)
Returns Chat
supergroupId - Supergroup or channel identifier.force - Pass true to create the chat without a network request. In this case all information about the chat except its type, title and photo can be incorrect.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object