mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-23 19:25:54 +01:00
Improve BotInfo for bots with invalid tokens.
This commit is contained in:
parent
82d592702d
commit
70428fb762
@ -4103,7 +4103,11 @@ ServerBotInfo Client::get_bot_info() const {
|
||||
if (user_info != nullptr) {
|
||||
res.username_ = user_info->editable_username;
|
||||
} else if (!was_authorized_) {
|
||||
if (logging_out_) {
|
||||
res.username_ = "<failed to authorize>";
|
||||
} else {
|
||||
res.username_ = "<unauthorized>";
|
||||
}
|
||||
} else {
|
||||
res.username_ = "<unknown>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user