voice.go 648 B

12345678910
  1. package telegram
  2. // Voice represents a voice note.
  3. type Voice struct {
  4. FileID string `json:"file_id"` // FileID 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. MimeType string `json:"mime_type"` // MimeType of the file as defined by sender
  8. FileSize int `json:"file_size"`
  9. }