V
V
vitland2019-10-26 18:13:54
JavaScript
vitland, 2019-10-26 18:13:54

How to include HTML in SendPhoto?

In the message, the tags are not visible, but they do not work either. In sendMessage everything works fine. I 'm using node-telegram-bot-api
What's wrong?

const html = `<b>какойто текст</b>`

      bot.sendPhoto(chatId, picture, {
         caption: html,
         parse_mode: 'HTML'
})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vitland, 2019-10-28
@vitland

The problem was in night mode, bold and plain text are almost the same))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question