Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Scheduled Messages still send after deletion #107

Open
chortis opened this issue Jul 15, 2021 · 0 comments
Open

Scheduled Messages still send after deletion #107

chortis opened this issue Jul 15, 2021 · 0 comments

Comments

@chortis
Copy link

chortis commented Jul 15, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant