Closed sc0ch closed 1 year ago
This the the correct and intended behaviour. Why are you sharing this?
Because i'm can't enter to other conversation after any update in that. What is the right way to do this?
You generally should not call enter
when you're already inside a conversation. There's no point to that, because enter
makes you enter a conversation when you're not inside one.
If you want to jump from one conversation to another, use regular JS function calls: https://grammy.dev/plugins/conversations.html#functions-and-recursion
Feel free to reopen if you have further questions.
Conversation function:
async function (conversation, ctx) { console.log(ctx.conversation, 'first update') // Ask the user for their home address. await ctx.reply("Could you state your home address?");
}
Console.log data: [ First message to bot] ConversationControls { enter: [AsyncFunction (anonymous)],
} } first update ... [ Second message to bot] undefined first update undefined second update .. [ Third message to bot] undefined first update undefined second update undefined third update
@grammyjs/conversations@1.1.1