I
I
Ilkhomjon Matazimov2020-08-14 12:41:12
Python
Ilkhomjon Matazimov, 2020-08-14 12:41:12

Why, when I log in to Telegram via telethon using a proxy, does my IP get scorched?

I use the telethon library to interact with the Telegram API.
For authorization, I use the code from the documentation , but when Telegram itself reports a new authorization, it gives out not a proxy IP, but mine:

5f365afca89f3305516183.jpeg

My code:

from telethon import TelegramClient
import socks

phone = '+7..........'
api_id = 1234567
api_hash = 'abcdefd'
session = phone

client = TelegramClient(session, api_id, api_hash, proxy=(
    socks.SOCKS5, '123.45.678.910', '1080', True, 'username', 'password'
))
client.start()


Outcome:
Am I logging in correctly? New proxy, purchased here (IPv4 China)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question