Skip to content

Commit af3f597

Browse files
committed
Update 5.send.md
1 parent 4fd2578 commit af3f597

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/5.send.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,17 @@ res2.reset();
224224
fb::Result res3 = bot.sendMessage(fb::Message("hello!", "12312424353"));
225225
res3.stringify(Serial);
226226
res3.reset();
227+
```
228+
229+
### HTML и Markdown
230+
Режимы текста HTML и Markdown поддерживают только конкретные теги, см. API Telegram:
231+
- [HTML](https://core.telegram.org/bots/api#html-style)
232+
- [Markdown](https://core.telegram.org/bots/api#markdownv2-style)
233+
234+
Для настройки режима нужно просто указать его:
235+
236+
```cpp
237+
fb::Message msg;
238+
msg.mode = fb::Message::Mode::MarkdownV2;
239+
msg.text...
227240
```

0 commit comments

Comments
 (0)