Answer the question
In order to leave comments, you need to log in
How to debug bot for telegram?
Nginx + gunicorn + flask with telegram bot. I am writing a bot with webhook
nginx listens to localhost:8001, gunicorn starts with this port and address.
I took an example:
https://github.com/eternnoir/pyTelegramBotAPI/blob...
Runs fine, but the bot doesn't write or respond.
The certificate was made using lets encrypt.
How to debug or understand why it doesn't work? There are no error messages.
Don't like the certificate or what? Where can I connect to get error information?
Answer the question
In order to leave comments, you need to log in
Telegram supports only 4 different ports when working with self-signed certificates - 443, 80, 88 or 8443. You need to change port 8001 to one of these.
For ssl what ports are listening in nginx?
How did you tell telegram about your webhook? (What request did?)
Try to send the certificate.
You can also look here: How to set up a telegram bot through Webhooks?
If you are satisfied with the search results of an existing search engine, but not satisfied with the order in which these results are returned, then it is not necessary to go into the search code. You can display the results not immediately, but write them to a variable and sort them according to the required criterion.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question