Telegram creation without HTTPS

I am trying to make a bot to connect to my web host and access the database and interact with PHP. But I searched a lot and found out that I need to have an SSL certificate. Is there any way to configure the bot without having SSl?

+4
source share
2 answers

GetUpdatesThe method is intended for debugging. You need to use Telegram Webhook, and yes, you must have an SSL certificate. But if you do not want to buy a paid certificate, you can use Cloud Flare for free . In the Cloud Flare service 'Flexible SSL'you do not need to install any certificate on the server side and simply (with changing name servers) make your SSL site that accepts a telegram.

+5
source

Yes. You can use a lengthy survey with getUpdates. https://core.telegram.org/bots/api#getupdates

+1
source

Source: https://habr.com/ru/post/1654806/


All Articles