public static class TdApi.ToggleSessionCanAcceptSecretChats extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
boolean |
canAcceptSecretChats
True, if incoming secret chats can be accepted by the session.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
sessionId
Session identifier.
|
Constructor and Description |
---|
ToggleSessionCanAcceptSecretChats()
Default constructor for a function, which toggles whether a session can accept incoming secret chats.
|
ToggleSessionCanAcceptSecretChats(long sessionId,
boolean canAcceptSecretChats)
Creates a function, which toggles whether a session can accept incoming secret chats.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long sessionId
public boolean canAcceptSecretChats
public static final int CONSTRUCTOR
public ToggleSessionCanAcceptSecretChats()
Returns Ok
public ToggleSessionCanAcceptSecretChats(long sessionId, boolean canAcceptSecretChats)
Returns Ok
sessionId
- Session identifier.canAcceptSecretChats
- True, if incoming secret chats can be accepted by the session.public int getConstructor()
getConstructor
in class TdApi.Function