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
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
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