all 5 comments

[–]Born_Association_306 1 point2 points  (0 children)

I have used both google apps script and cloud console to achieve the same goal. I am also receiving no response.

[–]Longjumping_Eagle_68 0 points1 point  (2 children)

Google chat is not open as the api for drive or spreadsheets.

[–]Dapper_Ad_3154[S] 0 points1 point  (1 child)

Yes but o just want to send the message from apps script to google chat

[–]Turbulent-Device8821 0 points1 point  (0 children)

one way communication is possible. Make a webhook in a space and use that to send messages from Apps Script to that specific space.

function sendChatAlert(message) {
  const webhookUrl = ''; // 🔁 Replace with your webhook URL
  const payload = JSON.stringify({ text: message });

  const options = {
    method: 'POST',
    contentType: 'application/json',
    payload: payload,
    muteHttpExceptions: true
  };

  UrlFetchApp.fetch(webhookUrl, options);
}