commit a239db41b33f81272deddd1e5e12396372f859a1
Author: Wohlstand <admin@wohlnet.ru>
Date: Fri Dec 19 14:48:32 2025 +0000
diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go
index dd23772..61f747c 100644
--- a/bridge/telegram/handlers.go
+++ b/bridge/telegram/handlers.go
@@ -116 +117 @@ import (
"github.com/davecgh/go-spew/spew"
"github.com/matterbridge-org/matterbridge/bridge/config"
"github.com/matterbridge-org/matterbridge/bridge/helper"
+
// Seems not much different from upstream https://github.com/go-telegram-bot-api/telegram-bot-api replace?
tgbotapi "github.com/matterbridge/telegram-bot-api/v6"
)
@@ -5396 +5407 @@ func (b *Btelegram) handleUploadFile(msg *config.Message, chatid int64, threadid
if first {
prev = ftype
equal = true
+ first = false
} else {
if prev != ftype {
equal = false
@@ -58715 +5896 @@ func (b *Btelegram) handleUploadFile(msg *config.Message, chatid int64, threadid
}
ac.Caption = fi.Name
media = append(media, ac)
-// case ".ogg":
-// voc := tgbotapi.NewVoice(chatid, file)
-// voc.Caption, voc.ParseMode = TGGetParseMode(b, msg.Username, fi.Comment)
-// voc.ReplyToMessageID = parentID
-// res, err := b.c.Send(voc)
-// if err != nil {
-// return "", err
-// }
-// return strconv.Itoa(res.MessageID), nil
default:
dc := tgbotapi.NewInputMediaDocument(file)
if fi.Comment != "" {