X Tutup
Skip to content

problem with html chars in message.text using update.message.text_html #611

@91DarioDev

Description

@91DarioDev

just assume we want to develop an echo bot:

def echo(bot, update):
  update.message.reply_text(text=update.message.text_html, parse_mode='HTML')

in case the user sent a formatted bold text where the text is: "<i> hello" (anything bold)

the text the bot will send is "<b><i> hello</b>" and it can't be sent.

it would be perfect to have a way to fix this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup