I am working on a bot to auto reply to posts in a channel, schedule a message to bump the thread in the future, and delete those scheduled replies if someone from a certain group does reply.
I have the messages scheduled, and the delete call working, but the messages are still sending.
Here is the response from scheduledMessages.list when someone from the group responds, before I cancel.
{
ok: true,
scheduled_messages: [{
id: 'MESSAGE_ID',
channel_id: 'CHANNEL_ID',
post_at: 1619723987,
date_created: 1619723857,
text: 'responding to thread'
}]
}
I keep track of the ID, and post it to the deleteScheduledMessage call and get this response:
{ok: true}
After the cancellation, getting the list again, it is removed:
{ok: true, scheduled_messages: []}
However, the scheduled message still sends. I have ran into another person who has encountered this issue and I believe it is a bug.
I am using an AWS lambda with a DynamoDB to track the messages, but I don't believe this is an issue on that side.