public static class TdApi.CreatePrivateChat 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 |
userId
User identifier.
|
| Constructor and Description |
|---|
CreatePrivateChat()
Default constructor for a function, which returns an existing chat corresponding to a given user.
|
CreatePrivateChat(long userId,
boolean force)
Creates a function, which returns an existing chat corresponding to a given user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long userId
public boolean force
public static final int CONSTRUCTOR
public CreatePrivateChat()
Returns Chat
public CreatePrivateChat(long userId,
boolean force)
Returns Chat
userId - User 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