Add chat animation type documentation

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

View File

@ -522,14 +522,26 @@ type StickerSet struct {
// ChatAnimation contains information about an animation. // ChatAnimation contains information about an animation.
type ChatAnimation struct { type ChatAnimation struct {
FileID string `json:"file_id"` // FileID odentifier 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
FileName string `json:"file_name"` // optional Height int `json:"height"`
MimeType string `json:"mime_type"` // optional // Duration of the video in seconds as defined by sender
FileSize int `json:"file_size"` // optional Duration int `json:"duration"`
// Thumbnail animation thumbnail as defined by sender
// optional
Thumbnail *PhotoSize `json:"thumb"`
// FileName original animation filename as defined by sender
// optional
FileName string `json:"file_name"`
// MimeType of the file as defined by sender
// optional
MimeType string `json:"mime_type"`
// FileSize file size
// optional
FileSize int `json:"file_size"`
} }
// Video contains information about a video. // Video contains information about a video.