• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Add root certificate for api.telegram.org

Q&A Forum › Category: ESP32 › Add root certificate for api.telegram.org
0 Vote Up Vote Down
Armin Rose asked 3 years ago

Hello,
I just bought your nice book on the esp32-cam. Great stuff! However, as a total beginner I am struggling with this line when I try to communicate with my telegram bot (page 242):
clientTCP.setCACert(TELEGRAM_CERTIFICATE_ROOT); // Add root certificate for api.telegram.org
It is probably the reason why nothing happens when I send the message “/start” or any other message in my bot. What would I have to insert instead of TELEGRAM_CERTIFICATE_ROOT? I is not explained in the book and I am unable to understand what the internet tries to tell me about it. Could you please help me with an example or the exact way how I would find the string that I have to insert here? For a dummy.
Thanks a lot!
Cheers
Armin

Question Tags: ESP32 telegram api root certificate
2 Answers
0 Vote Up Vote Down
Armin Rose answered 3 years ago

Hi again,
sorry for my stupid question an hour ago. I solved the problem with the missing communication between esp32 and telegram bot by downgrading the esp32 library version from v2.0.2 to v2.0.1. So it had nothing to do with the certificate.
Best wishes!
Armin

1 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Great! I’m glad the issue is solved. There must be some problem with version 2.0.2 that needs to be solved. So, I recommend using the older version.
The TELEGRAM_CERTIFICATE_ROOT is included in the library by default. You don’t need to replace it with anything.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.