title: I can't send layout blocks using python slack API
body: <p>I used the latest <a href="https://api.slack.com/tools/block-kit-builder" rel="nofollow noreferrer">bot kit builder</a> by slack to generate the following buttons for my message attachment. The message is getting sent without any problem and but I don't see the attachment. I have been trying to figure this out and appreciate some help. My attachment is a list as required by slack api.</p>
  
  <pre><code>attachment_json = [
      {
          "type": "section",
          "text": {
              "type": "mrkdwn",
              "text": "Hello, Please select your environment"
          }
      },
      {
          "type": "actions",
          "elements": [
              {
                  "type": "button",
                  "text": {
                      "type": "plain_text",
                      "text": "production"
                  },
                  "value": "production"
              },
              {
                  "type": "button",
                  "text": {
                      "type": "plain_text",
                      "text": "staging"
                  },
                  "value": "staging"
              },
              {
                  "type": "button",
                  "text": {
                      "type": "plain_text",
                      "text": "demo"
                  },
                  "value": "demo"
              }
          ]
      }
  ]
  </code></pre>
  
  <p>I am using slackclient SDK to send the message. </p>
  
  <pre><code>  slack_client.api_call("chat.postMessage", channel="D4KU1DGUB", text='Hello World',
                            attachments=json.dumps(attachment_json))
  </code></pre>
  
  <p>Currently I am not seeing any buttons. Any help will be appreciated. Thank you.</p>
  
  <p>Even sending this attachment from the example is not working </p>
  
  <pre><code>{
      "text": "Would you like to play a game?",
      "attachments": [
          {
              "text": "Choose a game to play",
              "fallback": "You are unable to choose a game",
              "callback_id": "wopr_game",
              "color": "#3AA3E3",
              "attachment_type": "default",
              "actions": [
                  {
                      "name": "game",
                      "text": "Chess",
                      "type": "button",
                      "value": "chess"
                  },
                  {
                      "name": "game",
                      "text": "Falken's Maze",
                      "type": "button",
                      "value": "maze"
                  },
                  {
                      "name": "game",
                      "text": "Thermonuclear War",
                      "style": "danger",
                      "type": "button",
                      "value": "war",
                      "confirm": {
                          "title": "Are you sure?",
                          "text": "Wouldn't you prefer a good game of chess?",
                          "ok_text": "Yes",
                          "dismiss_text": "No"
                      }
                  }
              ]
          }
      ]
  }
  </code></pre>
  
  <p>This attachment is working for me </p>
  
  <pre><code>   attachment_json = [
      {
          "fallback": "Upgrade your Slack client to use messages like these.",
          "color": "#CC0000",
          "actions": [
              {
                  "type": "button",
                  "text": ":red_circle:   Complete Task: ",
                  "url": "https://roach.ngrok.io/workflow/",
              }
          ]
      }
      ]
  </code></pre>
  
  <p>But I am can't figure out why the first example is not working. </p>