Skip to main content

MTProxy FakeTLS Support For Telethon !

Project description

⭐️Thanks everyone who has starred the project, it means a lot!

TelethonFakeTLS adds support MTProxyFakeTLS Proxy (EE-secrets) to Telethon! (yes finally !!!)

What is this?

After long wait for Telethon to add support for EE proxy, i tired up and started implementing it myself !

Installing

pip3 install TelethonFakeTLS

Creating a client

You can use a base64 secret or hex one,
But remember to
Remove “ee” from the starting of hex secret
And
Remove “7” from the starting of the base64 secret.
Example:
ee9b43b87555bf9464e02bdcd2db8932b07777772e736974652e636f6d -> 9b43b87555bf9464e02bdcd2db8932b07777772e736974652e636f6d
7gEBAQEBAQEBAQEBAQEBAQFsaWIuYXJ2YW5jbG91ZC5jb20= -> gEBAQEBAQEBAQEBAQEBAQFsaWIuYXJ2YW5jbG91ZC5jb20=
import telethon.sync
import TelethonFakeTLS

api_id = 1234567
api_hash = 'a1b2c3d4e5f6g7h8i9j9b8euryueusjj'

proxy = ('195.201.142.247', 443, 'gEBAQEBAQEBAQEBAQEBAQFsaWIuYXJ2YW5jbG91ZC5jb20=')

connection = TelethonFakeTLS.ConnectionTcpMTProxyFakeTLS
proxy = proxy

client = telethon.TelegramClient(
    session='test', api_id=api_id, api_hash=api_hash,
    connection=connection,
    proxy=proxy)

client.start()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TelethonFakeTLS-2022.4.4.16.15.26.43796.tar.gz (16.7 kB view details)

Uploaded Source

File details

Details for the file TelethonFakeTLS-2022.4.4.16.15.26.43796.tar.gz.

File metadata

File hashes

Hashes for TelethonFakeTLS-2022.4.4.16.15.26.43796.tar.gz
Algorithm Hash digest
SHA256 026b5826fd1334a9df444dfef21bb53e6e3add42be9fa8118d571fbf65514829
MD5 80bb311dc575562310f9f5aefcbbd017
BLAKE2b-256 a0a4452dac33d635be2f5332f347693401f8595bccda812196d38a7f39ed099b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page