mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 21:50:28 +00:00
Fix the UseInsecureURL text (telegram). Closes #184
This commit is contained in:
parent
dedb83c867
commit
bab308508e
@ -7,8 +7,8 @@ import (
|
|||||||
|
|
||||||
"github.com/42wim/matterbridge/bridge/config"
|
"github.com/42wim/matterbridge/bridge/config"
|
||||||
"github.com/42wim/matterbridge/bridge/helper"
|
"github.com/42wim/matterbridge/bridge/helper"
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
"github.com/go-telegram-bot-api/telegram-bot-api"
|
"github.com/go-telegram-bot-api/telegram-bot-api"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Btelegram struct {
|
type Btelegram struct {
|
||||||
@ -214,6 +214,11 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
|
|||||||
b.handleDownload(message.Audio, message.Caption, &fmsg)
|
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 {
|
if message.ForwardFrom != nil {
|
||||||
usernameForward := ""
|
usernameForward := ""
|
||||||
if b.Config.UseFirstName {
|
if b.Config.UseFirstName {
|
||||||
|
Loading…
Reference in New Issue
Block a user