summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-21 13:30:38 +0100
committerWim <wim@42.be>2018-02-21 13:30:38 +0100
commitbab308508e770e8f3fd7192a9e85e6abcfa03522 (patch)
tree9554c09d0d91db3105ab3370e0456518b142ed21
parentdedb83c867630d5ff3cef4408540b9a4718f78c5 (diff)
downloadmatterbridge-msglm-bab308508e770e8f3fd7192a9e85e6abcfa03522.tar.gz
matterbridge-msglm-bab308508e770e8f3fd7192a9e85e6abcfa03522.tar.bz2
matterbridge-msglm-bab308508e770e8f3fd7192a9e85e6abcfa03522.zip
Fix the UseInsecureURL text (telegram). Closes #184
-rw-r--r--bridge/telegram/telegram.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go
index e411690c..a6826480 100644
--- a/bridge/telegram/telegram.go
+++ b/bridge/telegram/telegram.go
@@ -7,8 +7,8 @@ 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 {
@@ -214,6 +214,11 @@ 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 {