File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11name =FastBot2
2- version =1.2.2
2+ version =1.2.3
33author =AlexGyver <alex@alexgyver.ru>
44maintainer =AlexGyver <alex@alexgyver.ru>
55sentence =Fast and universal Arduino/ESP8266/ESP32 library for Telegram bot
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class File : protected Message {
5353 void makePacket (Packet& p) const {
5454 if (multipart.isFile ()) {
5555 Message::makeQS (p);
56- if (caption.length ()) p.addQS (tg_api::caption, caption);
56+ if (caption.length ()) p.addQS (tg_api::caption, su::url::encode ( caption) );
5757 } else {
5858 Message::makePacket (p);
5959 p[multipart.getType ()] = multipart.getUrlid ();
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ class Message {
139139
140140 void makeQS (Packet& p) const {
141141 p.addQS (tg_api::chat_id, chatID);
142- if (text.length ()) p.addQS (tg_api::text, text);
142+ if (text.length ()) p.addQS (tg_api::text, su::url::encode ( text) );
143143 if (threadID >= 0 ) p.addQS (tg_api::message_thread_id, threadID);
144144 if (reply.messageID >= 0 ) {
145145 p.beginQS (tg_api::reply_parameters);
You can’t perform that action at this time.
0 commit comments