2Chat icon

2Chat

Sends data to 2Chat

Message → Send a Message to a WhatsApp Group

AI-generated

Summary

Send a message from a connected 2Chat WhatsApp number to a selected WhatsApp group. The operation can include text, a media URL, and pin location data in the request.

Inputs

  • WhatsApp Number Name or ID (required) — Select the connected WhatsApp number to send from; the group list depends on this number.
  • WhatsApp Group Name or ID (required) — Select the group to receive the message. The group options include “All Groups,” which sends to all available groups.
  • Message Text (required) — Text to include in the message. At runtime, text, URL, or pin location must be provided; if a pin location is present, the text is cleared from the request.
  • URL — Optional URL of a media file to attach.
  • Pin Location — Optional location object with address, latitude, longitude, name, and URL fields.

Output shape

A list of JSON items returned by the 2Chat send-message API.

The operation makes a POST request to the WhatsApp send-message endpoint. Errors are raised when neither text, URL, nor pin location is provided, or when neither a group UUID nor a recipient number is set.

Links

Discussion