A null config value for "password" will also show a console prompt

This commit is contained in:
Wizou 2021-10-20 13:08:10 +02:00
parent a473475e11
commit 5e2ddf41f6
4 changed files with 17 additions and 7 deletions

View file

@ -103,7 +103,7 @@ namespace WTelegram
"lang_pack" => "",
"lang_code" => CultureInfo.CurrentUICulture.TwoLetterISOLanguageName,
"user_id" => "-1",
"verification_code" => AskConfig(config),
"verification_code" or "password" => AskConfig(config),
_ => null // api_id api_hash phone_number... it's up to you to reply to these correctly
};