Skip to content

GramIO API Reference / @gramio/contexts/dist / Checklist

Class: Checklist ​

Defined in: contexts/index.d.ts:1784

Describes a checklist.

Documentation

Constructors ​

Constructor ​

new Checklist(payload): Checklist

Defined in: contexts/index.d.ts:1786

Parameters ​

ParameterType
payloadTelegramChecklist

Returns ​

Checklist

Properties ​

PropertyTypeDefined in
payloadTelegramChecklistcontexts/index.d.ts:1785

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

Defined in: contexts/index.d.ts:1787

Returns ​

string


othersCanAddTasks ​

Get Signature ​

get othersCanAddTasks(): true

Defined in: contexts/index.d.ts:1803

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:1807

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:1799

List of tasks in the checklist

Returns ​

ChecklistTask[]


title ​

Get Signature ​

get title(): string

Defined in: contexts/index.d.ts:1791

Title of the checklist

Returns ​

string


titleEntities ​

Get Signature ​

get titleEntities(): MessageEntity[]

Defined in: contexts/index.d.ts:1795

Optional. Special entities that appear in the checklist title

Returns ​

MessageEntity[]