mirror of
https://github.com/42wim/matterbridge.git
synced 2025-01-31 06:24:14 +01:00
telegram: Send uploaded file URL to bridges
This commit is contained in:
parent
c4157a4d5b
commit
7e8ed3e9b8
@ -346,7 +346,7 @@ func (b *Btelegram) handleDownloadAvatar(userid int64, channel string) {
|
||||
b.Log.Errorf("download %s failed %#v", url, err)
|
||||
return
|
||||
}
|
||||
helper.HandleDownloadData(b.Log, &rmsg, name, rmsg.Text, "", data, b.General)
|
||||
helper.HandleDownloadData(b.Log, &rmsg, name, rmsg.Text, url, data, b.General)
|
||||
b.Remote <- rmsg
|
||||
}
|
||||
}
|
||||
@ -440,7 +440,7 @@ func (b *Btelegram) handleDownload(rmsg *config.Message, message *tgbotapi.Messa
|
||||
name = strings.Replace(name, ".oga", ".ogg", 1)
|
||||
}
|
||||
|
||||
helper.HandleDownloadData(b.Log, rmsg, name, message.Caption, "", data, b.General)
|
||||
helper.HandleDownloadData(b.Log, rmsg, name, message.Caption, url, data, b.General)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user