public static class TdApi.CreatePrivateChat extends TdApi.Function
Returns Chat
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
force
If true, the chat will be created without 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() |
toString
public 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
- If true, the chat will be created without network request. In this case all information about the chat except its type, title and photo can be incorrect.public int getConstructor()
getConstructor
in class TdApi.Function