42wim / matterbridge

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Apache License 2.0
6.57k stars 616 forks source link

Discord embeds not making to Telegram in MarkdownV2 mode #1225

Open burner1024 opened 4 years ago

burner1024 commented 4 years ago

Describe the bug Discord embeds are not making it to Telegram when MarkdownV2 is enabled. Basically, same as #1196, only not about nicks, but content.

To Reproduce

  1. Set up Discord/Telegram bridge
  2. Enable ShowEmbeds for Discord, and for Telegram set MessageFormat="MarkdownV2", Label="TG" and RemoteNickFormat="{LABEL} {NICK} "
  3. Send an embed into Discord (for example, set up a github hook to show when a repo is starred)

Expected behavior Messages are passed to telegram.

Screenshots/debug logs

matterbridge[30187]: time="2020-09-02T07:26:50Z" level=error msg="SendMessage failed: Bad Request: can't parse entities: Character '-' is reserved and must be escaped with the preceding '\'" prefix=gateway

Environment (please complete the following information):

42wim commented 4 years ago

Did you try MessageFormat="HTML" ?

The telegram is hard to debug/test for me as I don't have a telegram account.

If anyone has a spare that I can use for testing please contact me (on irc, discord)

burner1024 commented 4 years ago

Html seems to work. Telegram needs a working phone number, so finding a spare will probably be not very easy.