If anyone faced an issue after setting webhooks with self-signed certificate updates do not come to server. This article may help you.
For working with Telegram Bot I use telegram-bot-ruby gem
Here is my rake tasks:
After creation self-signed certificate and then setting webhook I ended up in a situation when I didn’t get update from telegram.
I looked at nginx logs and saw following lines:
After days of googling I managed to figure out. Turned out
didn’t do a work. It didn’t upload certificate.
I used a curl command:
After this everything started working properly.