Commands › Groups
send_group_im
Post in a group chat
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "send_group_im",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"groupuuid": "b3f87fed-0470-4a7e-b035-100000000000",
"message": "Hello group!",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
groupuuidUUID | yes | Group UUID, or the exact name of a group the bot is in. Also accepted as: group, groupId, groupName |
messagestring | yes | Message text. |
Example response
{
"result": "OK",
"groupUUID": "b3f87fed-0470-4a7e-b035-100000000000"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- Fails for a few seconds after login while the bot joins its group chats ("Bot is still joining group chat sessions"). Retry shortly.