Skip to content

Escape characters when using MarkdownV2 #352

Open

Description

@butvinm

Some characters in the message text should be escaped when using the MarkdownV2 parse mode; otherwise, an error occurs.

You can refer to the docs for more information.

Activity

  1. mircoianese commented on Jan 8, 2024

    @mircoianese
    Collaborator

    I argue that the text given as input to the library should already be sanitized, otherwise the library cannot know reliably if the character is an intended Markdown symbol or not.

  2. butvinm commented on Jan 8, 2024

    @butvinm
    Author

    Ok, I understand implementation troubles, but manual escaping still looks very error-prone and inconvenient.

    I can contribute markdown utils, such as aiogram provides, if you consider that essential.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions