runParallelConversations
ref / conversations / runParallelConversations
Takes a conversation builder function and some state and runs all parallel instances of it until a conversation result was produced.
This is used internally to run a conversation, but bots typically don’t have to call this method.
Type Parameters
OC
ts
OC extends Context
C
ts
C extends Context
Parameters
builder
ts
builder: ConversationBuilder<OC, C>
A conversation builder function
base
ts
base: ContextBaseData
Context base data containing the incoming update
id
ts
id: string
The identifier of the conversation
data
ts
data: ConversationData
The state of execution of all parallel conversations
options
ts
options?: ResumeOptions<OC, C>
Additional configuration options