Skip to content

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

Class: ChecklistTask

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

Describes a task in a checklist.

Documentation

Constructors

Constructor

new ChecklistTask(payload): ChecklistTask

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

Parameters

ParameterType
payloadTelegramChecklistTask

Returns

ChecklistTask

Properties

PropertyTypeDefined in
payloadTelegramChecklistTaskcontexts/index.d.ts:1482

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

Returns

string


completedByChat

Get Signature

get completedByChat(): Chat

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

Optional. Chat that completed the task; omitted if the task wasn't completed by a chat

Returns

Chat


completedByUser

Get Signature

get completedByUser(): User

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

Optional. User that completed the task; omitted if the task wasn't completed

Returns

User


completionDate

Get Signature

get completionDate(): Date

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

Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed

Returns

Date


id

Get Signature

get id(): number

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

Unique identifier of the task

Returns

number


text

Get Signature

get text(): string

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

Text of the task

Returns

string


textEntities

Get Signature

get textEntities(): MessageEntity[]

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

Optional. Special entities that appear in the task text

Returns

MessageEntity[]