How to use proxies #104
Closed
RobertAzovski
started this conversation in
General
Replies: 1 comment 2 replies
-
I fixed the problem.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is correct way to obtain TelegramClient instance from TDATA but to be sure it uses proxies when connecting to an account ? Because now after several days of usage I still see that my proxy traffic wasnot decreased and the same 0.77 GB, (after several days of usage Opentele !). So I suspect that there is a some bug or some another problem. May be because it is rotating proxy ? The proxy has where it is host it is not common ip address but HOST name like a string. Does Opentele/Telethon sopport such proxies ?
Example one. This is how I use Opentele now.
client = await tdesk.ToTelethon(session=None, flag=UseCurrentSession, proxy=proxy)
Example two. Never tried this way:
client = await TelegramClient.FromTDesktop(tdesk, session=None, flag=UseCurrentSession, proxy=proxy)
What do I do wrong ?
Beta Was this translation helpful? Give feedback.
All reactions