Answer the question
In order to leave comments, you need to log in
How to combine message with dot and parse_mode=MarkdownV2 in Telegram bot Telebot?
The bottom line is, I need to send a telegram message by a bot in which there should be a dot and parsed text at the same time, and I use the python programming language and the telebot library to create a bot
Here is the code:
text = '55.123'
bot.send_message(message.chat.id, f' Data: {text}\n~text1~ text2', rapse_mode=MarkdownV2)
Answer the question
In order to leave comments, you need to log in
You can use another parser instead of MarkDownV2, for example: HTML
And send the message like this:
text = '55.123'
bot.send_message(message.chat.id, f'Данные: {text}\n<s>text1</s> text2', rapse_mode=HTML)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question