I can only get hook.php running if I take ./vendor/longman/telegram-bot/example-hook.php and uncomment $telegram->enableMySQL($credentials);.
Then all commands sent to the bot are logged in the MySQL table messages while hook.php answers the HTTP request from the Telegram API server with a HTTP/500 and also the error reported in #38 is logged.
If I activate another command, e.g. $telegram->addCommandsPath($COMMANDS_FOLDER);, hook.php answers with a HTTP/200 and no error logged, but nothing is written into the messages table – very strange!
I can only get hook.php running if I take
./vendor/longman/telegram-bot/example-hook.php
and uncomment$telegram->enableMySQL($credentials);
.Then all commands sent to the bot are logged in the MySQL table
messages
while hook.php answers the HTTP request from the Telegram API server with a HTTP/500 and also the error reported in #38 is logged.If I activate another command, e.g.
$telegram->addCommandsPath($COMMANDS_FOLDER);
, hook.php answers with a HTTP/200 and no error logged, but nothing is written into themessages
table – very strange!