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

Code fixes

parent db3b342a
...@@ -64,7 +64,7 @@ try { ...@@ -64,7 +64,7 @@ try {
//$telegram->setUploadPath('../Upload'); //$telegram->setUploadPath('../Upload');
// Requests Limiter (tries to prevent reaching Telegram API limits) // Requests Limiter (tries to prevent reaching Telegram API limits)
// Second argument are options // First argument are options
$telegram->enableLimiter(); $telegram->enableLimiter();
//$telegram->enableLimiter(['interval' => 0.5); //$telegram->enableLimiter(['interval' => 0.5);
......
...@@ -70,7 +70,7 @@ try { ...@@ -70,7 +70,7 @@ try {
//$telegram->enableBotan('your_token', ['timeout' => 3]); //$telegram->enableBotan('your_token', ['timeout' => 3]);
// Requests Limiter (tries to prevent reaching Telegram API limits) // Requests Limiter (tries to prevent reaching Telegram API limits)
// Second argument are options // First argument are options
$telegram->enableLimiter(); $telegram->enableLimiter();
//$telegram->enableLimiter(['interval' => 0.5); //$telegram->enableLimiter(['interval' => 0.5);
......
...@@ -69,7 +69,7 @@ try { ...@@ -69,7 +69,7 @@ try {
//$telegram->enableBotan('your_token', ['timeout' => 3]); //$telegram->enableBotan('your_token', ['timeout' => 3]);
// Requests Limiter (tries to prevent reaching Telegram API limits) // Requests Limiter (tries to prevent reaching Telegram API limits)
// Second argument are options // First argument are options
$telegram->enableLimiter(); $telegram->enableLimiter();
//$telegram->enableLimiter(['interval' => 0.5); //$telegram->enableLimiter(['interval' => 0.5);
......
...@@ -173,7 +173,7 @@ class DB ...@@ -173,7 +173,7 @@ class DB
* Fetch update(s) from DB * Fetch update(s) from DB
* *
* @param int $limit Limit the number of updates to fetch * @param int $limit Limit the number of updates to fetch
* @param int $id Check for unique update id * @param int $id Check for unique update id
* *
* @return array|bool Fetched data or false if not connected * @return array|bool Fetched data or false if not connected
* @throws \Longman\TelegramBot\Exception\TelegramException * @throws \Longman\TelegramBot\Exception\TelegramException
...@@ -482,7 +482,7 @@ class DB ...@@ -482,7 +482,7 @@ class DB
$update_id = $update->getUpdateId(); $update_id = $update->getUpdateId();
$update_type = $update->getUpdateType(); $update_type = $update->getUpdateType();
if (count(self::selectTelegramUpdate(1, $update->getUpdateId())) == 1) { if (count(self::selectTelegramUpdate(1, $update->getUpdateId())) === 1) {
throw new TelegramException('Duplicate update received!'); throw new TelegramException('Duplicate update received!');
} }
......
...@@ -951,7 +951,7 @@ class Telegram ...@@ -951,7 +951,7 @@ class Telegram
/** /**
* Is this session initiated by runCommands() * Is this session initiated by runCommands()
* *
* @return string * @return bool
*/ */
public function isRunCommands() public function isRunCommands()
{ {
......
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