Skip to content
New issue

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

Special characters should be escaped when sending to Telegram #8

Open
pepsifire opened this issue Feb 28, 2023 · 0 comments
Open

Special characters should be escaped when sending to Telegram #8

pepsifire opened this issue Feb 28, 2023 · 0 comments

Comments

@pepsifire
Copy link
Member

Currently sending the characters <, > and & will fail due to the HTML parser thinking they are a part of a HTML tag in the Telegram sending function.

They should be escaped accordingly: "All <, > and & symbols that are not a part of a tag or an HTML entity must be replaced with the corresponding HTML entities (< with &lt;, > with &gt; and & with &amp;)."

See https://core.telegram.org/bots/api#html-style for more details.

An alternative would be switching to MarkdownV2 parse_mode.

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

No branches or pull requests

1 participant