matterbridge icon indicating copy to clipboard operation
matterbridge copied to clipboard

Special Characters aren't send to Telegram

Open u0nel opened this issue 4 years ago • 3 comments

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

u0nel avatar Aug 22 '20 15:08 u0nel

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

BenWiederhake avatar Sep 08 '20 21:09 BenWiederhake

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

haykam821 avatar Mar 19 '21 16:03 haykam821

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

feelan03 avatar Aug 08 '22 16:08 feelan03