Module tdlight.api

Class TdApi.ToggleSessionCanAcceptSecretChats

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.Ok>
it.tdlight.jni.TdApi.ToggleSessionCanAcceptSecretChats
Enclosing class:
TdApi

public static final class TdApi.ToggleSessionCanAcceptSecretChats extends TdApi.Function<TdApi.Ok>
Toggles whether a session can accept incoming secret chats.

Returns Ok

  • Field Details

    • sessionId

      public long sessionId
      Session identifier.
    • canAcceptSecretChats

      public boolean canAcceptSecretChats
      True, 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

      public ToggleSessionCanAcceptSecretChats(DataInput input) throws IOException
      Toggles whether a session can accept incoming secret chats.

      Returns Ok

      Throws:
      IOException
  • Method Details