(SELECT COUNT(*) FROM `'.TB_REQUEST_LIMITER.'` WHERE ((`chat_id` = :chat_id AND `inline_message_id` IS NULL) OR (`inline_message_id` = :inline_message_id AND `chat_id` IS NULL)) AND `created_at` >= :date) as CURRENT,
(SELECT COUNT(*) FROM `'.TB_REQUEST_LIMITER.'` WHERE `created_at` >= :date) as TOTAL
(SELECT COUNT(*) FROM `'.TB_REQUEST_LIMITER.'` WHERE `created_at` >= :date) as LIMIT_PER_SEC_ALL,
(SELECT COUNT(*) FROM `'.TB_REQUEST_LIMITER.'` WHERE ((`chat_id` = :chat_id AND `inline_message_id` IS NULL) OR (`inline_message_id` = :inline_message_id AND `chat_id` IS NULL)) AND `created_at` >= :date) as LIMIT_PER_SEC,
(SELECT COUNT(*) FROM `'.TB_REQUEST_LIMITER.'` WHERE `chat_id` = :chat_id AND `created_at` >= :date_minute) as LIMIT_PER_MINUTE
thrownewTelegramException('Timed out while waiting for a request slot!');
TelegramLog::debug('Timed out while waiting for a request slot, retrying with 10 seconds delay!'.PHP_EOL.'Request data:'.PHP_EOL.print_r($data,true).PHP_EOL.PHP_EOL);