Skip to content

Escape markdown special characters#2

Draft
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
feature/escape-markdown
Draft

Escape markdown special characters#2
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
feature/escape-markdown

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

When sending a message to Telegram with the parse_mode set to MarkdownV2, special characters like '.', '!', '-', etc., must be escaped. This change introduces an escape_markdown method that handles this escaping, and modifies the message method to use it. This prevents messages from being rendered incorrectly by Telegram.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants