Call GetVersion() instead of GetAuthorizationState()

👀
This commit is contained in:
Andrea Cavalli 2021-10-21 18:56:48 +02:00
parent 6558bd9ba9
commit f46bcd6a1d

View File

@ -157,8 +157,8 @@ public final class InternalClient implements ClientEventsHandler, TelegramClient
clientManager.registerClient(clientId, this); clientManager.registerClient(clientId, this);
logger.info(TG_MARKER, "Registered new client {}", clientId); logger.info(TG_MARKER, "Registered new client {}", clientId);
// Send a dummy request because @levlam is too lazy to fix race conditions in a better way // Send a dummy request to start TDLib
this.send(new TdApi.GetAuthorizationState(), (result) -> {}, ex -> {}); this.send(new TdApi.GetOption("version"), (result) -> {}, ex -> {});
} }
@Override @Override