Animation Class
extends BaseRepresents an animation file (GIF or H.264/MPEG-4 AVC video without sound)
Properties
client: Client
duration: number
fileId: string
fileName: string
fileSize: number
fileUniqueId: string
height: number
mimeType: string
thumbnail: PhotoSize
width: number
Methods
{ "id": 617, "name": "Animation", "variant": "declaration", "kind": 128, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound)" } ] }, "children": [ { "id": 618, "name": "constructor", "variant": "declaration", "kind": 512, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Animation.ts", "line": 37, "character": 1 } ], "signatures": [ { "id": 619, "name": "new Animation", "variant": "signature", "kind": 16384, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Animation.ts", "line": 37, "character": 1 } ], "parameters": [ { "id": 620, "name": "client", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" } }, { "id": 621, "name": "data", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "reference", "target": 617, "name": "Animation", "package": "tgkit", "qualifiedName": "default" }, "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } } ], "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } }, { "id": 631, "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": 626, "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/Animation.ts", "line": 23, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 622, "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/Animation.ts", "line": 8, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 628, "name": "fileName", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "Original animation filename as defined by sender" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Animation.ts", "line": 29, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 630, "name": "fileSize", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "File size in bytes" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Animation.ts", "line": 35, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 623, "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/Animation.ts", "line": 14, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 625, "name": "height", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Photo height" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Animation.ts", "line": 20, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 629, "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/Animation.ts", "line": 32, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 627, "name": "thumbnail", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "Animation thumbnail as defined by sender" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Animation.ts", "line": 26, "character": 1 } ], "type": { "type": "reference", "target": 1726, "name": "PhotoSize", "package": "tgkit", "qualifiedName": "default" } }, { "id": 624, "name": "width", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Photo width" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Animation.ts", "line": 17, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } } ], "groups": [ { "title": "Constructors", "children": [ 618 ] }, { "title": "Properties", "children": [ 631, 626, 622, 628, 630, 623, 625, 629, 627, 624 ] } ], "sources": [ { "fileName": "packages/tgkit/src/structures/Animation.ts", "line": 6, "character": 21 } ], "extendedTypes": [ { "type": "reference", "target": { "sourceFileName": "packages/tgkit/src/structures/Base.ts", "qualifiedName": "default" }, "name": "default", "package": "tgkit" } ] }