1.1.7 • Published 5 years ago

dealmed-react-chat-slack v1.1.7

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

react-chat-slack

Build Status

DEMO

https://atamas1llya.github.io/react-chat-slack/

Usage

import ReactChatSlack from 'react-chat-slack';

class App extends Component {
  render() {
    return (
      <ReactChatSlack
        token="your_base64_encrypted_token_here"
        channel_id="slack_channel_id"
        username="user_name_to_display"
        title="Chat title"
        saveSession={true} // default is false
      />
    )
  }
}

Options

token: REQUIRED : BASE64 encoded API token for the bot. You can create one here.

channel_id: REQUIRED: Slack channel ID to send messages. To get channel ID visit https://my.slack.com/messages. For example, in url https://react-chat-slack.slack.com/messages/C8LM575GD/ channel ID is C8LM575GD

username: Bot display name.

title: Title of the chat tab.

saveSession: Save messages data between sessions.