mirror of
https://github.com/PaiGramTeam/telegram-bot-api.git
synced 2024-11-27 02:25:27 +00:00
Allow all updateUser updates before authorization.
This commit is contained in:
parent
01ff608cfa
commit
d95441a48d
@ -4231,7 +4231,7 @@ bool Client::allow_update_before_authorization(const td_api::Object *update) con
|
|||||||
return name == "my_id" || name == "unix_time";
|
return name == "my_id" || name == "unix_time";
|
||||||
}
|
}
|
||||||
if (update_id == td_api::updateUser::ID) {
|
if (update_id == td_api::updateUser::ID) {
|
||||||
return static_cast<const td_api::updateUser *>(update)->user_->id_ == my_id_;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user