grammyjs / conversations

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

conversation.waitFor() throwing TypeError (reading 'filterQuery') #33

Closed sartoshi-foot-dao closed 2 years ago

sartoshi-foot-dao commented 2 years ago

Reproduction

Package version: 1.0.2

  1. Setup conversation boilerplate as per https://grammy.dev/plugins/conversations.html#installing-and-entering-a-conversation
  2. Inside conversation function definition: await conversation.waitFor("message:text")
  3. Trigger conversation.

throws error:

TypeError: Cannot read properties of undefined (reading 'filterQuery') at ConversationHandle.waitFor

Thank again for your support.

sartoshi-foot-dao commented 2 years ago

Upgrading grammy to 1.10.1 fixed the issue.