django-telethon icon indicating copy to clipboard operation
django-telethon copied to clipboard

adding proxy logic

Open GrandNative opened this issue 11 months ago • 1 comments

hi Ali, I am Morteza, I came across this package for one of my projects, for some reason I could not use this package, however, I noticed that you did not consider any logic to use a proxy while Telethon provided this possibility. That's why I decided to add this logic, anyway, you know how difficult life is in Iran :) I tried to add this feature very simply and with the least number of lines. I have another way to do this, which is to use a database and consider a table for the proxy. If you like, we can talk more about this way. This is my first contribution to an open-source project, so if you see a problem in my work, please let me know. and my Telegram ID, in case you want to contact me: @M_grand

GrandNative avatar Mar 23 '24 18:03 GrandNative

Hi @GrandNative,

Thank you for your contribution and for suggesting proxy support! Your approach is appreciated, especially considering the challenges you've outlined. It's great to see new contributors bringing valuable features to the table.

I'm interested in hearing more about your database idea for proxy management. It sounds like it could provide a flexible solution for users. does each connection use its own proxy, is there a random selection process, or is it a global setting that can override per connection? WDYT?

For now, the solution you've proposed seems solid. Could you please ensure the README is updated to reflect how the proxy support works? This information will be crucial for users to understand how to utilize the feature based on their needs.

Looking forward to discussing your ideas further.

Best, Ali

ali-zahedi avatar Mar 28 '24 15:03 ali-zahedi