I make a bot via telegram-cli. I installed telegram-cli on the server, everything works fine.
To automatically answer the bot, I do this: bin/telegram-cli -k tg-server.pub -W -s query.lua
Requests to the bot go to the file query.lua
.
Here's how to make sure that the requests made to the bot were sent to a PHP file and processed by it?
I looked here https://github.com/zyberspace/php-telegram-cli-client , but nothing happened.