POST /send/location

This endpoint provide send location

/send/location/:phone

POST /send/location/:phone

Query Parameters

Name
Type
Description

phone*

String

client number

Request Body

Name
Type
Description

chatID*

array

list of recipient phone number

body*

String

name of location

lat*

String

coordinates of location

lng*

String

coordinates of location

[
    {
        "id": {
            "fromMe": true,
            "remote": {
                "server": "c.us",
                "user": "...",
                "_serialized": "...@c.us"
            },
            "id": "3EB0558...A28086",
            "_serialized": "true_...@c.us_3EB0558...CA28086"
        },
        "ack": 0,
        "hasMedia": false,
        "body": "",
        "type": "location",
        "timestamp": 1636637270,
        "from": "...@c.us",
        "to": "...@c.us",
        "deviceType": "web",
        "isForwarded": false,
        "forwardingScore": 0,
        "isStarred": false,
        "fromMe": true,
        "hasQuotedMsg": false,
        "location": {
            "latitude": 37.422,
            "longitude": -122.084,
            "description": "Gope"
        },
        "vCards": [],
        "mentionedIds": []
    }
]

Last updated