K
K
Kerm2018-11-20 13:43:04
Telegram
Kerm, 2018-11-20 13:43:04

How to configure Telegram Bot API if the provider blocks api.telegram.org?

I set up the bot, request:

https://api.telegram.org/bot~token~/setWebhook?url=https://site.ru/api/telegram/bot.php

Shows a message:
{"ok":true,"result":true,"description":"Webhook is already set"}

But, if we make a getWebhookInfo request:
https://api.telegram.org/bot~token~/getWebhookInfo?url=https://site.ru/api/telegram/bot.php

We see:
{"ok":true,"result":{"url":"https://site.ru/api/telegram/bot.php","has_custom_certificate":false,"pending_update_count":12,"last_error_date":1542709402,"last_error_message":"Connection timed out","max_connections":40}}

On the server itself, the provider blocks telegrams, the ssl certificate has an A + rating (if it matters)
From all this, I concluded that the problem is telegram blocking, I have such a question, are there any services where I can create my own link, which can be accessed would be passed to another link and the result would be returned? Maybe there are some services, I heard about hook.io, but I don’t know if it is and whether it will be free.
What is the easiest way to make the bot work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
chupasaurus, 2018-11-20
@chupasaurus

Hooks to servers in Russia will not work until Telegram is unbanned.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question