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 aren't send to Telegram #1203

Open
u0nel opened this issue Aug 22, 2020 · 3 comments
Open

Special Characters aren't send to Telegram #1203

u0nel opened this issue Aug 22, 2020 · 3 comments
Labels

Comments

@u0nel
Copy link

u0nel commented Aug 22, 2020

Environment

I tried the stable Binary and the self compiled developement version.

Operating system: Solus Budgie

Please describe the expected behavior.

Messages from Discord/Matrix with special characters like .:,;()!? should be bridged to telegram

Please describe the actual behavior.

If matterbridge gets a message from Discord or Matrix (I didn't test any other services) I get an error like this:
[0645] ERROR gateway: SendMessage failed: Bad Request: can't parse entities: Character '.' is reserved and must be escaped with the preceding '\'
And its not forwarded to Telegram, but to Discord or Matrix. Messages with these characters are send on the other too services.

Any steps to reproduce the behavior?

No,except the config file.

Please add your configuration file

[discord.discord]
Token="discordapitoken"
Server="1234567890076"
RemoteNickFormat="{NICK} "
WebhookURL="https://discordapp.com/api/webhooks/1111111111111111/apoaupaoienwosupaosuepokj"

[telegram.telegram]
Token="12345:thebottoken67"
RemoteNickFormat="**{NICK}**: "
MediaConvertWebPToPNG=true
MessageFormat="MarkdownV2"
UseFirstName=true

[matrix.matrix]
RemoteNickFormat="**{NICK}** "
Server="https://matrix.org"
Login="theusername"
Password="somepassword"
NoHomeServerSuffix=true

[[gateway]]
name="portal"
enable="true"

[[gateway.inout]]
account="discord.discord"
channel="ID:685958534277759068"

[[gateway.inout]]
account="telegram.telegram"
channel="-459537021"

[[gateway.inout]]
account="matrix.matrix"
channel="#roomname:matrix.org"

Other issues

There are also some other issues, that aren't that bad, but here they are:

  • Mardown on Telegram nickname not working
  • Discord Webhook not editing
@BenWiederhake
Copy link
Contributor

I'm not running into this issue, probably because I don't set MarkdownV2. Consider removing it , as a temporary workaround.

@haykam821
Copy link
Contributor

This is still an issue even in v1.22.0, unfortunately.

@feelan03
Copy link

feelan03 commented Aug 8, 2022

@42wim this problem actualy for me. Maybe i can help you resolv it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants