Answer the question
In order to leave comments, you need to log in
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'])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question