hangouts-chat

Interactive button doesn't work properly when using pub/sub

点点圈 提交于 2019-12-06 05:52:00
I'm writing a Hangouts Chat bot in C# that uses pub/sub so I can host the bot on our side of a firewall. Everything seems to work well except interactive buttons within cards. If I create a button with a specific action method name, the bot does receive the CARD_CLICKED message with the appropriate action method name. However, it doesn't seem like the card in the Hangouts Chat app knows a response was sent because the bot ends up getting the CARD_CLICKED message three times before the Hangouts Chat app finally says "Unable to contact Bot. Try again later". I've been using the Google.Apis

Google Hangouts Chat bot to send DMs via incoming webhook?

隐身守侯 提交于 2019-12-06 04:57:44
Is it possible to set up this simple bot , using an incoming webhook, but send the message as a DM (not a @mention) to specific user(s)? My guess is no. But then how could I achieve this? Right now, the message is just sent into the room in which the bot was added and I can't see anything on DMs in the messaging docs . You can currently achieve this very easily in Slack by setting up a so called bot user and using their chat.postMessage but I would like to do this in Google Hangouts Chat instead. from httplib2 import Http from json import dumps # # Hangouts Chat incoming webhook quickstart #