Commit 331e1497 authored by Jack'lul's avatar Jack'lul

Correction for travis to pass

parent 899b79ba
...@@ -1042,12 +1042,9 @@ class Request ...@@ -1042,12 +1042,9 @@ class Request
$requests = DB::getTelegramRequestCount($chat_id, $inline_message_id); $requests = DB::getTelegramRequestCount($chat_id, $inline_message_id);
if ( if ($requests['LIMIT_PER_SEC'] == 0 // No more than one message per second inside a particular chat
$requests['LIMIT_PER_SEC'] == 0 && // No more than one message per second inside a particular chat && ((($chat_id > 0 || $inline_message_id) && $requests['LIMIT_PER_SEC_ALL'] < 30) // No more than 30 messages per second globally
( || ($chat_id < 0 && $requests['LIMIT_PER_MINUTE'] < 20))
(($chat_id > 0 || $inline_message_id) && $requests['LIMIT_PER_SEC_ALL'] < 30) || // No more than 30 messages per second globally
($chat_id < 0 && $requests['LIMIT_PER_MINUTE'] < 20) // No more than 20 messages per minute for group chats
)
) { ) {
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment