hangouts-chat

Simple Hangouts Chat client

Usage no npm install needed!

<script type="module">
  import hangoutsChat from 'https://cdn.skypack.dev/hangouts-chat';
</script>

README

hangouts-chat

Simple client for Google Hangouts Chat

Features

  • Send messages to an incoming webhook registered to a Hangouts Chat room

Installing

$ npm install hangouts-chat

Using

const IncomingWebHook = require('hangouts-chat').IncomingWebHook

const incomingWebHook = new IncomingWebHook('YOUR_WEB_HOOK_URL')

const messageObject = {text: 'hello'}

incomingWebHook.send(messageObject)

incomingWebHook.sendText('hello')

Docs

For messageObject reference object check Google documentation: