How to send a text message to a group#
Installation#
- Download a processing model in the epf format
- Connect to the service through the assistant built into the processing model or via green-api.com website. Get
API Token
andID Instance
- Launch in a browser or thin client and specify connection parameters (
API Token
andID Instance
) - Scan QR code from your WhatsApp mobile phone. (Chats menu -> All functions icon -> Linked devices -> Device linking)
- In the processing model form click the
Check connection
button. The form status parameter should change to "Connected"
Using a processing model in your own configurations#
The processing model has a software interface designed in accordance with 1C development standards. You can build it into your configuration and call the API on the server by initializing an object.
Examples#
How to send a text message using a processing model#
- Go to the
Sending Messages
tab - Specify the recipient's phone number and message text
- Click the
Send text
button
How to send a text message to a group using your own configuration#
API = Processing models.GreenAPI.Create();
API.IdInstance = "YOUR_INSTANCE";
API.ApiToken = "YOUR_TOKEN";
Response = API.SendTextToGroup("79001234567-1615394251@g.us", "Hello");
The full list of examples#
Description | Module |
---|---|
1C demo processing model for WhatsApp | GreenAPI.epf |
Sources of 1C processing model for WhatsApp | whatsapp-api-client-1c |