Search

Send Message

Last Updated: Nov 4, 2020

Articles

Use this function to post a given message to the provided channel.

Syntax

Send Message (token, channel_id, text)

Parameters

Input Parameter Name Description
token Authentication token
channel_id ID of the channel to post the message
text The message to be posted

Returns

Return Value Description
Output
  • On Success: 1, Timestamp(ts) of message
  • On Failure: 0, Error Message

Sample

Send Message (ABCDE, NC-45, Hello)

  • Uses the token ‘ABCDCEF’ to authenticate the connection to the Slack application, send the message ‘Hello’ to the channel with ID ‘NC-45’.
    Returns the ‘Timestamp’ of the sent message.

To view all the Slack functions, click here.

Did you find what you were looking for?