From d95441a48da9691436d6d21ddef933205793faaa Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 30 Dec 2021 21:01:14 +0300 Subject: [PATCH] Allow all updateUser updates before authorization. --- telegram-bot-api/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index ff846d1..f48e5b6 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -4231,7 +4231,7 @@ bool Client::allow_update_before_authorization(const td_api::Object *update) con return name == "my_id" || name == "unix_time"; } if (update_id == td_api::updateUser::ID) { - return static_cast(update)->user_->id_ == my_id_; + return true; } return false; }