Skip to content

Releases: grammyjs/stateless-question

v4.0.0

24 May 10:20
005fc7e
Compare
Choose a tag to compare

This release only changes things under the hood. The usage and functionality stays the same.

  • perf(identifier): pregenerate formatting parts 1dbb743
  • refactor(grammy): use grammy/types export over types package 2292b80
  • build(node)!: use ES module 999ba3e
  • build(node)!: require Node.js 14 00f11cf

BREAKING CHANGES: requires ES modules and Node.js >= 14

v3.0.1

20 Oct 09:27
Compare
Choose a tag to compare
  • fix: use @grammyjs/types for internal typings 4e7712a

v3.0.0...v3.0.1

v3.0.0

23 Sep 13:25
Compare
Choose a tag to compare

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

v3.0.0-beta.1

16 Sep 08:18
Compare
Choose a tag to compare
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)
 })

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

v2.0.1

04 Apr 16:37
Compare
Choose a tag to compare
  • fix(additionalState): encode and decode correctly f048d29

v2.0.0...v2.0.1

v2.0.0

11 Jan 22:09
a0bc2c8
Compare
Choose a tag to compare

v1.0.0...v2.0.0

v1.0.0

04 Sep 11:49
1432184
Compare
Choose a tag to compare

BREAKING CHANGE: with the additional state the url was slighly changed. Messages from before the update can not be answered. Messages created after the update work just fine. (Which is the case most of the times as question messages are newly created. Still its a breaking change.)

BREAKING CHANGE: the class properties messageSuffixMarkdown (and for HTML / MarkdownV2) are now methods. This allows for the additional state if needed. bfd7575 14e0306

v0.1.1...v1.0.0

v0.1.1

25 Apr 05:57
5335d69
Compare
Choose a tag to compare
  • refactor: use new Telegraf Typings 9c75c26

v0.1.0...v0.1.1

v0.1.0

15 Apr 18:36
0e6356d
Compare
Choose a tag to compare

Initial release