Call GetVersion() instead of GetAuthorizationState()
👀
This commit is contained in:
parent
6558bd9ba9
commit
f46bcd6a1d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user