Voice Class
extends BaseRepresents a voice note
Properties
client: Client
duration: number
fileId: string
fileSize: number
fileUniqueId: string
mimeType: string
Methods
{ "id": 1956, "name": "Voice", "variant": "declaration", "kind": 128, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represents a voice note" } ] }, "children": [ { "id": 1957, "name": "constructor", "variant": "declaration", "kind": 512, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Voice.ts", "line": 25, "character": 1 } ], "signatures": [ { "id": 1958, "name": "new Voice", "variant": "signature", "kind": 16384, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Voice.ts", "line": 25, "character": 1 } ], "parameters": [ { "id": 1959, "name": "client", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" } }, { "id": 1960, "name": "data", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "reference", "target": 1956, "name": "Voice", "package": "tgkit", "qualifiedName": "default" }, "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } } ], "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } }, { "id": 1966, "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": 1963, "name": "duration", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Duration of the audio in seconds as defined by sender" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Voice.ts", "line": 16, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 1961, "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/Voice.ts", "line": 7, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 1965, "name": "fileSize", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "File size in bytes" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Voice.ts", "line": 22, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 1962, "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/Voice.ts", "line": 13, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 1964, "name": "mimeType", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "Document thumbnail as defined by sender" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Voice.ts", "line": 19, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Constructors", "children": [ 1957 ] }, { "title": "Properties", "children": [ 1966, 1963, 1961, 1965, 1962, 1964 ] } ], "sources": [ { "fileName": "packages/tgkit/src/structures/Voice.ts", "line": 5, "character": 21 } ], "extendedTypes": [ { "type": "reference", "target": { "sourceFileName": "packages/tgkit/src/structures/Base.ts", "qualifiedName": "default" }, "name": "default", "package": "tgkit" } ] }