Ignore internal setWebhook queries in flood-control.

main
levlam 5 years ago
parent 05bbc55569
commit 084aa2a6f3

@ -7579,7 +7579,7 @@ td::Status Client::process_set_webhook_query(PromisedQueryPtr &query) {
} }
auto now = td::Time::now_cached(); auto now = td::Time::now_cached();
if (!new_url.empty()) { if (!new_url.empty() && !query->is_internal()) {
if (now < next_allowed_set_webhook_time_) { if (now < next_allowed_set_webhook_time_) {
query->set_retry_after_error(1); query->set_retry_after_error(1);
return Status::OK(); return Status::OK();

Loading…
Cancel
Save