-
-
Notifications
You must be signed in to change notification settings - Fork 955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set.php problem #336
Comments
edit: #536 allows you to disable verification without modifying core files, please use that instead! I'm guessing this is related to the fact that you're using Windows. |
i am sad. Php works with it - not a windows :(( |
I don't think Windows is on the todo list for us. Most PHP webservers run on some distribution of *nux, which is the most stable way of running it. I urge you to look into a *nix server for hosting your bot. There should be enough information around on the internet on how to do that 😊 |
I disagree on not supporting Windows, there are people who prefer Windows environment over Linux. |
@jacklul Ok, I understand what you mean. For me though, my Windows days are pretty much over, so I'll leave this open for others to implement. |
production unsafe (?) workaround: jacklul@46baa11 |
Required Information
Expected behaviour
On set UP:
https://......AAEtT4Rh2eBTPakzJOo0bkFk3A-6pxaEErk/set.php
PHP Fatal error: Uncaught Error: Call to a member function getBody() on null in C:\inetpub\WWW.....\63AAEtT4Rh2eBTPakzJOo0bkFk3A-6pxaEErk\vendor\longman\telegram-bot\src\Request.php:227
Stack trace:
#0 C:\inetpub\WWW.....\63AAEtT4Rh2eBTPakzJOo0bkFk3A-6pxaEErk\vendor\longman\telegram-bot\src\Request.php(316): Longman\TelegramBot\Request::execute('setWebhook', Array)
#1 C:\inetpub\WWW.....\63AAEtT4Rh2eBTPakzJOo0bkFk3A-6pxaEErk\vendor\longman\telegram-bot\src\Request.php(814): Longman\TelegramBot\Request::send('setWebhook', Array)
#2 C:\inetpub\WWW.....\63AAEtT4Rh2eBTPakzJOo0bkFk3A-6pxaEErk\vendor\longman\telegram-bot\src\Telegram.php(742): Longman\TelegramBot\Request::setWebhook('https://........', 'C:\inetpub\WWW\...')
#3 C:\inetpub\WWW.....\63AAEtT4Rh2eBTPakzJOo0bkFk3A-6pxaEErk\set.php(19): Longman\TelegramBot\Telegram->setWebHook('https://........', 'C:\inetpub\WWW\...')
#4 {main}
thrown in C:\inetpub\WWW.....\63AAEtT4Rh2eBTPakzJOo0bkFk3A-6pxaEErk\vendor\longman\telegram-bot\src\Request.php on line 227
setWebHook($hook_url); // Uncomment to use certificate $result = $telegram->setWebHook($hook_url, $path_certificate); if ($result->isOk()) { echo $result->getDescription(); } } catch (Longman\TelegramBot\Exception\TelegramException $e) { echo $e; }
The text was updated successfully, but these errors were encountered: