I’m developing a Telegram bot using PHP, and it responds to Telegram updates, but when I send the /start command, it does not react. I’m trying to understand why the bot is not responding to /start.
Key points:
Webhook is enabled and correctly set up with the bot URL (I verified that the URL is correct).
In bot.php, I’m using json_decode(file_get_contents(“php://input”), true) to read the updates from Telegram.
In start.php, I’m handling the /start command, but the bot doesn’t send any message.
I’m using PHP to connect to a MySQL database and store user data in the users table.
I checked the log.txt file, and it correctly receives the updates, but the /start command is not being handled.
Problems I am facing:
The bot does not respond to the /start command.
I’m using send_reply(“sendMessage”, …) to send messages, but nothing happens when /start is sent.
I’m not seeing any errors in the logs when I send /start to the bot.
Anybody would help me?