v3.0.0-beta.1
Pre-release
Pre-release
Migration from Telegraf to grammY
This plugin now only works with grammY. For Telegraf support continue to use the v2 version and consider switching to grammY.
These are the changes for migrating to v3 and grammY needed for this library:
-const TelegrafStatelessQuestion = require('telegraf-stateless-question');
+import {StatelessQuestion} from '@grammyjs/stateless-question';
-const unicornQuestion = new TelegrafStatelessQuestion('unicorns', ctx => {
+const unicornQuestion = new StatelessQuestion('unicorns', ctx => {
console.log('User thinks unicorns are doing:', ctx.message)
})