N
N
Nik Gubin2016-05-01 20:55:25
PHP
Nik Gubin, 2016-05-01 20:55:25

How to set up a telegram bot through Webhooks?

Good evening. I already asked a question yesterday, but due to a ridiculous typo, it was blocked. Between the last and this message, I bought a simple certificate (from COMODO) and set up a server. SSL labs gave it an A+ rating. I set the correct path to the hook on the same domain as the certificate, but there is no news from telegram. I tried to remove the hook and check with the getUpdates method - there was data in the response, but I can’t get anything through the hook, there were no requests (I simply put a log entry in it). I will answer any question you need, just to understand this trick.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nllm, 2016-05-01
@gubin_niko

curl -F "url= https://your_handler_address " -F "[email protected]/etc/nginx/ssl/cert.pem" https://api.telegram.org/bot{TOKEN}/setWebhook
use a self-signed certificate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question