From 1fb3400dcaee72837e5b7b95cc946158b012936d Mon Sep 17 00:00:00 2001 From: Andrea Cometa Date: Sun, 20 Sep 2015 12:13:07 +0200 Subject: [PATCH 1/2] Update Telegram.php little fix --- Telegram.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram.php b/Telegram.php index 538e58f..4d75308 100755 --- a/Telegram.php +++ b/Telegram.php @@ -197,7 +197,7 @@ public function getUpdates($offset = 0, $limit = 100, $timeout = 0, $update = tr $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 +?> From 7dc31bbb6b8e66391fee286b7d5af1aaaf8be0bf Mon Sep 17 00:00:00 2001 From: Andrea Cometa Date: Sun, 20 Sep 2015 12:14:14 +0200 Subject: [PATCH 2/2] Update Telegram.php --- Telegram.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram.php b/Telegram.php index 4d75308..46e16c1 100755 --- a/Telegram.php +++ b/Telegram.php @@ -192,7 +192,7 @@ 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) {