Skip to main content
Defined in: flows/FlowBuilder.ts:149 Options of .choose(prompt, options, stateKey, opts).

Extends

Properties

timeout?

Defined in: core/types.ts:497

Inherited from

WaitOptions.timeout

validate?

Defined in: core/types.ts:498

Parameters

Returns

string | true | Promise<string | true>

Inherited from

WaitOptions.validate

maxAttempts?

Defined in: core/types.ts:504 Total answers the wait accepts, the first one included, before the conversation ends with the “too many attempts” message (RetriesExceeded). Invalid answers and c.retry() calls count. Default 3; Infinity = unlimited.

Inherited from

WaitOptions.maxAttempts

retries?

Defined in: core/types.ts:512 Retries AFTER the first answer: retries: N is maxAttempts: N + 1. Pass one of the two. Breaking in 2.0: during the alphas retries: N meant N total attempts; use maxAttempts: N to keep that behaviour. A wait that sets retries without maxAttempts logs one warning per bot (logger.warn) to flag the change.

Inherited from

WaitOptions.retries

otherwise?

Defined in: core/types.ts:513

Inherited from

WaitOptions.otherwise

filter?

Defined in: core/types.ts:514

Parameters

Returns

boolean

Inherited from

WaitOptions.filter

delay?

Defined in: flows/FlowBuilder.ts:149