示例#1
0
func (c *AbstractSlackCommand) SendPostMessage(channelId string, message string, params slack.PostMessageParameters) error {
	params.AsUser = true

	_, _, err := c.SlackService.Rtm.Client.PostMessage(channelId, message, params)
	return err
}