create-gramstax 0.8.19 → 0.8.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,7 +32,7 @@ class Main {
|
|
|
32
32
|
const bi = Base.step1
|
|
33
33
|
const kb = Helper.kb(ctx, bi)
|
|
34
34
|
const da = {}
|
|
35
|
-
await ctx.
|
|
35
|
+
await ctx.setSessionFreeText({step: bi})
|
|
36
36
|
if (edit) {
|
|
37
37
|
await ctx.edit(kb, da, bi)
|
|
38
38
|
} else {
|
|
@@ -52,7 +52,7 @@ class Main {
|
|
|
52
52
|
const bi = Base.step2
|
|
53
53
|
const kb = Helper.kb(ctx, bi)
|
|
54
54
|
const da = {}
|
|
55
|
-
await ctx.
|
|
55
|
+
await ctx.setSessionFreeText({step: bi, left})
|
|
56
56
|
await ctx.reply(kb, da, bi)
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -76,10 +76,7 @@ export class SumNumberPage extends PageBase {
|
|
|
76
76
|
await Main.showStep1Form(this, false)
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
async
|
|
80
|
-
if (!this.isSessionFreeText()) {
|
|
81
|
-
return null
|
|
82
|
-
}
|
|
79
|
+
async handleSessionFreeText() {
|
|
83
80
|
const {step, left} = Helper.getSessionParams(this)
|
|
84
81
|
const input = this.msgText?.trim()
|
|
85
82
|
const value = input ? Number(input) : NaN
|