Bot API 3.5.

This commit is contained in:
Syfaro 2017-12-29 13:22:53 -06:00
parent e840fa3b0f
commit bb07769ea9
2 changed files with 77 additions and 3 deletions

View file

@ -798,3 +798,24 @@ type StickerSet struct {
ContainsMasks bool `json:"contains_masks"`
Stickers []Sticker `json:"stickers"`
}
// InputMediaPhoto is a photo to send as part of a media group.
//
// Telegram recommends to use a file_id instead of uploading.
type InputMediaPhoto struct {
Type string `json:"type"`
Media string `json:"media"`
Caption string `json:"caption"`
}
// InputMediaVideo is a video to send as part of a media group.
//
// Telegram recommends to use a file_id instead of uploading.
type InputMediaVideo struct {
Type string `json:"type"`
Media string `json:"media"`
Caption string `json:"caption,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Duration int `json:"duration,omitempty"`
}