grammyjs/conversations

feat: `conversation.session`

mi3lix9 opened this issue · 1 comments

It would be easier to access session from conversation to get the latest session version.

For example if we have nested conversations:

function conv(conversation, session) { 
  const { a, b } = subConv(conversation,  session);
  ctx.session.a = a;
}

function subConv(conversation, session) {
  const data = ;// get data from database using ID or whatever 
  return data;
}

Please review #47.