animation.go 1.1 KB

1234567891011121314
  1. package telegram
  2. // Animation represents an animation file.
  3. type Animation struct {
  4. FileID string `json:"file_id"` // FileID is the identifier for this file, which can be used to download or reuse the file
  5. FileUniqueID string `json:"file_unique_id"` // FileUniqueID is the unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
  6. Width int `json:"width"` // Width video width as defined by sender
  7. Height int `json:"height"` // Height video height as defined by sender
  8. Duration int `json:"duration"` // Duration of the video in seconds as defined by sender
  9. Thumbnail *PhotoSize `json:"thumb"` // Thumbnail animation thumbnail as defined by sender
  10. FileName string `json:"file_name"` // FileName original animation filename as defined by sender
  11. MimeType string `json:"mime_type"` // MimeType of the file as defined by sender
  12. FileSize int `json:"file_size"`
  13. }