From 2ee75b769ccc65ff2d1e7c100340b4ce07015e4a Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 18 Apr 2019 18:18:20 +0300 Subject: [PATCH] Add additional check for is_bot before sending terms of service request. GitOrigin-RevId: 975ece32f0a7f31cd1b0021b414cc7cf17b907bf --- td/telegram/Td.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index 842a837c..002e4276 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -3031,7 +3031,7 @@ void Td::on_alarm_timeout(int64 alarm_id) { return; } if (alarm_id == TERMS_OF_SERVICE_ALARM_ID) { - if (!close_flag_) { + if (!close_flag_ && !auth_manager_->is_bot()) { get_terms_of_service( this, PromiseCreator::lambda([actor_id = actor_id(this)](Result> result) { send_closure(actor_id, &Td::on_get_terms_of_service, std::move(result), false);