mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-26 16:39:24 +00:00
Add comment to file upload from telegram. Show comments on all bridges. Closes #358
This commit is contained in:
@ -180,6 +180,9 @@ func (b *Birc) Send(msg config.Message) (string, error) {
|
||||
if len(msg.Extra["file"]) > 0 {
|
||||
for _, f := range msg.Extra["file"] {
|
||||
fi := f.(config.FileInfo)
|
||||
if fi.Comment != "" {
|
||||
msg.Text += fi.Comment + ":"
|
||||
}
|
||||
if fi.URL != "" {
|
||||
msg.Text = fi.URL
|
||||
}
|
||||
|
Reference in New Issue
Block a user