Class Audio
Represents an audio file to be treated like music
Inheritance
System.Object
Audio
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class Audio
Properties
| Improve this Doc View SourceDuration
Duration of the audio in seconds as defined by sender
Declaration
[JsonProperty(PropertyName = "duration")]
public int Duration { get; set; }
Property Value
Type | Description |
---|---|
System. |
FileId
Unique identifier for this file
Declaration
[JsonProperty(PropertyName = "file_id", Required = Required.Always)]
public string FileId { get; set; }
Property Value
Type | Description |
---|---|
System. |
FileSize
Optional. File size
Declaration
[JsonProperty(PropertyName = "file_size")]
public int FileSize { get; set; }
Property Value
Type | Description |
---|---|
System. |
MimeType
Optional. MIME type of the file as defined by sender
Declaration
[JsonProperty(PropertyName = "mime_type")]
public string MimeType { get; set; }
Property Value
Type | Description |
---|---|
System. |
Performer
Optional. Performer of the audio as defined by sender or by audio tags
Declaration
[JsonProperty(PropertyName = "performer")]
public string Performer { get; set; }
Property Value
Type | Description |
---|---|
System. |
Thumb
Optional. Thumbnail of the album cover to which the music file belongs
Declaration
[JsonProperty(PropertyName = "thumb")]
public PhotoSize Thumb { get; set; }
Property Value
Type | Description |
---|---|
Photo |
Title
Optional. Title of the audio as defined by sender or by audio tags
Declaration
[JsonProperty(PropertyName = "title")]
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System. |