M
M
Maxim Belozerov2022-02-10 14:11:19
Telegram
Maxim Belozerov, 2022-02-10 14:11:19

How to change the message parser in a post request?

Hello! Let's say I have a code:

import requests
token = "***"

chat_id = 111
requests.post(f"https://api.telegram.org/bot{token}/sendMessage?chat_id={chat_id}&text=<strong>asdas</strong>d")

The problem is that the "strong" tag must change the text inside itself, while remaining invisible. But when I run the code, I get the following:
strong>asdas /strong>d
<. How can I specify the html parser in the request?
Ps aiogram and other libraries are not an option. The "<" signs are intentionally removed at the beginning of the tag.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanya Hihi Haha, 2022-02-11
@ValarMayar

parse_mode

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question