update sendable to include voice.caption

This commit is contained in:
Rustam Gilyazov 2021-04-05 20:40:31 +12:00
parent ded76a871e
commit 97480382ea
No known key found for this signature in database
GPG Key ID: 23B9DBD7FAE54FCD

View File

@ -213,6 +213,7 @@ func (a *Animation) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, erro
func (v *Voice) Send(b *Bot, to Recipient, opt *SendOptions) (*Message, error) {
params := map[string]string{
"chat_id": to.Recipient(),
"caption": v.Caption,
}
b.embedSendOptions(params, opt)