O
O
oleg_ka2017-02-22 18:02:32
Python
oleg_ka, 2017-02-22 18:02:32

Why telegram bot may not respond to text messages?

There is a telegram bot running on a server under ubuntu. The bot receives updates via weebhook. I use self-signed certificates.
The bot works great through Long Polling. When working through a webhook, the bot only responds to commands. It does not process normal messages. The text message handler looks like this:

@bot.message_handler(func=lambda message: True, content_types=['text'])

Another bot was running on the same server with a webhook with the same certificates. Now this bot is disabled, but at startup it still works.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
oleg_ka, 2017-02-23
@oleg_ka

Issue resolved. Replaced cherrypy with flask.
(I forgot to mention that I used cherrypy for work)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question