C
C
centrin02016-05-03 11:24:31
Python
centrin0, 2016-05-03 11:24:31

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

3 answer(s)
A
aybekko97, 2017-08-11
@aybekko97

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.

N
nllm, 2016-05-03
@nllm

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?

A
Alexey Rytikov, 2015-06-02
@chlp

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 question

Ask a Question

731 491 924 answers to any question