Code Monkey home page Code Monkey logo

Comments (4)

batreller avatar batreller commented on June 11, 2024 1

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.

folckol avatar folckol commented on June 11, 2024

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.

batreller avatar batreller commented on June 11, 2024

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.

folckol avatar folckol commented on June 11, 2024

Thank you, that really helped!

from telegram_android_session_converter.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.