title: Posting a file via curl to the telegram bot api
body: <p>I've tried the following:</p>
  
  <pre><code>curl -F name=document -F upload=@&lt;path_to_the_file&gt; \ 
       -H "Content-Type:multipart/form-data" \ 
       "https://api.telegram.org/bot&lt;token&gt;/sendDocument?chat_id=&lt;chat_id&gt;"
  </code></pre>
  
  <p>It returns <code>{"ok":false,"error_code":400,"description":"[Error]: Bad Request: there is no document in request"}</code></p>
  
  <p>What have I done wrong?</p>
  
  <p><a href="https://core.telegram.org/bots/api#senddocument" rel="noreferrer">Here</a> is some documentation on <code>sendDocument</code> method.</p>