Skip to content

Remove dot which should be escaped on telegram #15420

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

Closed
wants to merge 1 commit into from

Conversation

glukose
Copy link
Contributor

@glukose glukose commented Jun 7, 2021

Hello,
Hope I could help a little after I got stuck with an error message telling me to escape the dot, spend a few minutes trying to solve that, really thinking that the trouble was coming from the configuration and not from the example from the doc.

Turns out that telegram wants you to escape the character '.'
Should it be escaped in the documentation ? (But is it compatible with others channels ?)
Or just removed, leaving the doc with a text that works on all channels ?

Cheers

Hello,
Hope I could help a little after I got stuck with an error message telling me to escape the dot, spend a few minutes trying to solve that, really thinking that the trouble was coming from the configuration and not from the example from the doc.

Turns out that telegram wants you to escape the character '.'
Should it be escaped in the documentation ? (But is it compatible with others channels ?)
Or just removed, leaving the doc with a text that works on all channels ?

Cheers
@OskarStark
Copy link
Contributor

This should be fixed on the code side.

Can you add a testcase to the bridge against 5.3 branch?

@glukose
Copy link
Contributor Author

glukose commented Jun 7, 2021

@OskarStark
Copy link
Contributor

Exactly 👌🏻😎

Thank you

@glukose glukose closed this Jun 8, 2021
@glukose glukose deleted the patch-1 branch June 8, 2021 07:58
derrabus added a commit to symfony/symfony that referenced this pull request Jun 10, 2021
This PR was squashed before being merged into the 5.3 branch.

Discussion
----------

[Notifier] Escape `.` char for Telegram transport

| Q             | A
| ------------- | ---
| Branch?       | 5.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Hello,

The MarkdownV2 parse mode of Telegram has the '.' char as a reserved char when sending a message.
It should be escaped but only on this mode because it is not reserved on the others.

Link to the original report in the documentation : symfony/symfony-docs#15420

I tried writing a test but couldn't reproduce the error, it does work on a small project however.

This is my first PR on Sf, hope I did it correctly.

Cheers

Commits
-------

0aa0fcb [Notifier] Escape `.` char for Telegram transport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants