Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

making telegram bot without HTTPS

I'm trying to make a bot to connect to my web host and access database and interact with PHP. But I searched a lot and find out that I need to have SSL certificate .Is there any way to set up a bot without Having SSl ?

like image 607
j edgar Avatar asked Sep 16 '16 11:09

j edgar


2 Answers

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

like image 155
n.y Avatar answered Oct 08 '22 01:10

n.y


Yes. You can use long polling with getUpdates. https://core.telegram.org/bots/api#getupdates

like image 1
Dmitry Avatar answered Oct 08 '22 02:10

Dmitry