purple-googlechat icon indicating copy to clipboard operation
purple-googlechat copied to clipboard

Wishlist: support for Cards and other multimedia

Open zyphlar opened this issue 3 years ago • 4 comments

There's a number of new embedded chat message types with Google Chat that would be great to render in some better way than just a blank message. Even if it's just a blurb saying what type of content was received so the user knows to check a first-party client.

Received via Pidgin:

(01:15:36 PM) 119072794152024104038: 

Received via chat.google.com:

Screenshot from 2021-07-14 13-23-32

zyphlar avatar Jul 14 '21 20:07 zyphlar

I don't think I've seen a card before (but I don't talk to any bots yet)

Is the Newrelic bot something I can add to generate these and see how they come through the event stream?

EionRobb avatar Jul 15 '21 07:07 EionRobb

I was pretty surprised how easy it was to set up a webhook in Google Chat. In a Room, click the Webhooks menu option, add, and copy the url to something that speaks webhook. Here's the template json payload I told newrelic's webhook integration to send: https://gitlab.com/-/snippets/2149901

Alternatively you can Add bots to a room just like inviting a user, if you have a favorite service like GitHub etc to connect to.

Don't worry too much about this item though, I dug into it tonight and got some headway in parsing message metadata. Solving the cert problem once and for all would be killer, pidgin is nearly unusable at times with the popups

zyphlar avatar Jul 15 '21 08:07 zyphlar

Hmm... I don't have any option to add a webhook, nor to add a bot. I'm thinking it's because I'm not signed in to a school/work account, per https://support.google.com/chat/answer/7655820

If you have a group chat that has a bot in it that you can invite me into, that would be helpful :)

EionRobb avatar Jul 15 '21 08:07 EionRobb

I'm happy to provide workspace testing channels for bots and webhooks if you're still looking to test this functionality.

ethosrot avatar Oct 16 '21 05:10 ethosrot