2

I am sending Telegram bot messages in the following way:

bot_message = "Hi **James**, how are you doing?"

send_text = f"https://api.telegram.org/bot{bot_token}/sendMessage?chat_id={chat_id}&parse_mode=Markdown&text={bot_message}"

response = requests.get(send_text)

However, it seems like I'm not able to correctly format bold content within the message; how can I do that?

BSMP
  • 4,596
  • 8
  • 33
  • 44
Alessandro Ceccarelli
  • 1,775
  • 5
  • 21
  • 41
  • 1
    Does this answer your question? [send bold & italic text on telegram bot with html](https://stackoverflow.com/questions/38119481/send-bold-italic-text-on-telegram-bot-with-html) – 0stone0 Mar 16 '22 at 11:01

1 Answers1

1

Use one * instead of two as detailed in the official documentation.

CallMeStag
  • 5,467
  • 1
  • 7
  • 22