#!/bin/bash

TIMESTAMP=$(date +%s.%6N -d "$3 minutes ago")

curl -X GET -H "Authorization: Bearer $1" -H "Content-Type: application/json" "https://slack.com/api/conversations.history?channel=$2&oldest=$TIMESTAMP&pretty=1" > /tmp/slack.json
