Handle audio thumbnail in EditMedia

This commit is contained in:
Viktor Oreshkin 2019-12-26 01:21:11 +03:00
parent 00abc40b42
commit ca2149b44f

4
bot.go
View File

@ -860,6 +860,10 @@ func (b *Bot) EditMedia(message Editable, inputMedia InputMedia, options ...inte
resultMedia.MIME = y.MIME
resultMedia.Title = y.Title
resultMedia.Performer = y.Performer
thumb = y.Thumbnail
if thumb != nil {
resultMedia.Thumbnail = "attach://thumb"
}
default:
return nil, errors.Errorf("telebot: inputMedia entry is not valid")
}