-
Notifications
You must be signed in to change notification settings - Fork 41
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
QUESTION: Session problems #71
Comments
Even when i pass in a string of a session it still tries to send a code and get a code from me. Additionally it creates the session storage files. you see i need to store the session in the mongodb and how do i properly extract it so that when i create a new client next time the server restarts it wont ask me the code that comes to telegram. GoTGProto currently doesn't support storing session in MongoDB, but you can add it yourself if you want. You can even make a PR to contribute it for everyone :) |
The question is why can i use the string session extracted by client.ExportStringSession() in the format like here Session: sessionMaker.StringSession() and just save the string however i want |
What do you mean? Please rephrase your question. |
Yeah, you need to use your exported string session as an argument to StringSession function |
That's strange 🤔 I will check and get back to you. |
Thank you very much, keep me updated once you check |
Any updates? |
Please be patient. I am trying to arrange a telegram account for testing it. |
Just a quick follow up does the string session work? |
Hi @XT3RM1NATOR, I tried exporting a string session and using it to start the client and it worked completely fine. I think you're doing something wrong at your end, can you show the code you're using to do it? |
Even when i pass in a string of a session it still tries to send a code and get a code from me. Additionally it creates the session storage files. you see i need to store the session in the mongodb and how do i properly extract it so that when i create a new client next time the server restarts it wont ask me the code that comes to telegram.
P.S i extract the session with client.ExportStringSession() maybe there is a better way
The text was updated successfully, but these errors were encountered: