Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a session mechanism. #291

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ArtdSky
Copy link

@ArtdSky ArtdSky commented Jun 20, 2023

Added a session mechanism. Session data is kept only in memory

@vjgarciag96
Copy link
Member

vjgarciag96 commented Jul 9, 2023

Thanks for the contribution @ArtdSky! What's the use case for this API?

At a first glance I don't see why this should be part of the library rather than being just part of the specific bot app that requires this session mechanism.

@ArtdSky
Copy link
Author

ArtdSky commented Jul 9, 2023

hello @vjgarciag96! Use case in dialogs where you want to save the user's answers. In my opinion, it is convenient if the API has the ability to keep some information from the user. It was inspired by telegraf.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants