diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 66b5dee..e68e23d 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -4103,7 +4103,11 @@ ServerBotInfo Client::get_bot_info() const { if (user_info != nullptr) { res.username_ = user_info->editable_username; } else if (!was_authorized_) { - res.username_ = ""; + if (logging_out_) { + res.username_ = ""; + } else { + res.username_ = ""; + } } else { res.username_ = ""; }