mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-24 04:02:37 +01:00
Sent only the biggest picture to bridges (telegram)
This commit is contained in:
parent
25b1af1e11
commit
2dd402675d
@ -121,8 +121,10 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
|
||||
text = text + " " + b.getFileDirectURL(message.Video.FileID)
|
||||
}
|
||||
if message.Photo != nil {
|
||||
for _, p := range *message.Photo {
|
||||
text = text + " " + b.getFileDirectURL(p.FileID)
|
||||
photos := *message.Photo
|
||||
// photo 3 is the biggest
|
||||
if len(photos) == 3 {
|
||||
text = text + " " + b.getFileDirectURL(photos[2].FileID)
|
||||
}
|
||||
}
|
||||
if message.Document != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user