title: ktor client post multipart/form-data
body: <p>How can I post file as multipart/form-data use ktor client? I want to use it for telegram bot API &quot;send document&quot;.
  I need to achieve the same result as the curl command</p>
  <pre><code>curl -F document=@&quot;path/to/some.file&quot; https://api.telegram.org/bot&lt;token&gt;/sendDocument?chat_id=&lt;chat_id&gt;
  </code></pre>