- Enclosing class:
- TdApi
Toggles whether a session can accept
incoming secret chats.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Pass true to allow accepring secret chats by the session; pass false otherwise.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 canAcceptSecretChatsPass true to allow accepring secret chats by the session; pass false otherwise. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ToggleSessionCanAcceptSecretChats
public ToggleSessionCanAcceptSecretChats()Toggles whether a session can accept incoming secret chats. ReturnsOk
-
ToggleSessionCanAcceptSecretChats
public ToggleSessionCanAcceptSecretChats(long sessionId, boolean canAcceptSecretChats) Toggles whether a session can accept incoming secret chats. ReturnsOk
- Parameters:
sessionId
- long Session identifier.canAcceptSecretChats
- boolean Pass true to allow accepring secret chats by the session; pass false otherwise.
-
ToggleSessionCanAcceptSecretChats
Toggles whether a session can accept incoming secret chats. ReturnsOk
- 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()
-