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.

    1 answer 1

    I do not have the answer to the question, but the question to the question :

    Why do you use telegram-cli to create a bot, if Telegram implemented an API for bots some time ago? There are examples in PHP, by the way.

    Moreover, the author of the php-telegram-cli-client repository that you use hints at this:

    I’m not currently a

    And also advises to move to unofficial php-sdk :

    If you want to take a look at the unofficial php-sdk .

    • Yes I understand. I have a huge number of bots created exactly on the API for bots. But there was a great need to create a bot on telegram-cli, without ending on bot, and just like a regular account. If you know how, please help :) - Ramzan
    • @Ramzan saw a bit late, but so far telegram-cli can only work with python and lua, write on them - approximatenumber