Commit 6850f618 authored by Jack'lul's avatar Jack'lul

fix when using getUpdates

parent 202d8d75
......@@ -83,6 +83,8 @@ class Botan
throw new TelegramException('Input is empty!');
}
self::$command = '';
$obj = json_decode($input, true);
if (isset($obj['message'])) {
$data = $obj['message'];
......@@ -117,8 +119,6 @@ class Botan
return false;
}
self::$command = '';
$uid = $data['from']['id'];
$request = str_replace(
['#TOKEN', '#UID', '#NAME'],
......
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