J
J
James_Obry2021-06-19 14:30:58
Bots
James_Obry, 2021-06-19 14:30:58

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

1 answer(s)
J
James_Obry, 2021-07-03
@James_Obry

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 question

Ask a Question

731 491 924 answers to any question