Answer the question
In order to leave comments, you need to log in
How to assign bold font to variable in telegram bot?
How to assign bold font to variable in telegram bot? The code is a simple example. Of course, in this example, you can select hello in "*" in advance, but I need this feature for another project.
import telebot
from telebot.types import Message
@bot.message_handler(content_types=["text"])
@bot.edited_message_handler(content_types=["text"])
def name_of_function(message: Message):
example = "Hello"
bot.send_message(message.chat.id,'*Ваше сообщение отправлено!*' + example, parse_mode= 'Markdown' )
bot.polling()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question