- Enclosing class:
- TdApi
Toggles whether a session can accept
incoming secret chats.
Returns
Ok-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanPass true to allow accepting secret chats by the session; pass false otherwise.static final intlongSession identifier. -
Constructor Summary
ConstructorsConstructorDescriptionToggles 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
toStringMethods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
sessionId
public long sessionIdSession identifier. -
canAcceptSecretChats
public boolean canAcceptSecretChatsPass true to allow accepting 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 accepting 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:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-