title: python telebot got unexpected response
body: <p>I have been using my Telegram bot for sending me different notifications from my desktop computer using python's telebot library. Everything was working properly for quite a long time, but one day it stopped working.</p>
  <p>Here's the code (Python 2.7):</p>
  <pre><code>import telebot
  import socket
  
  TELEBOT_TOKEN = '&lt;token&gt;'
  CHAT_ID = &lt;chat id&gt;
  
  bot = telebot.TeleBot(TELEBOT_TOKEN)
  
  def notify(message):
      bot.send_message(CHAT_ID, 'Notification from ' + socket.gethostname() + ':\n' + message)
  
  notify('Hello world!')
  </code></pre>
  <p>When I try doing this in the interpreter, I get this:</p>
  <pre><code>Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
  [GCC 5.4.0 20160609] on linux2
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import telebot
  &gt;&gt;&gt; TELEBOT_TOKEN = '&lt;token&gt;'
  &gt;&gt;&gt; CHAT_ID = &lt;chat id&gt;
  &gt;&gt;&gt; bot = telebot.TeleBot(TELEBOT_TOKEN)
  &gt;&gt;&gt; bot.send_message(CHAT_ID, 'Hello world!')
  {'ok': False, 'error': 'Got unexpected response. (404) - {&quot;ok&quot;:false,&quot;error_code&quot;:404,&quot;description&quot;:&quot;Not Found&quot;}'}
  </code></pre>
  <p>Seems that I will get this error on any request</p>
  <pre><code>&gt;&gt;&gt; bot.get_me()
  {'ok': False, 'error': 'Got unexpected response. (404) - {&quot;ok&quot;:false,&quot;error_code&quot;:404,&quot;description&quot;:&quot;Not Found&quot;}'}
  </code></pre>
  <p>I also tried using direct HTTPS Telegram bot API in the browser - typed this</p>
  <pre><code>https://api.telegram.org/bot&lt;token&gt;/sendMessage?chat_id=&lt;chat id&gt;&amp;text=Test
  </code></pre>
  <p>in the address line and it did the thing!</p>
  <p>It also works with Python's requests library</p>
  <pre><code>&gt;&gt;&gt; import requests
  &gt;&gt;&gt; res = requests.get('https://api.telegram.org/bot&lt;token&gt;/sendMessage?chat_id=&lt;chat id&gt;&amp;text=Test')
  </code></pre>
  <p>And finally, it works with the <em>very same</em> code on my two servers (VDS) without any troubles.</p>
  <p>I recently installed scapy, if it has anything to do with this (maybe it caused the problem?)</p>
  <p><strong>EDIT:</strong> uninstalling scapy didn't help.</p>
  <p>I tried rebooting the computer, and the router, but nothing changed.</p>
  <p>What can be wrong with my computer?</p>