Class TdApi.GetCurrentState

Enclosing class:
TdApi

public static class TdApi.GetCurrentState
extends TdApi.Function
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