How to format Telegram bot text by http_build_query

I found a php script, to send messages to a Telegram channel.
Everything works, but I can’t format the text.

For example, to make it bold, I tried to include the HTML tags or the pair of asterisks at the beginning and end of the text, but I don’t get my text formatted. I can only (with n) wrap the text. How can I solve it?.

Here the script:

$TelegramChatID=-'***********';

  $apiToken = "bla bla bla";

  $data = [
      'chat_id' => '**********', 
      'text' => "**My text**"
  ];

  $response = file_get_contents("https://api.telegram.org/bot$apiToken/sendMessage?" . http_build_query($data) );