ChatShared Class
extends BaseInformation about the chat whose identifier was shared with the bot using a KeyboardButtonRequestChat button.
Properties
chatId: number
client: Client
requestId: number
Methods
{ "id": 1223, "name": "ChatShared", "variant": "declaration", "kind": 128, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Information about the chat whose identifier was shared with the bot using a KeyboardButtonRequestChat button." } ] }, "children": [ { "id": 1224, "name": "constructor", "variant": "declaration", "kind": 512, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/ChatShared.ts", "line": 15, "character": 1 } ], "signatures": [ { "id": 1225, "name": "new ChatShared", "variant": "signature", "kind": 16384, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/ChatShared.ts", "line": 15, "character": 1 } ], "parameters": [ { "id": 1226, "name": "client", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" } }, { "id": 1227, "name": "data", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "reference", "target": 1223, "name": "ChatShared", "package": "tgkit", "qualifiedName": "default" }, "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } } ], "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } }, { "id": 1229, "name": "chatId", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Identifier of the shared chat. The bot may not have access to the chat and could be unable\nto use this identifier, unless the chat is already known to the bot by some other means." } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/ChatShared.ts", "line": 13, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 1230, "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": 1228, "name": "requestId", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Identifier of the request." } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/ChatShared.ts", "line": 7, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } } ], "groups": [ { "title": "Constructors", "children": [ 1224 ] }, { "title": "Properties", "children": [ 1229, 1230, 1228 ] } ], "sources": [ { "fileName": "packages/tgkit/src/structures/ChatShared.ts", "line": 5, "character": 21 } ], "extendedTypes": [ { "type": "reference", "target": { "sourceFileName": "packages/tgkit/src/structures/Base.ts", "qualifiedName": "default" }, "name": "default", "package": "tgkit" } ] }