Ask login parameters explicitly
This commit is contained in:
parent
ff712809b5
commit
a4393e2769
@ -32,6 +32,12 @@ final class AuthorizationStateWaitAuthenticationDataHandler implements GenericUp
|
||||
public void onUpdate(UpdateAuthorizationState update) {
|
||||
if (update.authorizationState.getConstructor() == TdApi.AuthorizationStateWaitPhoneNumber.CONSTRUCTOR) {
|
||||
AuthenticationData authenticationData = authenticable.getAuthenticationData();
|
||||
|
||||
// Ask login parameters
|
||||
if (authenticationData instanceof ConsoleInteractiveAuthenticationData) {
|
||||
((ConsoleInteractiveAuthenticationData) authenticationData).askData();
|
||||
}
|
||||
|
||||
if (authenticationData.isBot()) {
|
||||
String botToken = authenticationData.getBotToken();
|
||||
TdApi.CheckAuthenticationBotToken response = new TdApi.CheckAuthenticationBotToken(botToken);
|
||||
|
Loading…
Reference in New Issue
Block a user