document.go 779 B

1234567891011
  1. package telegram
  2. // Document represents a general file.
  3. type Document struct {
  4. FileID string `json:"file_id"` // FileID is an 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. Thumbnail *PhotoSize `json:"thumb"` // Thumbnail document thumbnail as defined by sender
  7. FileName string `json:"file_name"` // FileName original filename as defined by sender
  8. MimeType string `json:"mime_type"` // MimeType of the file as defined by sender
  9. FileSize int `json:"file_size"`
  10. }