Skip to content

v3.0.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@EdJoPaTo EdJoPaTo released this 16 Sep 08:18
· 61 commits to main since this 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)
 })

Significant commits

  • feat: migrate to grammY 1ee32fd
  • refactor: simplify migration to grammY 75c9418
  • refactor!: rename class and remove default export 33b98ef

v2.0.1...v3.0.0-beta.1