-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Версия бота 1.0.8
ESP32S3 N16R8
Framework ver.: 2.0.17
Пример отправки сообщения
fb::Message resp;
fb::Menu menu;
resp.chatID = user->chatId;
resp.mode = fb::Message::Mode::HTML;
String name = "test";
resp.text = "<b>" + name + "</b>";
//resp.text = String("<b>") + String("test") + String("</b>");
resp.setMenu(menu);
bot.sendMessage(resp);
В core.h в функции _parseResponse функция res.parseJson(); возвращает false.
В result.h с ошибкой выходит на этой строке
if (!_parser[tg_apih::ok].toBool()) return 0;
Решается сложением строк обходным путем:
resp.text.concat("<b>");
resp.text.concat(name);
resp.text.concat("</b>");
Metadata
Metadata
Assignees
Labels
No labels