0

I like to send a message using Google chat webhook api. Is there a way to add a link, but the message does not generate link preview along with it. I can use cards which does not generate. But it looks like a unnecessary effort.

If you manually add a message in chat, you can remove the preview card. I like to do the same with API.

Muhammad Dyas Yaskur
  • 6,914
  • 10
  • 48
  • 73
Vinod Gubbala
  • 676
  • 6
  • 16

1 Answers1

1

For plain text links, there is no way to remove the preview card yet.

as Google stated in their docs

Plain-text body of the message. The first link to an image, video, or web page generates a preview chip. You can also @mention a Google Chat user, or everyone in the space.

But the workaround is to use alternate link text. As stated in their docs to create alternate link, we need just use syntax <https://example.com|example.com>. It also recommended by google itself in this issue

but its might workaround doesn't work recently. There is an issue regarding that. You can upvote(+1) the issue to make google team prioritized that.

Muhammad Dyas Yaskur
  • 6,914
  • 10
  • 48
  • 73