From c2cb3e3fbf2b85546e07558dcdb429cb76d65618 Mon Sep 17 00:00:00 2001 From: MaxPicklez Date: Fri, 17 Feb 2023 14:53:51 -0500 Subject: [PATCH] Added SSL key for TELEGRAM to enable working bot API --- telegram_esp32.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telegram_esp32.ino b/telegram_esp32.ino index 2e708c9..6fee3de 100644 --- a/telegram_esp32.ino +++ b/telegram_esp32.ino @@ -208,6 +208,8 @@ void setup() { // Connect to Wi-Fi WiFi.mode(WIFI_STA); WiFi.begin(ssid, password); + client.setCACert(TELEGRAM_CERTIFICATE_ROOT); // set the Telegram SSL cert + while (WiFi.status() != WL_CONNECTED) { delay(1000); Serial.println("Connecting to WiFi..");