-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[BUG] text_markdown_urled breaks links that contain '_' #1654
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
Milestone
Comments
So, that worked fine for my task, hope it'll help somebody.
|
Bibo-Joshi
added a commit
that referenced
this issue
Feb 17, 2020
Bibo-Joshi
added a commit
that referenced
this issue
Mar 28, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Seems that TG servers are escaping '_' in links by default, yet the library functions blindly replace it by '\ _'.
Try it out - 'https://site_name.com' becomes 'https: // site \ _name.com' after
msg.text_markdown_urled or
msg.caption_markdown_urled
Current tests miss exactly this case
Guess tomorrow I'll write and commit my solution, need this for work anyway. The simpliest one is to get final urled string and replace '_' by '_' inside the url clauses.
The text was updated successfully, but these errors were encountered: