audio.go 1.2 KB

1234567891011121314
  1. package telegram
  2. // Audio represents an audio file to be treated as music by the Telegram clients.
  3. type Audio 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. Duration int `json:"duration"` // Duration of the audio in seconds as defined by sender
  7. Performer string `json:"performer"` // Performer of the audio as defined by sender or by audio tags
  8. Title string `json:"title"` // Title of the audio as defined by sender or by audio tags
  9. FileName string `json:"file_name"` // FileName is the original filename as defined by sender
  10. MimeType string `json:"mime_type"` // MimeType of the file as defined by sender
  11. FileSize int `json:"file_size"` // FileSize file size
  12. Thumbnail *PhotoSize `json:"thumb"` // Thumbnail is the album cover to which the music file belongs
  13. }