- Enclosing class:
- TdApi
Toggles whether a session can accept
incoming secret chats.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionboolean
True, if incoming secret chats can be accepted by the session.static final int
long
Session identifier. -
Constructor Summary
ConstructorDescriptionToggles whether a session can accept incoming secret chats.ToggleSessionCanAcceptSecretChats
(long sessionId, boolean canAcceptSecretChats) Toggles whether a session can accept incoming secret chats.Toggles whether a session can accept incoming secret chats. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
sessionId
public long sessionIdSession identifier. -
canAcceptSecretChats
public boolean canAcceptSecretChatsTrue, if incoming secret chats can be accepted by the session. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ToggleSessionCanAcceptSecretChats
public ToggleSessionCanAcceptSecretChats()Toggles whether a session can accept incoming secret chats.Returns
Ok
-
ToggleSessionCanAcceptSecretChats
public ToggleSessionCanAcceptSecretChats(long sessionId, boolean canAcceptSecretChats) Toggles whether a session can accept incoming secret chats.Returns
Ok
- Parameters:
sessionId
- long Session identifier.canAcceptSecretChats
- boolean True, if incoming secret chats can be accepted by the session.
-
ToggleSessionCanAcceptSecretChats
Toggles whether a session can accept incoming secret chats.Returns
Ok
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-