Replies: 6 comments
-
Are you talking about sessions? |
Beta Was this translation helpful? Give feedback.
-
Im not sure if some sort of a token is stored in a tg user session. Anything that would allow to identify the user and allow to make new requests. |
Beta Was this translation helpful? Give feedback.
-
Maybe I should clarify further what I am looking for. So there is an id, that will be associated with the user in question. However, I do not seem to find how to extract it and store. Nor do I see any way of using the code to recreate a client, associated with a particular user. So my question is if that's even possible with tdlight or maybe I could make it work with my own implementation of say TelegramInterface |
Beta Was this translation helpful? Give feedback.
-
With tdlight you should only worry about the directory in which you created the session. |
Beta Was this translation helpful? Give feedback.
-
But how do I initialize the client then? I can only specify in parameters the path go directory where a local sql db is initalized, but when I try to pass the same path, it throws an exception, that I cannot initialize a client with the same path to a local directory |
Beta Was this translation helpful? Give feedback.
-
Please provide some code, I can't understand what you are trying to say |
Beta Was this translation helpful? Give feedback.
-
I was wondering if it is possible to preserve client somewhere else besides the heap?
Maybe I can somehow restore a client by client id. Or maybe I can somehow obtain a token for the app user.
The context is the multi user social media hub? so basically I would want to have several users stored in the db one way or the other
Beta Was this translation helpful? Give feedback.
All reactions