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

Need help basic flow getUpdates #1437

Open
vitalie-work opened this issue Dec 11, 2023 · 2 comments
Open

Need help basic flow getUpdates #1437

vitalie-work opened this issue Dec 11, 2023 · 2 comments
Labels

Comments

@vitalie-work
Copy link

❓ 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

@sudadi
Copy link
Contributor

sudadi commented Dec 15, 2023

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

@m4n50n
Copy link
Contributor

m4n50n commented Feb 19, 2024

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.

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

No branches or pull requests

3 participants