Audio Class
extends BaseRepresents an audio file to be treated as music by the Telegram clients
Properties
client: Client
duration: number
fileId: string
fileName: string
fileSize: number
fileUniqueId: string
mimeType: string
performer: string
thumbnail: PhotoSize
title: string
Methods
{ "id": 632, "name": "Audio", "variant": "declaration", "kind": 128, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represents an audio file to be treated as music by the Telegram clients" } ] }, "children": [ { "id": 633, "name": "constructor", "variant": "declaration", "kind": 512, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 37, "character": 1 } ], "signatures": [ { "id": 634, "name": "new Audio", "variant": "signature", "kind": 16384, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 37, "character": 1 } ], "parameters": [ { "id": 635, "name": "client", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" } }, { "id": 636, "name": "data", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "reference", "target": 632, "name": "Audio", "package": "tgkit", "qualifiedName": "default" }, "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } } ], "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } }, { "id": 646, "name": "client", "variant": "declaration", "kind": 1024, "flags": { "isInherited": true }, "sources": [ { "fileName": "packages/tgkit/src/structures/Base.ts", "line": 4, "character": 1 } ], "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" }, "inheritedFrom": { "type": "reference", "target": -1, "name": "Base.client" } }, { "id": 639, "name": "duration", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Duration of the video in seconds as defined by sender" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 17, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 637, "name": "fileId", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Identifier for this file, which can be used to download or reuse the file" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 8, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 642, "name": "fileName", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "Original filename as defined by sender" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 26, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 644, "name": "fileSize", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "File size in bytes" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 32, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 638, "name": "fileUniqueId", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Unique identifier for this file, which is supposed to be the same over time and for different bots.\nCan't be used to download or reuse the file." } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 14, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 643, "name": "mimeType", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "MIME type of the file as defined by sender" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 29, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 640, "name": "performer", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "Performer of the audio as defined by sender or by audio tags" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 20, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 645, "name": "thumbnail", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "Thumbnail of the album cover to which the music file belongs" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 35, "character": 1 } ], "type": { "type": "reference", "target": 1726, "name": "PhotoSize", "package": "tgkit", "qualifiedName": "default" } }, { "id": 641, "name": "title", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "Title of the audio as defined by sender or by audio tags" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 23, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Constructors", "children": [ 633 ] }, { "title": "Properties", "children": [ 646, 639, 637, 642, 644, 638, 643, 640, 645, 641 ] } ], "sources": [ { "fileName": "packages/tgkit/src/structures/Audio.ts", "line": 6, "character": 21 } ], "extendedTypes": [ { "type": "reference", "target": { "sourceFileName": "packages/tgkit/src/structures/Base.ts", "qualifiedName": "default" }, "name": "default", "package": "tgkit" } ] }