title: How to Send a document via Telegram Bot API
body: <p>I wanted to send a Document via Telegram bot API and my document is stored locally. I tried:</p>
  <pre><code>https://api.telegram.org/botToken/sendDocument?chat_id=-5278798&amp;document=C:\Users\Administrator\Desktop\file.txt
  </code></pre>
  <p>But I got Error...</p>
  <blockquote>
  <p><code>Bad Request: failed to get HTTP URL content</code></p>
  </blockquote>
  <p>This method only works in remote URLs, how to send documents via bot API?</p>