Thumbnail

rani/matterbridge.git

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

commit 9234b5f3c0a6e576405f01f341d1681d7dab4321 Author: Wim <wim@42.be> Date: Wed Feb 21 13:30:38 2018 +0000 Fix the UseInsecureURL text (telegram). Closes #184 diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index e411690..a682648 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -78 +78 @@ import (     "github.com/42wim/matterbridge/bridge/config"   "github.com/42wim/matterbridge/bridge/helper" - log "github.com/sirupsen/logrus"   "github.com/go-telegram-bot-api/telegram-bot-api" + log "github.com/sirupsen/logrus"  )    type Btelegram struct { @@ -2146 +21411 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {   b.handleDownload(message.Audio, message.Caption, &fmsg)   }   + // If UseInsecureURL is used we'll have a text in fmsg.Text + if fmsg.Text != "" { + text = text + fmsg.Text + } +   if message.ForwardFrom != nil {   usernameForward := ""   if b.Config.UseFirstName {