grammyjs/conversations

Old session data is read by dynamic menu if set before during the conversation

daniharo opened this issue ยท 4 comments

When setting ctx.session.something inside a conversation before sending a dynamic menu, the dynamic menu will see an old value of the session.

Try this CodeSandbox:
Edit grammy-conversations-session-issue

Button is "-", when it should be "Hi".

This could be a duplicate of #13. Could you check if the workaround mentioned in https://t.me/grammyjs/60178 resolves the issue?

Just updated the sandbox with that workaround, same result.

Can you check if #15 fixes the problem?

Yes!!! Bye grammyjs/router :P