diff --git a/tg.cpp b/tg.cpp index 2baf625..6aab182 100644 --- a/tg.cpp +++ b/tg.cpp @@ -88,6 +88,7 @@ bool TelegramClient::process_response(td::ClientManager::Response response) { spdlog::debug("setting password"); if (passwordProvider) passwordProvider(std::bind(&TelegramClient::set_password, this, std::placeholders::_1)); + return true; case td_api::authorizationStateWaitCode::ID: spdlog::debug("setting 2FA code"); if (authCodeProvider)