K
K
Kirill Gorelov2016-12-27 15:21:30
Telegram
Kirill Gorelov, 2016-12-27 15:21:30

SSL for telegram bot not working?

Hello.
Began to configure webhook.
For a start made ssl. I have a vesatcp panel on server1, I did everything through it. Everything is working.
Check webhook via curl curl -d "url= https://telegram.domain.ru/handler.php " https://api.telegram.org/bottoken/setWebhook
In response I get: {"ok":true ,"result":true,"description":"Webhook is already set"}
Everything works as I understand it.
The php code itself. I took it from here https://habrahabr.ru/company/cleantalk/blog/302870/
But nothing works, what is the reason?
If the webhook is connected, but there is no response from the server(

Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
GrimJack, 2016-12-27
@GrimJack

https://api.telegram.org/bottoken/setWebhook?url=h...
Did you set it like that?
UPD
https://github.com/mgp25/Telegram-Bot-API recommend using this "library"

A
Alexey Arkh, 2017-02-01
@AlekseyArh

The same garbage, worked for half a year, then stopped.
And the token changed and the hook, nothing.

N
nirvimel, 2017-05-30
@nirvimel

The code writes a 64-bit number byte-by-byte into an 8-byte bytearray.
The author of this (tricycle) probably didn't read the Python reference until Chapter 7, which describes the struct module , which does just that.
Because of such bicycles (with cycles for writing a single number), legends are born that Python is a slow language.

E
Egor Kazantsev, 2017-05-29
@saintbyte

Fills an array of bytes and makes an offset in this array

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question