@@ -801,7 +801,7 @@ |
||
801 | 801 | /** |
802 | 802 | * Delete any assigned webhook |
803 | 803 | * |
804 | - * @return mixed |
|
804 | + * @return ServerResponse |
|
805 | 805 | * @throws \Longman\TelegramBot\Exception\TelegramException |
806 | 806 | */ |
807 | 807 | public function deleteWebhook() |
@@ -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 | /** |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | } |
354 | 354 | |
355 | 355 | if ($this->last_update_id !== null) { |
356 | - $offset = $this->last_update_id + 1; //As explained in the telegram bot API documentation |
|
356 | + $offset = $this->last_update_id + 1; //As explained in the telegram bot API documentation |
|
357 | 357 | } |
358 | 358 | |
359 | 359 | $response = Request::getUpdates( |
@@ -816,7 +816,7 @@ discard block |
||
816 | 816 | throw new TelegramException('Hook url is empty!'); |
817 | 817 | } |
818 | 818 | |
819 | - $data = array_intersect_key($data, array_flip([ |
|
819 | + $data = array_intersect_key($data, array_flip([ |
|
820 | 820 | 'certificate', |
821 | 821 | 'max_connections', |
822 | 822 | 'allowed_updates', |
@@ -929,7 +929,7 @@ discard block |
||
929 | 929 | throw new TelegramException('No command(s) provided!'); |
930 | 930 | } |
931 | 931 | |
932 | - $this->run_commands = true; |
|
932 | + $this->run_commands = true; |
|
933 | 933 | |
934 | 934 | $result = Request::getMe(); |
935 | 935 | |
@@ -946,8 +946,8 @@ discard block |
||
946 | 946 | } |
947 | 947 | |
948 | 948 | |
949 | - $this->enableAdmin($bot_id); // Give bot access to admin commands |
|
950 | - $this->getCommandsList(); // Load full commands list |
|
949 | + $this->enableAdmin($bot_id); // Give bot access to admin commands |
|
950 | + $this->getCommandsList(); // Load full commands list |
|
951 | 951 | |
952 | 952 | foreach ($commands as $command) { |
953 | 953 | $this->update = new Update( |