diff --git a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt index 59e222e375..634621e268 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt @@ -271,8 +271,13 @@ class TelegramHelper private constructor() { fun applyAuthenticationParameter(parameterType: TelegramAuthenticationParameterType, parameterValue: String) { if (!TextUtils.isEmpty(parameterValue)) { when (parameterType) { - PHONE_NUMBER -> client!!.send(TdApi.SetAuthenticationPhoneNumber(parameterValue, false, false), AuthorizationRequestHandler()) - CODE -> client!!.send(TdApi.CheckAuthenticationCode(parameterValue, "", ""), AuthorizationRequestHandler()) + PHONE_NUMBER -> client!!.send( + TdApi.SetAuthenticationPhoneNumber( + parameterValue, + TdApi.PhoneNumberAuthenticationSettings(false, false, false) + ), AuthorizationRequestHandler() + ) + CODE -> client!!.send(TdApi.CheckAuthenticationCode(parameterValue), AuthorizationRequestHandler()) PASSWORD -> client!!.send(TdApi.CheckAuthenticationPassword(parameterValue), AuthorizationRequestHandler()) } }