Need help basic flow getUpdates
❓ Support Question
because the telegram group does not allow me to send messages, I will use github, sorry
Required Information
| ? | ! |
|---|---|
| Operating system | docker from php:8.0-apache |
| PHP Telegram Bot version | 0.81 |
| PHP version | 8.0 |
| MySQL version | mysql Ver 15.1 Distrib 10.5.21-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper |
| Update Method | Webhook / getUpdates |
| Self-signed certificate | yes / no |
Summary
I'm trying to get it work in docker, i read most of the wiki and issues about how to set up and launch, also checked examples repository, but i still have problems in general, i want first to get it to work and do some tests because based on webhook flow i need to have some live domain and not only a local server, i moved my view to the getUpdates flow
so in docker i have PHP and MySQL containers. There are no problems here, both work and communicate as it should
from my old experience in JS telegraf library, i just run the service and it works until i close the terminal
but here after I'm running php ./getUpdatesCLI.php i see response Processed 0 updates and that's it, script just ends the execution
how to get it to stay live all the time, and wait for commands from telegram?
i saw cron file but it is also not really clear how it should run to have it live and waiting commands from telegram chat
Have you read the readme file carefully? You can find a link to a example-bot repository there. https://github.com/php-telegram-bot/example-bot
Hi @vitalie-work, the cron.php file is not very clear (and I actually have an open issue for you to explain how it works). Anyway, I have all this configured under docker and it works perfectly. I use webhook and as long as your web server is published with a valid ssl certificate it will work. For the crons I use my host's own crons. Any specific questions you can ask me.