Add video and video note type documentation
parent
a005cff757
commit
8e875a5711
41
types.go
41
types.go
|
@ -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 string `json:"file_id"`
|
// FileID identifier for this file, which can be used to download or reuse the file
|
||||||
Width int `json:"width"`
|
FileID string `json:"file_id"`
|
||||||
Height int `json:"height"`
|
// Width video width as defined by sender
|
||||||
Duration int `json:"duration"`
|
Width int `json:"width"`
|
||||||
Thumbnail *PhotoSize `json:"thumb"` // optional
|
// Height video height as defined by sender
|
||||||
MimeType string `json:"mime_type"` // optional
|
Height int `json:"height"`
|
||||||
FileSize int `json:"file_size"` // optional
|
// Duration of the video in seconds as defined by sender
|
||||||
|
Duration int `json:"duration"`
|
||||||
|
// Thumbnail video thumbnail
|
||||||
|
// 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 string `json:"file_id"`
|
// FileID identifier for this file, which can be used to download or reuse the file
|
||||||
Length int `json:"length"`
|
FileID string `json:"file_id"`
|
||||||
Duration int `json:"duration"`
|
// Length video width and height (diameter of the video message) as defined by sender
|
||||||
Thumbnail *PhotoSize `json:"thumb"` // optional
|
Length int `json:"length"`
|
||||||
FileSize int `json:"file_size"` // optional
|
// Duration of the video in seconds as defined by sender
|
||||||
|
Duration int `json:"duration"`
|
||||||
|
// Thumbnail video thumbnail
|
||||||
|
// 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.
|
||||||
|
|
Loading…
Reference in New Issue