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

Can the session expiration time be set? #65

Open
TNT-ma opened this issue Apr 6, 2024 · 1 comment
Open

Can the session expiration time be set? #65

TNT-ma opened this issue Apr 6, 2024 · 1 comment

Comments

@TNT-ma
Copy link

TNT-ma commented Apr 6, 2024

After verifying the authorization, I found that I need to revalidate the code verification permissions the next day

Can the expiration time be set in the files saved during the session? For example, the number of valid days: 30 days or 365 days, permanently valid, etc

@celestix
Copy link
Owner

celestix commented Apr 6, 2024

You can't set the auth expiration time like this, neither does telegram automatically log-out your account on per day basis like that. I suspect that you're not using persistent session storage for your program.

Check this out for implementing a persistent session store with gotgproto:

This will create a my_session.session file which will contain your persistent credentials.

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

No branches or pull requests

2 participants