[GH-ISSUE #66] Send message to group #47

Open
opened 2026-02-27 10:23:58 +03:00 by kerem · 1 comment
Owner

Originally created by @ekotwidodo on GitHub (Jun 16, 2025).
Original GitHub issue: https://github.com/mimamch/wa-gateway/issues/66

Has this gateway supported sending message to group?
How to fill the "to" if we want to send message to group?
How to get group ids?

Originally created by @ekotwidodo on GitHub (Jun 16, 2025). Original GitHub issue: https://github.com/mimamch/wa-gateway/issues/66 Has this gateway supported sending message to group? How to fill the "to" if we want to send message to group? How to get group ids?
Author
Owner

@kikuKeii commented on GitHub (Sep 11, 2025):

Q : Has this gateway supported sending message to group?
A : YES

Q : How to fill the "to" if we want to send message to group?
A : Enpoint for send group is the same as send normal message only with isGroup parameter set to true and to set group ID

POST http://localhost:5001/message/send-text?key=12345

Payload request:

{
    "session": "phone",
    "to": "120363XXXXXX07888",
    "text": "Hello World",
    "is_group": true
}

Response yang diterima:

{
    "data": {
        "key": {
            "remoteJid": "120363XXXXXX07888@g.us",
            "fromMe": true,
            "id": "3EB0AAB0E1B2C741C2CD49"
        },
        "message": {
            "extendedTextMessage": {
                "text": "Hello World"
            }
        },
        "messageTimestamp": "1757576206",
        "status": "PENDING",
        "participant": "628386000048:9@s.whatsapp.net"
    }
}
Image

Q: How to get group ids?
A: Just send a message to the group.
If you send a message to a group, the data payload received on the webhook will look like this:

Image
{
  "session": "phone",
  "from": "12036XXXXXXXX07888@g.us",
  "message": "test",
  "media": {
    "image": null,
    "video": null,
    "document": null,
    "audio": null
  }
}
<!-- gh-comment-id:3279007784 --> @kikuKeii commented on GitHub (Sep 11, 2025): Q : Has this gateway supported sending message to group? A : YES Q : How to fill the "to" if we want to send message to group? A : Enpoint for send group is the same as send normal message only with isGroup parameter set to true and to set group ID ```` POST http://localhost:5001/message/send-text?key=12345 ```` Payload request: ```json { "session": "phone", "to": "120363XXXXXX07888", "text": "Hello World", "is_group": true } ``` Response yang diterima: ```json { "data": { "key": { "remoteJid": "120363XXXXXX07888@g.us", "fromMe": true, "id": "3EB0AAB0E1B2C741C2CD49" }, "message": { "extendedTextMessage": { "text": "Hello World" } }, "messageTimestamp": "1757576206", "status": "PENDING", "participant": "628386000048:9@s.whatsapp.net" } } ```` <img width="1825" height="881" alt="Image" src="https://github.com/user-attachments/assets/6c391d61-9d38-488e-b3f2-2df8e202f934" /> Q: How to get group ids? A: Just send a message to the group. If you send a message to a group, the data payload received on the webhook will look like this: <img width="1891" height="742" alt="Image" src="https://github.com/user-attachments/assets/4fe5c777-43bf-4243-94af-9998e5a6de79" /> ```json { "session": "phone", "from": "12036XXXXXXXX07888@g.us", "message": "test", "media": { "image": null, "video": null, "document": null, "audio": null } } ````
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wa-gateway-mimamch#47
No description provided.