Search code examples
google-cloud-pubsubgoogle-hangouts

Hangouts Chat Pub/Sub Bot only receiving Mentions in Room


We are building our first bot for Hangouts Chat to support JIRA Server (https://github.com/seibert-media/hangouts-jira-bot) and I had to notice that Events in Google PubSub only get sent when the bot receives a direct message or get's mentioned in a room, but not for every room message. Is this intended behavior or are we doing something wrong.


Solution

  • This is the current intended behavior for Hangouts Chat. There is no way to have any sort of RTM socket, so everything in Hangouts Chat is currently event driven by @mentioning or dming a bot.