shurillu / CTBot

A simple (and easy to use) Arduino Telegram BOT Library for ESP8266/ESP32
MIT License
147 stars 34 forks source link

Compile issues. #117

Closed Mal-Oldis closed 5 months ago

Mal-Oldis commented 5 months ago

I have been using the CTBot lib for some years now without problems. All of a sudden I get many compile failures. First failuer on line 80 CTBotReplyKeyboard.cpp , button["text"] = URLEncodeMessage(text); I have an error 'button' was not declared in this scope. ctBot ver 2.1.11. Compiler is Programino V 2.0 I am also getting some errors from Arduino 2.x and 1.x regarding JSON. Also arduinoJason v7.0.1. Any help much appreciated. I am a bit of a newbie at c++. Background is Assembler.

Mal-Oldis commented 5 months ago

Winding back arduinoJson to V6.1x salved the problem. CTBot needs to update their library to accomodate arduinoJson 7.xx

shurillu commented 5 months ago

Hello Mal-Oldis, thank you for using the library and for your feedback. Actually, as reported in the GitHub page of the CTBot library, it works only with ArduinoJSON version 6.19.4 and lower. Managing compatibility with all the ArduinoJSON versions is not an easy task (5.x, 6.x and now 7.x) and Benoit Blanchon (the owner of ArduinoJSON) often break the backward compatibility. My suggestion is:

Cheers,

Stefano