@@ -856,7 +856,7 @@ |
||
| 856 | 856 | protected function ucfirstUnicode($str, $encoding = 'UTF-8') |
| 857 | 857 | { |
| 858 | 858 | return mb_strtoupper(mb_substr($str, 0, 1, $encoding), $encoding) |
| 859 | - . mb_strtolower(mb_substr($str, 1, mb_strlen($str), $encoding), $encoding); |
|
| 859 | + . mb_strtolower(mb_substr($str, 1, mb_strlen($str), $encoding), $encoding); |
|
| 860 | 860 | } |
| 861 | 861 | |
| 862 | 862 | /** |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | } |
| 361 | 361 | |
| 362 | 362 | if ($this->last_update_id !== null) { |
| 363 | - $offset = $this->last_update_id + 1; //As explained in the telegram bot API documentation |
|
| 363 | + $offset = $this->last_update_id + 1; //As explained in the telegram bot API documentation |
|
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | $response = Request::getUpdates( |
@@ -833,7 +833,7 @@ discard block |
||
| 833 | 833 | throw new TelegramException('Hook url is empty!'); |
| 834 | 834 | } |
| 835 | 835 | |
| 836 | - $data = array_intersect_key($data, array_flip([ |
|
| 836 | + $data = array_intersect_key($data, array_flip([ |
|
| 837 | 837 | 'certificate', |
| 838 | 838 | 'max_connections', |
| 839 | 839 | 'allowed_updates', |
@@ -947,7 +947,7 @@ discard block |
||
| 947 | 947 | } |
| 948 | 948 | |
| 949 | 949 | $this->run_commands = true; |
| 950 | - $this->botan_enabled = false; // Force disable Botan.io integration, we don't want to track self-executed commands! |
|
| 950 | + $this->botan_enabled = false; // Force disable Botan.io integration, we don't want to track self-executed commands! |
|
| 951 | 951 | |
| 952 | 952 | $result = Request::getMe(); |
| 953 | 953 | |
@@ -964,8 +964,8 @@ discard block |
||
| 964 | 964 | } |
| 965 | 965 | |
| 966 | 966 | |
| 967 | - $this->enableAdmin($bot_id); // Give bot access to admin commands |
|
| 968 | - $this->getCommandsList(); // Load full commands list |
|
| 967 | + $this->enableAdmin($bot_id); // Give bot access to admin commands |
|
| 968 | + $this->getCommandsList(); // Load full commands list |
|
| 969 | 969 | |
| 970 | 970 | foreach ($commands as $command) { |
| 971 | 971 | $this->update = new Update( |