Bulk post messages to google chat spaces
This post shows an open source java client application which can bulk post messages to google chat spaces and individuals
Summary
Note that following configuration can be done only for a Google admin workspace account. Since the configuration is not possible for a normal gmail account, this application cannot be used for to post messages to spaces in a normal gmail account.
This application use incoming webhooks to send messages to google chat spaces
https://developers.google.com/chat/how-tos/webhooks

Prerequisites to setup development environment
- java 19 openjdk
- maven 3.8
How to run from intellij
- Import the project in Intellij
- Update
/conf/space_to_webhook.properties with space name and bot url. Follow the below steps to create the bot url for each space. - Click on the Manage Webhook menu.

- Fill the name(Sender name) and image url(whatever image url).

- Copy the bot url in this window.

- Click on the Manage Webhook menu.
- Run the App class to run the project.
How to run the project from jar
- Update the space_to_webhook.properties as specified above
- run mvn clean package from project root
- go to the target folder
- run project with
java -jar jclass-post-message-1.0.0.jar
Run from release
- Download the binaries from release section https://github.com/laki88/gchat-post-message/releases/tag/v1.0.0
- Extract and update the chatpost\conf\space_to_webhook.properties as specified above
- For windows run the run.bat. For Linux and Mac run the run.sh
When the application run window like below will appear and you need to select spaces, type the message and click the send button.

message should arrive like below
