Slack v0.2.1 Slack.Chat View Source
Functions for handling channel messages
Link to this section Summary
Functions
Delete a chat message.
Send a "me message" to a channel.
Post a message to a channel.
Update a message in a channel.
Link to this section Functions
Link to this function
delete(client, body \\ [])
View Sourcedelete(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Delete a chat message.
https://api.slack.com/methods/chat.delete
Examples
Slack.client(token)
|> Slack.Chat.delete(channel: "C1234567890", ts: "1405894322.002768")
Link to this function
meMessage(client, body \\ [])
View SourcemeMessage(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Send a "me message" to a channel.
https://api.slack.com/methods/chat.meMessage
Examples
Slack.client(token)
|> Slack.Chat.meMessage(channel: "C1234567890", text: "Hello")
Link to this function
postMessage(client, body \\ [])
View SourcepostMessage(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Post a message to a channel.
https://api.slack.com/methods/chat.postMessage
Examples
Slack.client(token)
|> Slack.Chat.postMessage(channel: "C1234567890", text: "Hello")
Link to this function
update(client, body \\ [])
View Sourceupdate(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Update a message in a channel.
https://api.slack.com/methods/chat.update
Examples
Slack.client(token)
|> Slack.Chat.postMessage(
channel: "C1234567890", text: "Hello", ts: "1405894322.002768")