Closed sergej-js closed 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: {}
Do you use perhaps use multi sessions? They are not supported at the moment - see #11, I'll try to fix this shortly.
multi sessions are now supported. Please provide the full reproduction code if you still have errors.
multi sessions are now supported. Please provide the full reproduction code if you still have errors.
multi sessions are now supported. Please provide the full reproduction code if you still have errors.
Sorry, I forgot to write bot.use(scenes)