video.go 1.0 KB

1234567891011121314
  1. package telegram
  2. // Video represents a video file.
  3. type Video struct {
  4. FileID string `json:"file_id"` // FileID identifier for this file, which can be used to download or reuse
  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 video thumbnail
  10. FileName string `json:"file_name"` // FileName is the original filename as defined by sender
  11. MimeType string `json:"mime_type"` // MimeType of a file as defined by sender
  12. FileSize int `json:"file_size"`
  13. }