0

How do I store user messages without losing markup (HTML or Markdown) in the Telegram bots? I'm working with node_telegram_bot_api

It's clear when sending a message from the bot to the user: specify parse_mode and everything is fine.

await bot.sendMessage(chatId, message, {reply_markup: JSON.stringify({inline_keyboard: keyboard}), parse_mode: 'HTML'});

But how to process messages with user markup and then store them in a database, for example, without losing the markup?

0 Answers0