Answer the question
In order to leave comments, you need to log in
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:
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()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question