docs: function (i) {
        content.text = chunks[i];
        content.fallback = chunks[i];
  
        /*
          Based on the issue Support for "Button attachments" #151
          Inorder to accept the matteruser adapter message attachments changed the attachement json
        */
  
        attachment = {
          room: recipient,
          attachments: content.attachments ? content.attachments : content,
          // There is likely a bug here - `split_message.text` being a true-y
          // value does not imply that `split_message.pretext` is also non-empty,
          // but we unconditionally set `text` to
          // `pretext + split_message.pretext` on the first message
          text: i === 0 ? pretext + split_message.pretext : null
        };
        robot.emit('slack-attachment', attachment);
        if (chunks.length > ++i) {
          setTimeout(function(){ sendChunk(i); }, 300);
        }
      }