We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6083bd8 commit 2454018Copy full SHA for 2454018
examples/minimal/minimal.ino
@@ -13,9 +13,17 @@ void updateh(fb::Update& u) {
13
Serial.println(u.message().from().username());
14
Serial.println(u.message().text());
15
16
+ // #1
17
// отправить обратно в чат (эхо)
18
bot.sendMessage(fb::Message(u.message().text(), u.message().chat().id()));
19
20
+ // #2
21
+ // декодирование Unicode символов (кириллицы) делается вручную!
22
+ // String text = u.message().text().decodeUnicode();
23
+ // text += " - ответ";
24
+ // bot.sendMessage(fb::Message(text, u.message().chat().id()));
25
+
26
+ // #3
27
// или так
28
// fb::Message msg;
29
// msg.text = u.message().text().toString();
0 commit comments