-
|
Hello I got error when send multiple file using []tgbotapi.InputMediaVideo as interface in newmediagroup my code like this... I got error with this
Did I do something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You need to use Line 320 in 54104a0 var listMediaVideoInput []interface{}
for _, value := range dataListMediaVideo {
var tempVideoInput = tgbotapi.NewInputMediaVideo(value)
listMediaVideoInput = append(listMediaVideoInput, tempVideoInput)
}
msg = tgbotapi.NewMediaGroup(update.Message.Chat.ID, listMediaVideoInput)
bot.Send(msg) |
Beta Was this translation helpful? Give feedback.
You need to use
[]interface{}instead of[]tgbotapi.InputMediaVideobecause that's the typeNewMediaGroupis expecting:telegram-bot-api/helpers.go
Line 320 in 54104a0