diff --git a/Telegram.php b/Telegram.php index 538e58f..46e16c1 100755 --- a/Telegram.php +++ b/Telegram.php @@ -192,12 +192,12 @@ public function buildForceReply($selective = true) { } public function getUpdates($offset = 0, $limit = 100, $timeout = 0, $update = true) { - $content = array('offset' => $offset, 'limit' => $limit, 'timeout' => $timeot); + $content = array('offset' => $offset, 'limit' => $limit, 'timeout' => $timeout); $reply = $this->endpoint("getUpdates", $content); $this->updates = json_decode($reply, true); if ($update) { $last_element_id = $this->updates["result"][count($this->updates["result"]) - 1]["update_id"] + 1; - $content = array('offset' => $last_element_id, 'limit' => "1", 'timeout' => $timeot); + $content = array('offset' => $last_element_id, 'limit' => "1", 'timeout' => $timeout); $this->endpoint("getUpdates", $content); } return $this->updates; @@ -229,4 +229,4 @@ function curl_file_create($filename, $mimetype = '', $postname = '') { . ($mimetype ? ";type=$mimetype" : ''); } } -?> \ No newline at end of file +?>