createConversation
ref / conversations / createConversation
Takes a conversation builder function, and turns it into grammY middleware which can be installed on your bot. Check out the documentation to learn more about how conversation builder functions can be created.
Type Parameters
C
C extends Context
Parameters
builder
builder: ConversationFn<C>
Conversation builder function
config
config: string | ConversationConfig
Identifier of the conversation or configuration object
Return Type
Middleware to be installed on the bot