Recently Telegram has provided the ability to quote texts:
I want to send a message using Telegram Bot API using html
as parse_mode
but I cannot find any mention of how to do it using html tags in official docs.
How is this achievable?
Recently Telegram has provided the ability to quote texts:
I want to send a message using Telegram Bot API using html
as parse_mode
but I cannot find any mention of how to do it using html tags in official docs.
How is this achievable?
2
Answers
The formatting options providide by the Telegram Bot API do not include this functionality yet.
If you want to quote a specific part of a message (for it to appear as a clickable object).
You can modify reply_parameters in method sendMessage.
I didn’t manage to build a post request that sends message with such quote, but here is how it looks using Aiogram3:
You can also simply format message like as if it has a quote.
If you desire to use HTML formatting, there is a
<blockquote>
tag.Or you can set parse_mode to MarkdownV2 and use the format below:
That’s how it looks with Aiogram3:
All the formatting info on Telegram is provided here!