Fix getTermsOfServiceUpdate for bots.

GitOrigin-RevId: 177f5362015dd78e8ef94cbbfc57b8dd49984655
This commit is contained in:
levlam 2018-06-08 19:20:09 +03:00
parent 427918d8f9
commit 69a3eecbcc

View File

@ -3892,7 +3892,7 @@ void Td::on_get_terms_of_service(Result<std::pair<int32, TermsOfService>> result
}
void Td::schedule_get_terms_of_service(int32 expires_in) {
if (!close_flag_) {
if (!close_flag_ && !auth_manager_->is_bot()) {
alarm_timeout_.set_timeout_in(TERMS_OF_SERVICE_ALARM_ID, expires_in);
}
}