|
|
@ -121,8 +121,10 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
|
|
|
|
text = text + " " + b.getFileDirectURL(message.Video.FileID)
|
|
|
|
text = text + " " + b.getFileDirectURL(message.Video.FileID)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if message.Photo != nil {
|
|
|
|
if message.Photo != nil {
|
|
|
|
for _, p := range *message.Photo {
|
|
|
|
photos := *message.Photo
|
|
|
|
text = text + " " + b.getFileDirectURL(p.FileID)
|
|
|
|
// photo 3 is the biggest
|
|
|
|
|
|
|
|
if len(photos) == 3 {
|
|
|
|
|
|
|
|
text = text + " " + b.getFileDirectURL(photos[2].FileID)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if message.Document != nil {
|
|
|
|
if message.Document != nil {
|
|
|
|