cotestatnt / AsyncTelegram2

Powerful, flexible and secure Arduino Telegram BOT library. Hardware independent, it can be used with any MCU capable of handling an SSL connection.
MIT License
83 stars 25 forks source link

little error in send photo example #105

Closed owai1980 closed 1 year ago

owai1980 commented 1 year ago

file example/sendPhoto.ini line 176:

String url = msgText.substring(msgText.indexOf("/picweb ") + sizeof("/picweb ")); should be: String url = msgText.substring(msgText.indexOf("/picweb ") + sizeof("/picweb ") -1);

or the first characteter of the url will be truncated.

thank you

cotestatnt commented 1 year ago

Hi @owai1980 Example fixed, thanks you!

owai1980 commented 1 year ago

thank you too :-)