This commit is contained in:
Wizou 2023-03-24 16:57:54 +01:00
parent 2f3106fe69
commit b307534078
4 changed files with 164 additions and 65 deletions

3
FAQ.md
View file

@ -22,7 +22,8 @@ The WTelegram.session file contains the authentication keys negociated for the c
You could switch the current user via an `Auth_Logout` followed by a `LoginUserIfNeeded` but that would require the user to sign in with a verification_code each time.
Instead, if you want to deal with multiple users from the same machine, the recommended solution is to have a different session file for each user. This can be done by having your Config callback reply with a different filename (or folder) for "**session_pathname**" for each user.
Instead, if you want to deal with multiple users from the same machine, the recommended solution is to have a different session file for each user.
This can be done by having your Config callback reply with a different filename (or folder) for "**session_pathname**" for each user.
This way, you can keep separate session files (each with their authentication keys) for each user.
If you need to manage these user accounts in parallel, you can create multiple instances of WTelegram.Client,