H
H
human_or_robot2019-05-05 18:35:28
Bots
human_or_robot, 2019-05-05 18:35:28

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()

Python language

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question