We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html_text
1: Create a bot with:
@bot.message_handler(func=lambda message: True) def echo_message(message): bot.reply_to( message, f'{message.html_text}', parse_mode='HTML' )
2: Send to the bot:
<blockquote> <b>bold</b> <i>italic</i> <b><i>bold and italic</b></i> </blockquote>
3: It will reply:
<b><i><blockquote> bold italic bold and italic </blockquote></b></i>
The text was updated successfully, but these errors were encountered:
Original message:
"text": "bold italic bold and italic", "entities": [ { "offset": 0, "length": 27, "type": "blockquote" }, { "offset": 0, "length": 4, "type": "bold" }, { "offset": 5, "length": 6, "type": "italic" }, { "offset": 12, "length": 15, "type": "bold" }, { "offset": 12, "length": 15, "type": "italic" } ]
Bot's answer:
"text": "bold italic bold and italic", "entities": [ { "offset": 0, "length": 27, "type": "blockquote" }, { "offset": 0, "length": 27, "type": "bold" }, { "offset": 0, "length": 27, "type": "italic" } ]
Sorry, something went wrong.
coder2020official
No branches or pull requests
Steps to reproduce
1: Create a bot with:
2: Send to the bot:
3: It will reply:
The text was updated successfully, but these errors were encountered: