title: How to send message in discord channel by it's api
body: <p>I am trying to send a message in my channel. As I have read, I need to pass the message as the content parameter in the post request. Here is the short python code for that</p>
  
  <pre><code>import requests
  
  URL = "https://discordapp.com/api/webhooks/super/secret
  
  r = requests.get(URL,data={"content":"123"},headers={"Content-Type":"application/json"})
  
  print(r.text)
  </code></pre>
  
  <p>But it gives me a response:</p>
  
  <pre><code>&lt;a href=//www.google.com/&gt;&lt;span id=logo aria-label=Google&gt;&lt;/span&gt;&lt;/a&gt;
    &lt;p&gt;&lt;b&gt;400.&lt;/b&gt; &lt;ins&gt;That’s an error.&lt;/ins&gt;
    &lt;p&gt;Your client has issued a malformed or illegal request.  &lt;ins&gt;That’s all we know.&lt;/ins&gt;
  </code></pre>