Commit fe988b7f authored by Jack'lul's avatar Jack'lul

Fix for channels where chat_id can be a text (developers should use getChat()...

Fix for channels where chat_id can be a text (developers should use getChat() to get numeric value!)
parent 69f44cdc
......@@ -1028,6 +1028,10 @@ class Request
if ((isset($data['chat_id']) || isset($data['inline_message_id'])) && in_array($action, $limited_methods)) {
$timeout = 60;
if (!is_numeric($data['chat_id'])) {
$data['chat_id'] = 0;
}
while (true) {
$requests = DB::getTelegramRequestCount((isset($data['chat_id']) ? $data['chat_id'] : null), (isset($data['inline_message_id']) ? $data['inline_message_id'] : null));
......
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