Giter VIP home page Giter VIP logo

Comments (2)

EdJoPaTo avatar EdJoPaTo commented on June 19, 2024 1

the default of this library is to use ctx.session. In this case you are using ctx.scene.state. Have you configured that path so its used instead of ctx.session?

In Telegraf terms the state is only relevant for handling this one update, the session is relevant long term. I assume its the same for the scene stuff, but I never really used it. For more readable code it might be helpful to use these terms the same as telegraf. Just as something I noticed there. :)

from telegraf-session-local.

Cit1zeN4 avatar Cit1zeN4 commented on June 19, 2024 1

No, I used LocalSession with default configuration. I know that ctx.scene.state is less constant compared to ctx.session. I just wanted to use this to store temporary data if, for example, the bot reboots while working with it to continue working from the "checkpoint".
I think it's better to close this issue for awhile. I'll run a couple of tests and if I find anything, I'll re-open it. Maybe I just made a few logical mistakes and didn't notice them.
Thanks for your reply :)

from telegraf-session-local.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.