PhotoSize Class
extends BaseRepresents one size of a photo or a file / sticker thumbnail
Properties
client: Client
fileId: string
fileSize: number
fileUniqueId: string
height: number
width: number
Methods
{ "id": 1726, "name": "PhotoSize", "variant": "declaration", "kind": 128, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represents one size of a photo or a file / sticker thumbnail" } ] }, "children": [ { "id": 1727, "name": "constructor", "variant": "declaration", "kind": 512, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/PhotoSize.ts", "line": 24, "character": 1 } ], "signatures": [ { "id": 1728, "name": "new PhotoSize", "variant": "signature", "kind": 16384, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/PhotoSize.ts", "line": 24, "character": 1 } ], "parameters": [ { "id": 1729, "name": "client", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" } }, { "id": 1730, "name": "data", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "reference", "target": 1726, "name": "PhotoSize", "package": "tgkit", "qualifiedName": "default" }, "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } } ], "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } }, { "id": 1736, "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": 1731, "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/PhotoSize.ts", "line": 7, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 1735, "name": "fileSize", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "File size in bytes" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/PhotoSize.ts", "line": 22, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 1732, "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/PhotoSize.ts", "line": 13, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 1734, "name": "height", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Photo height" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/PhotoSize.ts", "line": 19, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 1733, "name": "width", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Photo width" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/PhotoSize.ts", "line": 16, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } } ], "groups": [ { "title": "Constructors", "children": [ 1727 ] }, { "title": "Properties", "children": [ 1736, 1731, 1735, 1732, 1734, 1733 ] } ], "sources": [ { "fileName": "packages/tgkit/src/structures/PhotoSize.ts", "line": 5, "character": 21 } ], "extendedTypes": [ { "type": "reference", "target": { "sourceFileName": "packages/tgkit/src/structures/Base.ts", "qualifiedName": "default" }, "name": "default", "package": "tgkit" } ] }