Answer the question
In order to leave comments, you need to log in
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
{"ok":true,"result":true,"description":"Webhook is already set"}
https://api.telegram.org/bot~token~/getWebhookInfo?url=https://site.ru/api/telegram/bot.php
{"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}}
Answer the question
In order to leave comments, you need to log in
Hooks to servers in Russia will not work until Telegram is unbanned.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question