Telegram bots 2019 vs 2021 using MKR1000

Good morning,
I am trying to repeat a classroom exercise from two years ago.
Perhaps, someone here might know what to do about the following.

Test 1)
In 2019 the EchoBot example worked using TelegramBot library and MKR1000.
I just tried and it no longer works, since I see no response or "echo" in Serial Monitor or Telegram app.
I've uploaded the certificate api.telegram.org:443
ArduinoJson library is 5.x

Test 2)
Then I tried UniversalTelegramBot library and it also doesn't work!
Certificate is part of source code.
ArduinoJson library is 6.x

#define TELEGRAM_DEBUG 1
output is this:

WiFi connected
IP address:
192.168.137.13
GET Update Messages
[BOT]Connecting to server
[BOT]Conection error
Received empty string in response!

Test 3)
I am fairly sure that the bot itself is working.
/setprivacy is disabled
We can do getUpdates and sendMessage in a browser window, like so:

https://api.telegram.org/bot1793289431:AAEvBHq8ZYQPUBRxsWsUw5uRjEZO85-jdNg/getUpdates

https://api.telegram.org/bot1793289431:AAEvBHq8ZYQPUBRxsWsUw5uRjEZO85-jdNg/sendMessage?chat_id=1710530650&text=HHHIIII

This message HHHIIII is actually the bot sending a message.
It appears in the Telegram phone app, but not in getUpdates within the browser.
Only the messages that I send from my phone app to the bot appear in the browser.
I don't know if this is how it should be.

P.s. secret token is just for testing

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.