grammyjs / conversations

Conversational interfaces for grammY.
https://grammy.dev/plugins/conversations
MIT License
53 stars 17 forks source link

feat: Freeze old sessions #12

Closed KnorpelSenf closed 2 years ago

KnorpelSenf commented 2 years ago

We cannot alter history, so session data of previous context objects should be saved as soon as the next wait call is reached. Object.freeze needs to be applied recursively on ctx.session.