PollOption Class
extends BaseContains information about one answer option in a poll.
Properties
client: Client
text: string
voterCount: number
Methods
{ "id": 1765, "name": "PollOption", "variant": "declaration", "kind": 128, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Contains information about one answer option in a poll." } ] }, "children": [ { "id": 1766, "name": "constructor", "variant": "declaration", "kind": 512, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/PollOption.ts", "line": 12, "character": 1 } ], "signatures": [ { "id": 1767, "name": "new PollOption", "variant": "signature", "kind": 16384, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/PollOption.ts", "line": 12, "character": 1 } ], "parameters": [ { "id": 1768, "name": "client", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" } }, { "id": 1769, "name": "data", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "reference", "target": 1765, "name": "PollOption", "package": "tgkit", "qualifiedName": "default" }, "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } } ], "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } }, { "id": 1772, "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": 1770, "name": "text", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Option text" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/PollOption.ts", "line": 7, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 1771, "name": "voterCount", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Number of users that voted for this option" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/PollOption.ts", "line": 10, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } } ], "groups": [ { "title": "Constructors", "children": [ 1766 ] }, { "title": "Properties", "children": [ 1772, 1770, 1771 ] } ], "sources": [ { "fileName": "packages/tgkit/src/structures/PollOption.ts", "line": 5, "character": 21 } ], "extendedTypes": [ { "type": "reference", "target": { "sourceFileName": "packages/tgkit/src/structures/Base.ts", "qualifiedName": "default" }, "name": "default", "package": "tgkit" } ] }