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

Scheduled Messages still send after deletion #107

@chortis

Description

@chortis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions