GramIO API Reference / @gramio/contexts/dist / Checklist
Class: Checklist
Defined in: contexts/index.d.ts:1596
Describes a checklist.
Constructors
Constructor
new Checklist(
payload):Checklist
Defined in: contexts/index.d.ts:1598
Parameters
| Parameter | Type |
|---|---|
payload | TelegramChecklist |
Returns
Checklist
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramChecklist | contexts/index.d.ts:1597 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:1599
Returns
string
othersCanAddTasks
Get Signature
get othersCanAddTasks():
true
Defined in: contexts/index.d.ts:1615
Optional. True, if users other than the creator of the list can add tasks to the list
Returns
true
othersCanMarkTasksAsDone
Get Signature
get othersCanMarkTasksAsDone():
true
Defined in: contexts/index.d.ts:1619
Optional. True, if users other than the creator of the list can mark tasks as done or not done
Returns
true
tasks
Get Signature
get tasks():
ChecklistTask[]
Defined in: contexts/index.d.ts:1611
List of tasks in the checklist
Returns
title
Get Signature
get title():
string
Defined in: contexts/index.d.ts:1603
Title of the checklist
Returns
string
titleEntities
Get Signature
get titleEntities():
MessageEntity[]
Defined in: contexts/index.d.ts:1607
Optional. Special entities that appear in the checklist title