-
Notifications
You must be signed in to change notification settings - Fork 29
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
I can't log in using a mobile session #13
Comments
You need to replace all original files in that directory with all files that AndroidTelePorter created for you, not just tgnet Just delete all folders from /data/data/org.telegram.web and copy new session files made with AndroidTelePorter to this folder |
I tested the file placement options: Added to /data/data/org.telegram.messenger option 1: I immediately added the “tgnet” folder (in “tgnet” I have 2 folders “files” (here is the “tgnet” file) and “shared_prefs (here is the “userconfing” file”) option 2: added only the "tgnet" and "userconfing" files option 3: added two folders "files" and "shared_prefs" with files inside, respectively Please tell me, did I get everything I needed from AndroidTelePorter? Thanks for the answer. |
Option 3 is the one you need, have you tried it? Does it not work? Did you close Telegram before replacing files? |
In that case I would suggest you making sure that session you are trying to use is valid |
Is there any way to ADD session? / Create multiple-session config with AndroidTelePorter |
Do you mean a few sessions? Like when you open Telegram and there are a few sessions? Yes you can just look at how Telegram stores them and do the same thing, but there is no built-in function that will do that for you If you read main.py in this repository there will be documentation on how sessions are stored in Telegram. You can just locate sessions this way and it should work, I might think about adding this feature in future though |
I think it is more complicated. You can store multiple accounts in telegram desktop as well but nobody had written software to create "tdata" with multiple accounts afaik, It's sad |
As you can see in main.py and 4 locations of userconfing.xml file: These are locations you will have if you have 3 accounts. /data/data/org.telegram.messenger.web/files/tgnet.dat and /data/data/org.telegram.messenger.web/shared_prefs/userconfing.xml are files of session that will be started when you open Telegram app, all other sessions (account1, account2, account3) are used when you switch to another session and they probable replace org.telegram.messenger.web/files/tgnet.dat and /data/data/org.telegram.messenger.web/shared_prefs/userconfing.xml the moment you switch between sessions, but I have not manually tried this but I am almost sure there is nothing else needed apart from these files About tdata - you can create many sessions with opentele and that's exactly how AndroidTelePorter converts mobile session to tdata |
do i need to create API_ID and API_Hash if I need to use .session file with telethon? |
You can just use official ones Or you can create yours |
Can you provide me official id and hash. Or where can I find them? I tried but couldn't find anywhere. |
1 similar comment
Can you provide me official id and hash. Or where can I find them? I tried but couldn't find anywhere. |
Can you tell me please how to find official api_id and api_hash? |
Yes of course, you can find all of them in issue #20 |
Hello and thanks for your work!
In your code I added my variables: user id, dc id, auth key.
I received the file: tgnet.dat and then moved it to the Android emulator in the folder /data/data/org.telegram.messenger
But I didn’t get the authorization in telegram, tell me where the problem could be?
The text was updated successfully, but these errors were encountered: