IlyaSemenov / grammy-scenes

Nested named scenes for grammY
MIT License
27 stars 0 forks source link

.wait() not work #12

Closed sergej-js closed 1 year ago

sergej-js commented 1 year ago

image image image

IlyaSemenov commented 1 year ago

I added this test to https://github.com/IlyaSemenov/grammy-scenes/blob/a3b637e8ea36b37ccb8c6594cd2fb4cfda72cfce/tests/readme-example.test.ts and it works:

❯ yarn dev tests/readme-example.test.ts
yarn run v1.22.19
$ NODE_OPTIONS='-r dotenv/config' nodemon --exec esr tests/readme-example.test.ts
[nodemon] 2.0.15
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: ts,json
[nodemon] starting `esr tests/readme-example.test.ts`
Bot @xxx_test_robot started.
Entering main scene...
Saving session: {"scenes":{"stack":[{"scene":"main","pos":3}]}}
Saving session: {"scenes":{"stack":[{"scene":"main","pos":3}]}}
Saving session: {}
image

Do you use perhaps use multi sessions? They are not supported at the moment - see #11, I'll try to fix this shortly.

IlyaSemenov commented 1 year ago

multi sessions are now supported. Please provide the full reproduction code if you still have errors.

sergej-js commented 1 year ago

multi sessions are now supported. Please provide the full reproduction code if you still have errors.

image

sergej-js commented 1 year ago

multi sessions are now supported. Please provide the full reproduction code if you still have errors.

image

Sorry, I forgot to write bot.use(scenes)