Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit a4dda8c796175a37c84a3c94f341533be664804b Author: Soloam <11949987+soloam@users.noreply.github.com> Date: Sun Dec 12 00:40:31 2021 +0000 Add comments to messages (telegram) (#1652) * Add's comments to message in telegram messages This is a change to handle comments in telegram messages! Some messages in telegram have comments added to the message! This normally is the description in images or links. This changes appends the comment to the message if available. This should fix the issue in #1649 * [fix] discord: send comments in extras Co-authored-by: Wim <wim@42.be> diff --git a/.gitignore b/.gitignore index e3ba009..51f3f40 100644 --- a/.gitignore +++ b/.gitignore @@ -43 +46 @@    # Exclude configuration file  matterbridge.toml + +# Exclude IDE Files +.vscode diff --git a/bridge/discord/webhook.go b/bridge/discord/webhook.go index 7b136bc..3afb942 100644 --- a/bridge/discord/webhook.go +++ b/bridge/discord/webhook.go @@ -8210 +828 @@ func (b *Bdiscord) webhookSend(msg *config.Message, channelID string) (*discordg   ContentType: "",   Reader: bytes.NewReader(*fi.Data),   } - content := "" - if msg.Text == "" { - content = fi.Comment - } + content := fi.Comment +   _, e2 := b.transmitter.Send(   channelID,   &discordgo.WebhookParams{