Comments (2)
I am not familiar with the scenes of telegraf but the session of telegraf (which is deprecated) and this library are doing basically the same on the bot side of things. Just the location of the data is different (basically memory vs disk).
The reason for the deprecation of the session are race conditions. This library also has them so if you are avoiding the telegraf builtin session for the reason of its deprecation you should also avoid this library.
Check for more details on this deprecation in telegraf/telegraf#1372.
Personally I still use this library and the built in session. You just have to know its limits.
from telegraf-session-local.
Thanks for help @EdJoPaTo 👍
Closing now as stale, but if someone wanna ask more - feel free to do so.
from telegraf-session-local.
Related Issues (20)
- created session value is missing on the "poll_answer" ctx HOT 1
- Problem with types HOT 8
- can't find module telegraf-session HOT 2
- Typo in the full example HOT 5
- Session with AWS Lambdas does not persist state when it is set after an async operation. HOT 7
- issue with nodemon HOT 2
- Is it possible to change a user session? HOT 2
- session doesn't save to file with latest telegraf version > 4.8 HOT 2
- Is it possible to set an expiration time to a session? HOT 3
- telegraf-session-local kills my server when i am trying to connect session middleware HOT 4
- How many concurrent users this library can handle? HOT 3
- Session not cleared after async task
- Cannot find module './lodash-id.js HOT 2
- Save a session on bot start? HOT 3
- Session doesn't updated in 2nd middleware in row HOT 2
- Typescript typings
- Error with Session version 1.0.3 with telegraf-js v 3.38 HOT 1
- Property 'session' does not exist on type 'TelegrafContext' HOT 2
- Not all data is saved in a local file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegraf-session-local.