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
      Pass 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. 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 Pass true to allow accepring secret chats by the session; pass false otherwise.
    • ToggleSessionCanAcceptSecretChats

      public ToggleSessionCanAcceptSecretChats(DataInput input) throws IOException
      Toggles whether a session can accept incoming secret chats. Returns Ok
      Throws:
      IOException
  • Method Details