Module tdlight.api

Class TdApi.Destroy

Enclosing class:
TdApi

public static final class TdApi.Destroy extends TdApi.Function<TdApi.Ok>
Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization. Returns Ok
  • Field Details

  • Constructor Details

    • Destroy

      public Destroy()
      Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization. Returns Ok
    • Destroy

      public Destroy(DataInput input) throws IOException
      Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization. Returns Ok
      Throws:
      IOException
  • Method Details