Generalize InputMedia, fix editMessageMedia.

This commit is contained in:
Syfaro 2020-07-26 15:51:33 -05:00
parent 8d14bd7a56
commit a45216f441
3 changed files with 182 additions and 66 deletions

View file

@ -1126,6 +1126,7 @@ type InputMediaPhoto struct {
// InputMediaVideo is a video to send as part of a media group.
type InputMediaVideo struct {
BaseInputMedia
Thumb interface{}
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Duration int `json:"duration,omitempty"`