mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-08-24 03:40:54 +00:00
Update proxy docs and warn if python-socks is not installed
As suggested in #4505.
This commit is contained in:
@@ -22,7 +22,7 @@ def get_env(name, message, cast=str):
|
||||
session = os.environ.get('TG_SESSION', 'printer')
|
||||
api_id = get_env('TG_API_ID', 'Enter your API ID: ', int)
|
||||
api_hash = get_env('TG_API_HASH', 'Enter your API hash: ')
|
||||
proxy = None # https://github.com/Anorov/PySocks
|
||||
proxy = None # https://github.com/romis2012/python-socks
|
||||
|
||||
# Create and start the client so we can make requests (we don't here)
|
||||
client = TelegramClient(session, api_id, api_hash, proxy=proxy).start()
|
||||
|
||||
Reference in New Issue
Block a user