Comments (4)
Datacenter class has property Datacenter.telethon_string_session
what you can do is you can
call this method for datacenter where session is stored, you can find this datacenter this way
tgdata.datacenters[tgdata.headers.currentDatacenterId-1]
the example code in main.py does not connect to telegram servers, all it does is just extract auth key from tgnet.dat file and property Datacenter.telethon_string_session just creates telethon session string that you can use in any way you want with telethon, if you need any other session format (pyrogram tdata etc) you can always convert to any this format using the auth key Datacenter.auth.authKeyPerm
from telegram_android_session_converter.
Can you tell me why when I connect to a session in this way (proxy is 100% valid), I can see my main IP address displaying the object of current authorization? This is the first connection after token extraction, besides I checked the session on the device and the proxy geolocation was set there.
TelegramClient(StringSession(valid_session.telethon_string_session), proxy=(socks.SOCKS5, proxy.ip, proxy.port, True, proxy.login, proxy.password))
from telegram_android_session_converter.
This issue is quite popular and related to Telethon but not to my converter, you can try fixing it by installing these libraries:
pip install async-timeout
pip install PySocks
pip install python-socks
You can find more about this issue here LonamiWebs/Telethon#1503
from telegram_android_session_converter.
Thank you, that really helped!
from telegram_android_session_converter.
Related Issues (9)
- Request from Telegram X HOT 3
- Account banned HOT 5
- How to switch to tdata. Do not use telethons HOT 3
- How to get session from Android source code? HOT 1
- Creating android session HOT 5
- How can I extract the account ID from an Android session and convert it to tdata? HOT 9
- Android Extract Session File HOT 11
- tgnet to tdata HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram_android_session_converter.