bigfunctions > send_google_chat_message
send_google_chat_messageΒΆ
Signature
send_google_chat_message(message, webhook_url)
Description
Sends message
to google chat space
using incoming webhook.
To get the incoming
webhook_url
:
- In a web browser, open Google Chat.
- Go to the space to which you want to add a webhook.
- At the top, next to space title, click Down Arrow arrow_drop_down > Apps & integrations.
- Click Manage webhooks.
- If this space already has other webhooks, click Add another. Otherwise, skip this step.
- For Name, enter "Quickstart Webhook".
- For Avatar URL, enter https://developers.google.com/chat/images/chat-product-icon.png.
- Click SAVE.
- To copy the full webhook URL, click Copy.
Examples
select bigfunctions.eu.send_google_chat_message("Hello π from bigfunctions!", "YOUR_WEBHOOK_URL")
select bigfunctions.us.send_google_chat_message("Hello π from bigfunctions!", "YOUR_WEBHOOK_URL")
select bigfunctions.europe_west1.send_google_chat_message("Hello π from bigfunctions!", "YOUR_WEBHOOK_URL")
+--------------------------------------------------------------------------------------------------+
| response |
+--------------------------------------------------------------------------------------------------+
| {
"name": ...,
"sender": ...,
"createTime": ...,
"text": "Hello π from bigfunctions!"
}
|
+--------------------------------------------------------------------------------------------------+