title: How to get request from telegram api use tor?
body: <p>my country, telegrams are blocked, so I try to access it through a <strong>tor</strong>, the ip changes, and the connection to the telegram api does not occur.</p>
  
  <pre><code>import requests
  
  proxies = {
      'http': 'socks5://127.0.0.1:9150',
      'https': 'socks5://127.0.0.1:9150'
  }
  
  url = "https://api.telegram.org/"
  url_ip = "http://httpbin.org/ip"
  
  def get_updates_json(request):  
      response = requests.get(request, proxies=proxies, verify=False)
      return response
  
  print(get_updates_json(url_ip).text)
  print(get_updates_json(url).text)
  </code></pre>
  
  <p><strong>Output the following error message</strong></p>
  
  <blockquote>
    <p>SOCKSHTTPSConnectionPool(host='api.telegram.org', port=443): Max               retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL:     WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1051)')))</p>
  </blockquote>