Module tdlight.api

Class TdApi.GetCurrentState

Enclosing class:
TdApi

public static final class TdApi.GetCurrentState extends TdApi.Function<TdApi.Updates>
Returns all updates needed to restore current TDLib state, i.e. all actual UpdateAuthorizationState/UpdateUser/UpdateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization.

Returns Updates

  • Field Details

  • Constructor Details

    • GetCurrentState

      public GetCurrentState()
      Returns all updates needed to restore current TDLib state, i.e. all actual UpdateAuthorizationState/UpdateUser/UpdateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization.

      Returns Updates

    • GetCurrentState

      public GetCurrentState(DataInput input) throws IOException
      Returns all updates needed to restore current TDLib state, i.e. all actual UpdateAuthorizationState/UpdateUser/UpdateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization.

      Returns Updates

      Throws:
      IOException
  • Method Details