Add video and video note type documentation

bot-api-6.1
Ilya Kaznacheev 2020-10-24 16:25:05 +03:00
parent a005cff757
commit 8e875a5711
No known key found for this signature in database
GPG Key ID: 7E2C1D8A4AB37D50
1 changed files with 29 additions and 12 deletions

View File

@ -546,22 +546,39 @@ type ChatAnimation struct {
// Video contains information about a video. // Video contains information about a video.
type Video struct { type Video struct {
// FileID identifier for this file, which can be used to download or reuse the file
FileID string `json:"file_id"` FileID string `json:"file_id"`
// Width video width as defined by sender
Width int `json:"width"` Width int `json:"width"`
// Height video height as defined by sender
Height int `json:"height"` Height int `json:"height"`
// Duration of the video in seconds as defined by sender
Duration int `json:"duration"` Duration int `json:"duration"`
Thumbnail *PhotoSize `json:"thumb"` // optional // Thumbnail video thumbnail
MimeType string `json:"mime_type"` // optional // optional
FileSize int `json:"file_size"` // optional Thumbnail *PhotoSize `json:"thumb"`
// MimeType of a file as defined by sender
// optional
MimeType string `json:"mime_type"`
// FileSize file size
// optional
FileSize int `json:"file_size"`
} }
// VideoNote contains information about a video. // VideoNote contains information about a video.
type VideoNote struct { type VideoNote struct {
// FileID identifier for this file, which can be used to download or reuse the file
FileID string `json:"file_id"` FileID string `json:"file_id"`
// Length video width and height (diameter of the video message) as defined by sender
Length int `json:"length"` Length int `json:"length"`
// Duration of the video in seconds as defined by sender
Duration int `json:"duration"` Duration int `json:"duration"`
Thumbnail *PhotoSize `json:"thumb"` // optional // Thumbnail video thumbnail
FileSize int `json:"file_size"` // optional // optional
Thumbnail *PhotoSize `json:"thumb"`
// FileSize file size
// optional
FileSize int `json:"file_size"`
} }
// Voice contains information about a voice. // Voice contains information about a voice.