mirror of
https://github.com/tucnak/telebot
synced 2024-11-15 06:13:01 +00:00
Handle audio thumbnail in EditMedia
This commit is contained in:
parent
00abc40b42
commit
ca2149b44f
4
bot.go
4
bot.go
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user