getUpdatesCLI.php returns:
php exception 'Longman\TelegramBot\Exception\TelegramException' with message 'Telegram returned an invalid response! Please review your bot name and API key.' in E:\xampp\htdocs\core-master\src\Request.php:333 Stack trace: #0 E:\xampp\htdocs\core-master\src\Request.php(808): Longman\TelegramBot\Request::send('getUpdates', Array) #1 E:\xampp\htdocs\core-master\src\Telegram.php(340): Longman\TelegramBot\Request::getUpdates(Array) #2 E:\xampp\htdocs\core-master\getUpdatesCLI.php(73): Longman\TelegramBot\Telegram->handleGetUpdates() #3 {main}
API key is correct, double-checked and is fine
edit by @noplanman: #536 allows you to disable verification without modifying core files, please use that instead!
Windows issue.
As a development workaround:
Replace in Telegram.php, Request.php:
new Client(['base_uri' => self::$api_base_uri]);
with:
new Client(['base_uri' => self::$api_base_uri, 'verify' => false]);
If you plan on using Botan integration you have to do the same inside Botan.php
muito obrigado jacklul.
Most helpful comment
edit by @noplanman: #536 allows you to disable verification without modifying core files, please use that instead!
Windows issue.
As a development workaround:
Replace in Telegram.php, Request.php:
with:
If you plan on using Botan integration you have to do the same inside Botan.php