Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { WebClient } from '@slack/client'
postMessage(teamData: TeamData, channel: string, text: string): Promise<any> {
const web = new WebClient(teamData.bot.bot_access_token);
return web.chat.postMessage({
channel: channel.substring(2, channel.length-1),
text: text
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment