mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-30 16:02:56 +01:00
Ignore internal setWebhook queries in flood-control.
This commit is contained in:
parent
05bbc55569
commit
084aa2a6f3
@ -7579,7 +7579,7 @@ td::Status Client::process_set_webhook_query(PromisedQueryPtr &query) {
|
||||
}
|
||||
|
||||
auto now = td::Time::now_cached();
|
||||
if (!new_url.empty()) {
|
||||
if (!new_url.empty() && !query->is_internal()) {
|
||||
if (now < next_allowed_set_webhook_time_) {
|
||||
query->set_retry_after_error(1);
|
||||
return Status::OK();
|
||||
|
Loading…
Reference in New Issue
Block a user