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

Code fixes

parent db3b342a
......@@ -64,7 +64,7 @@ try {
//$telegram->setUploadPath('../Upload');
// Requests Limiter (tries to prevent reaching Telegram API limits)
// Second argument are options
// First argument are options
$telegram->enableLimiter();
//$telegram->enableLimiter(['interval' => 0.5);
......
......@@ -70,7 +70,7 @@ try {
//$telegram->enableBotan('your_token', ['timeout' => 3]);
// Requests Limiter (tries to prevent reaching Telegram API limits)
// Second argument are options
// First argument are options
$telegram->enableLimiter();
//$telegram->enableLimiter(['interval' => 0.5);
......
......@@ -69,7 +69,7 @@ try {
//$telegram->enableBotan('your_token', ['timeout' => 3]);
// Requests Limiter (tries to prevent reaching Telegram API limits)
// Second argument are options
// First argument are options
$telegram->enableLimiter();
//$telegram->enableLimiter(['interval' => 0.5);
......
......@@ -173,7 +173,7 @@ class DB
* Fetch update(s) from DB
*
* @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
* @throws \Longman\TelegramBot\Exception\TelegramException
......@@ -482,7 +482,7 @@ class DB
$update_id = $update->getUpdateId();
$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!');
}
......
......@@ -951,7 +951,7 @@ class Telegram
/**
* Is this session initiated by runCommands()
*
* @return string
* @return bool
*/
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