5

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 ?

j edgar
  • 149
  • 1
  • 10

2 Answers2

5

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.

n.y
  • 3,343
  • 3
  • 35
  • 54
1

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

Dmitry
  • 2,057
  • 1
  • 18
  • 34
  • Hi, do you know if the getUpdates method can be used without HTTPS? I have read on the Telegram API doc that "All queries to the Telegram Bot API must be served over HTTPS" – Andermutu Nov 12 '19 at 16:41