{"action":"created","issue":{"url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/525","repository_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot","labels_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/525/labels{/name}","comments_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/525/comments","events_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/525/events","html_url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/525","id":208718626,"number":525,"title":"How to set a proxy for this module?","user":{"login":"dev-techmoe","id":7919562,"avatar_url":"https://avatars0.githubusercontent.com/u/7919562?v=4","gravatar_id":"","url":"https://api.github.com/users/dev-techmoe","html_url":"https://github.com/dev-techmoe","followers_url":"https://api.github.com/users/dev-techmoe/followers","following_url":"https://api.github.com/users/dev-techmoe/following{/other_user}","gists_url":"https://api.github.com/users/dev-techmoe/gists{/gist_id}","starred_url":"https://api.github.com/users/dev-techmoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev-techmoe/subscriptions","organizations_url":"https://api.github.com/users/dev-techmoe/orgs","repos_url":"https://api.github.com/users/dev-techmoe/repos","events_url":"https://api.github.com/users/dev-techmoe/events{/privacy}","received_events_url":"https://api.github.com/users/dev-techmoe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-02-19T13:48:59Z","updated_at":"2018-03-10T07:37:01Z","closed_at":"2017-03-09T09:31:24Z","author_association":"NONE","body":"I live in China, it's too hard to connent to Telegram's API Server because of some reason that as we all know. Can you have some ways to set a proxy for this module? Thanks."},"comment":{"url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/comments/372010361","html_url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/525#issuecomment-372010361","issue_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/525","id":372010361,"user":{"login":"partyspy","id":5229368,"avatar_url":"https://avatars0.githubusercontent.com/u/5229368?v=4","gravatar_id":"","url":"https://api.github.com/users/partyspy","html_url":"https://github.com/partyspy","followers_url":"https://api.github.com/users/partyspy/followers","following_url":"https://api.github.com/users/partyspy/following{/other_user}","gists_url":"https://api.github.com/users/partyspy/gists{/gist_id}","starred_url":"https://api.github.com/users/partyspy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/partyspy/subscriptions","organizations_url":"https://api.github.com/users/partyspy/orgs","repos_url":"https://api.github.com/users/partyspy/repos","events_url":"https://api.github.com/users/partyspy/events{/privacy}","received_events_url":"https://api.github.com/users/partyspy/received_events","type":"User","site_admin":false},"created_at":"2018-03-10T07:37:01Z","updated_at":"2018-03-10T07:37:01Z","author_association":"NONE","body":"@mengyyy 's answer is good. Another way is setting the env variables like\r\n`export https_proxy=socks5://127.0.0.1:1080`\r\nAnd this telegram module will recognize it"}}
{"actor":{"display_login":"partyspy"}}