I have a google script that sends out messages from google script directly into slack. I have an issue whereby I cannot delete the messages sent into slack channels by the bot I made. Is it possible for us to delete the message sent out by such actions? I contacted slack support but not really helpful told me to look at https://api.slack.com/web or https://api.slack.com/methods/chat.delete
Is there any way where we as non-owner or admin for the slack server be able to create a delete action via the bot we coded from google script to allow a delete button for specific message sent out by the bot?
I'm using a webhook that sends into specific channels for my task and my codes ends with something like this below:
var options = {
"method": "post",
"contentType": "application/json",
"payload": JSON.stringify(payload)
};
return UrlFetchApp.fetch(url,options);
}