shurillu / CTBot

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

plus char not passed throw on sendMessage function #27

Closed robertmavri closed 5 years ago

robertmavri commented 5 years ago

Plus char get interpreted as string concentration rather than valid sign in message.

myBot.sendMessage(SECRET_CHAT_ID,"1 + 1 = 3 !!!");

would result on

1 1 = 3 !!!

To fix above issue following line has to be added to CBot::toURL function:

message.replace("+", "%2B"); // + Plus sign

Hope that helps...

shurillu commented 5 years ago

The issue should be corrected as I said in #23 So please check it and let me know.

Stefano

shurillu commented 5 years ago

Duplicated. See #23