title: How i can add attachment to discord requests?
body: <p>I'm trying to make python script that sending discord message + attachment but I don't know how to do it. Also i need to send the message from my discord account and not from a bot / webhook. This is my code so far:</p>
  <pre class="lang-py prettyprint-override"><code>payload = {
      'content': &quot;Hello&quot; 
  }
  
  header = {
      'authorization': &quot;token&quot;
  }
  
  r = requests.post(&quot;https://discord.com/api/v9/channels/874777490781003787/messages?limit=50&quot;, data=payload, headers=header)
  </code></pre>