Forums

Make text bold that is send to Telegram

I am using this code to send data to telegram, it is working, but I need some changes to it, and I do not know how to get it to work.

for birthdays I want to make the name and surname bold and then the telephone number bold and italic. for anniversaries I need both then names and surname to be bold, and if there are two telephone number bord and italic

# Helper function to format the message with Markdown

def format_message_with_markdown(birthdays, anniversaries): formatted_message = ""

# Add a section for birthdays
if birthdays:
  # ; formatted_message += "*

Does wrapping text in "" or "*" not make it bold? You should be able to find this in the telegram docs.