10

I am interested in writing a Slack bot that will periodically send "ephemeral" messages to users. Ephemeral messages are messages that appear within a channel, but can only be seen by a particular user, like the responses to bot "slash commands" (e.g. "/who").

The goals here, however, are to have ephemeral messages sent periodically by the bot and:

  1. appear within the channel message stream (i.e. not in a DM/private message), and
  2. not in response to any slash command.

How do I use the APIs to create ephemeral messages like this?

internet user
  • 103
  • 1
  • 5

1 Answers1

7

Sending private messages with the "Only visible to you" tag is called "ephemeral" and seems to now be possible through the Slack API.

https://api.slack.com/methods/chat.postEphemeral

(I'm not sure since when, and why it still says "Mid Term" on their roadmap)

Pangolin
  • 7,284
  • 8
  • 53
  • 67
  • The Trello card has since been updated and was moved from "Mid Term" to "Released" on Nov 3, 2017 – netweb Jan 02 '18 at 14:05