Skip to content
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

MySQL logging works only with no other commands active, but then HTTP/500 #39

Closed
danielberlin opened this issue Sep 19, 2015 · 1 comment

Comments

@danielberlin
Copy link

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!

@danielberlin
Copy link
Author

Still the same problem with the currently latest version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant