POST /send/message

Used for sending message to a chat. A text can be sent.

/send/message/:phone

POST /send/message/:phone

Query Parameters

Name
Type
Description

phone*

String

client number

Request Body

Name
Type
Description

chatID*

String

recipient phone number

context

String

message body

[
    {
        "id": {
            "fromMe": true,
            "remote": {
                "server": "c.us",
                "user": "...",
                "_serialized": "...@c.us"
            },
            "id": "...",
            "_serialized": "true_...@c.us_..."
        },
        "ack": 0,
        "hasMedia": false,
        "body": "Hi, How are you?",
        "type": "chat",
        "timestamp": 1636619265,
        "from": "...@c.us",
        "to": "...@c.us",
        "deviceType": "web",
        "isForwarded": false,
        "forwardingScore": 0,
        "isStarred": false,
        "fromMe": true,
        "hasQuotedMsg": false,
        "vCards": [],
        "mentionedIds": []
    }
]

Last updated