Auth data is located in /home/runner/.local/share/@mtproto/core, but the app keeps signing out. Means, after some time it sends new code to Telegram and if I input it in the code and restart the server, then only it works.
Is there a way how it doesn't ask for login again after specific time?
Auth data is located in /home/runner/.local/share/@mtproto/core, but the app keeps signing out. Means, after some time it sends new code to Telegram and if I input it in the code and restart the server, then only it works.
Is there a way how it doesn't ask for login again after specific time?
My code:
lib.js: