You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!($requests = DB::getTelegramRequestCount($chat_id, $inline_message_id))) {
841
+
break;
842
+
}
843
+
844
+
// Make sure we're handling integers here.
845
+
$requests = array_map('intval', $requests);
841
846
842
-
$chat_per_second = ($requests['LIMIT_PER_SEC'] == 0); // No more than one message per second inside a particular chat
843
-
$global_per_second = ($requests['LIMIT_PER_SEC_ALL'] < 30); // No more than 30 messages per second to different chats
844
-
$groups_per_minute = (((is_numeric($chat_id) && $chat_id > 0) || !is_null($inline_message_id)) || ((!is_numeric($chat_id) || $chat_id < 0) && $requests['LIMIT_PER_MINUTE'] < 20)); // No more than 20 messages per minute in groups and channels
847
+
$chat_per_second = ($requests['LIMIT_PER_SEC'] ===0);// No more than one message per second inside a particular chat
848
+
$global_per_second = ($requests['LIMIT_PER_SEC_ALL'] < 30); // No more than 30 messages per second to different chats
849
+
$groups_per_minute = (((is_numeric($chat_id) && $chat_id > 0) || $inline_message_id !== null) || ((!is_numeric($chat_id) || $chat_id < 0) && $requests['LIMIT_PER_MINUTE'] < 20)); // No more than 20 messages per minute in groups and channels
845
850
846
851
if ($chat_per_second && $global_per_second && $groups_per_minute) {
0 commit comments