all repos — telegram-bot-api @ a005cff757a80dcb6ce777ca32b6308a02124c90

Golang bindings for the Telegram Bot API

Add chat animation type documentation
Ilya Kaznacheev ilya@kaznacheev.me
Sat, 24 Oct 2020 16:21:42 +0300
commit

a005cff757a80dcb6ce777ca32b6308a02124c90

parent

1f1d97f1e310f75af00438576a21abaf2d3a2e13

1 files changed, 20 insertions(+), 8 deletions(-)

jump to
M types.gotypes.go

@@ -522,14 +522,26 @@ }

// ChatAnimation contains information about an animation. type ChatAnimation struct { - FileID string `json:"file_id"` - Width int `json:"width"` - Height int `json:"height"` - Duration int `json:"duration"` - Thumbnail *PhotoSize `json:"thumb"` // optional - FileName string `json:"file_name"` // optional - MimeType string `json:"mime_type"` // optional - FileSize int `json:"file_size"` // optional + // FileID odentifier for this file, which can be used to download or reuse the file + FileID string `json:"file_id"` + // Width video width as defined by sender + Width int `json:"width"` + // Height video height as defined by sender + Height int `json:"height"` + // Duration of the video in seconds as defined by sender + 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.