grammyjs / conversations

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

Can it be used with LazySessionFlavor? #3

Closed habdenscrimen closed 2 years ago

habdenscrimen commented 2 years ago

When I'm trying to create a custom context by extending both LazySessionFlavor and ConversationFlavor, I get an error:

Interface 'CustomContext' cannot simultaneously extend types 'LazySessionFlavor<BotSessionData>' and 'ConversationFlavor'.
  Named property 'session' of types 'LazySessionFlavor<BotSessionData>' and 'ConversationFlavor' are not identical.

Is it possible to use Conversations with LazySession?

KnorpelSenf commented 2 years ago

Not yet, but all plugins should support lazy sessions, so this one will, too.

habdenscrimen commented 2 years ago

Thanks!

KnorpelSenf commented 2 years ago

@habdenscrimen can you review #9?