BusinessConnection Class
extends BaseRepresents a message about a scheduled giveaway
Properties
canReply: boolean
client: Client
date: Date
id: string
isEnabled: boolean
user: User
userChatId: number
Methods
{ "id": 656, "name": "BusinessConnection", "variant": "declaration", "kind": 128, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represents a message about a scheduled giveaway" } ] }, "children": [ { "id": 657, "name": "constructor", "variant": "declaration", "kind": 512, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/BusinessConnection.ts", "line": 27, "character": 1 } ], "signatures": [ { "id": 658, "name": "new BusinessConnection", "variant": "signature", "kind": 16384, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/BusinessConnection.ts", "line": 27, "character": 1 } ], "parameters": [ { "id": 659, "name": "client", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" } }, { "id": 660, "name": "data", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "reference", "target": 656, "name": "BusinessConnection", "package": "tgkit", "qualifiedName": "default" }, "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } } ], "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } }, { "id": 665, "name": "canReply", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "*true*, if the bot can act on behalf of the business account in chats that were active in the last 24 hours" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/BusinessConnection.ts", "line": 22, "character": 1 } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 667, "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": 664, "name": "date", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Date the connection was established" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/BusinessConnection.ts", "line": 19, "character": 1 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Date" }, "name": "Date", "package": "typescript" } }, { "id": 661, "name": "id", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Unique identifier of the business connection" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/BusinessConnection.ts", "line": 10, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 666, "name": "isEnabled", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "*true*, if the connection is active" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/BusinessConnection.ts", "line": 25, "character": 1 } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 662, "name": "user", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Business account user that created the business connection" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/BusinessConnection.ts", "line": 13, "character": 1 } ], "type": { "type": "reference", "target": 1888, "name": "User", "package": "tgkit", "qualifiedName": "default" } }, { "id": 663, "name": "userChatId", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Identifier of a private chat with the user who created the business connection." } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/BusinessConnection.ts", "line": 16, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } } ], "groups": [ { "title": "Constructors", "children": [ 657 ] }, { "title": "Properties", "children": [ 665, 667, 664, 661, 666, 662, 663 ] } ], "sources": [ { "fileName": "packages/tgkit/src/structures/BusinessConnection.ts", "line": 8, "character": 21 } ], "extendedTypes": [ { "type": "reference", "target": { "sourceFileName": "packages/tgkit/src/structures/Base.ts", "qualifiedName": "default" }, "name": "default", "package": "tgkit" } ] }