Mohammad Hossein Mohammad Hossein - 5 months ago 273
HTML Question

send bold & italic text on telegram bot with html

i create a bot in telegram

i want send bold & italic text with html page to bot

html code:

<html>
<head><title>Telegram</title></head>
<body>
<form method="GET" action="https://api.telegram.org/bot(token)/sendMessage">
<input type="hidden" name="chat_id" value="@testadminch">
<input type="hidden" name="parse_mod" value="markdown">
<textarea name="text"></textarea>
<input type="submit" value="Submit">
</form>
</body>
</html>


if send
*bold*
to bot output should is bold

but dont work

please help me :)

sorry for my bad english

Answer

There are two possibilities to get: bold

  1. Set the parse_mode to markdown and send *bold*
  2. Set the parse_mode to html and send <b>bold<b>

And it's called parse_mode with an e.