Video Class

extends Base

Represents a video file

Properties

  • client: Client
  • duration: number
  • fileId: string
  • fileName: string
  • fileSize: number
  • fileUniqueId: string
  • height: number
  • mimeType: string
  • thumbnail: PhotoSize
  • width: number

Methods

{
  "id": 1929,
  "name": "Video",
  "variant": "declaration",
  "kind": 128,
  "flags": {},
  "comment": {
    "summary": [
      {
        "kind": "text",
        "text": "Represents a video file"
      }
    ]
  },
  "children": [
    {
      "id": 1930,
      "name": "constructor",
      "variant": "declaration",
      "kind": 512,
      "flags": {},
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/Video.ts",
          "line": 37,
          "character": 1
        }
      ],
      "signatures": [
        {
          "id": 1931,
          "name": "new Video",
          "variant": "signature",
          "kind": 16384,
          "flags": {},
          "sources": [
            {
              "fileName": "packages/tgkit/src/structures/Video.ts",
              "line": 37,
              "character": 1
            }
          ],
          "parameters": [
            {
              "id": 1932,
              "name": "client",
              "variant": "param",
              "kind": 32768,
              "flags": {},
              "type": {
                "type": "reference",
                "target": 1,
                "name": "Client",
                "package": "tgkit",
                "qualifiedName": "default"
              }
            },
            {
              "id": 1933,
              "name": "data",
              "variant": "param",
              "kind": 32768,
              "flags": {},
              "type": {
                "type": "intrinsic",
                "name": "any"
              }
            }
          ],
          "type": {
            "type": "reference",
            "target": 1929,
            "name": "Video",
            "package": "tgkit",
            "qualifiedName": "default"
          },
          "overwrites": {
            "type": "reference",
            "target": -1,
            "name": "Base.constructor"
          }
        }
      ],
      "overwrites": {
        "type": "reference",
        "target": -1,
        "name": "Base.constructor"
      }
    },
    {
      "id": 1943,
      "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": 1938,
      "name": "duration",
      "variant": "declaration",
      "kind": 1024,
      "flags": {
        "isOptional": true
      },
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Duration of the video in seconds as defined by sender"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/Video.ts",
          "line": 23,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "number"
      }
    },
    {
      "id": 1934,
      "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/Video.ts",
          "line": 8,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "string"
      }
    },
    {
      "id": 1940,
      "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/Video.ts",
          "line": 29,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "string"
      }
    },
    {
      "id": 1942,
      "name": "fileSize",
      "variant": "declaration",
      "kind": 1024,
      "flags": {
        "isOptional": true
      },
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "File size in bytes"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/Video.ts",
          "line": 35,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "number"
      }
    },
    {
      "id": 1935,
      "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/Video.ts",
          "line": 14,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "string"
      }
    },
    {
      "id": 1937,
      "name": "height",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Video height as defined by sender"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/Video.ts",
          "line": 20,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "number"
      }
    },
    {
      "id": 1941,
      "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/Video.ts",
          "line": 32,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "string"
      }
    },
    {
      "id": 1939,
      "name": "thumbnail",
      "variant": "declaration",
      "kind": 1024,
      "flags": {
        "isOptional": true
      },
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Video thumbnail"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/Video.ts",
          "line": 26,
          "character": 1
        }
      ],
      "type": {
        "type": "reference",
        "target": 1726,
        "name": "PhotoSize",
        "package": "tgkit",
        "qualifiedName": "default"
      }
    },
    {
      "id": 1936,
      "name": "width",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Video width as defined by sender"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/Video.ts",
          "line": 17,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "number"
      }
    }
  ],
  "groups": [
    {
      "title": "Constructors",
      "children": [
        1930
      ]
    },
    {
      "title": "Properties",
      "children": [
        1943,
        1938,
        1934,
        1940,
        1942,
        1935,
        1937,
        1941,
        1939,
        1936
      ]
    }
  ],
  "sources": [
    {
      "fileName": "packages/tgkit/src/structures/Video.ts",
      "line": 6,
      "character": 21
    }
  ],
  "extendedTypes": [
    {
      "type": "reference",
      "target": {
        "sourceFileName": "packages/tgkit/src/structures/Base.ts",
        "qualifiedName": "default"
      },
      "name": "default",
      "package": "tgkit"
    }
  ]
}