mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-15 16:39:26 +01:00
Fix telegram photo/document input handling (telegram)
This commit is contained in:
parent
bcdecdaa73
commit
c0f9d86287
@ -178,12 +178,11 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
|
|||||||
if message.Video != nil {
|
if message.Video != nil {
|
||||||
b.handleDownload(message.Video, &fmsg)
|
b.handleDownload(message.Video, &fmsg)
|
||||||
}
|
}
|
||||||
if message.Photo != nil && b.Config.UseInsecureURL {
|
if message.Photo != nil {
|
||||||
b.handleDownload(message.Photo, &fmsg)
|
b.handleDownload(message.Photo, &fmsg)
|
||||||
}
|
}
|
||||||
if message.Document != nil && b.Config.UseInsecureURL {
|
if message.Document != nil {
|
||||||
b.handleDownload(message.Sticker, &fmsg)
|
b.handleDownload(message.Sticker, &fmsg)
|
||||||
text = text + " " + message.Document.FileName + " : " + b.getFileDirectURL(message.Document.FileID)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// quote the previous message
|
// quote the previous message
|
||||||
|
Loading…
Reference in New Issue
Block a user