title: Looking for approach to post long text to slack through python script
body: <p>I had written a code in python to fetch the huge set (80 lines) of data from DB, now I would like to post that data in slack through webhook. I tried posting the data directly,but its not working for me, so I decided to save the data in txt/.png file and post it in slack   </p>
  
  <p>I tried below code in python after saving my data in report.txt file, but its not helping me</p>
  
  <pre><code>headers = {
      'Content-type': 'application/json',
  }
  
  data = open('\\results\report.txt')
  
  response = requests.post('https://jjjjjjj.slack.com/services/mywebhook', headers=headers, data=data)
  </code></pre>
  
  <p>Please share me the Curl command which will fit in python script to post the attachment in slack or please suggest me any better approach to post more than 50 lines for data to slack</p>