POST /send/file

This endpoint provide send file

/send/file/:phone

POST /send/file/:phone

Query Parameters

Name
Type
Description

phone*

String

client number

Request Body

Name
Type
Description

chatID*

array

list of recipient phone number

body*

String

url path to file

caption*

String

caption

filename*

String

file name

[
    {
        "mediaKey": "UFANYvHrnOu2gD...tH2C2krC7qtr5/h8=",
        "id": {
            "fromMe": true,
            "remote": {
                "server": "c.us",
                "user": "...",
                "_serialized": "...@c.us"
            },
            "id": "3EB0D84DE6BF28233D95",
            "_serialized": "true_3...@c.us_3EB0D8...8233D95"
        },
        "ack": 0,
        "hasMedia": true,
        "body": "caption",
        "type": "document",
        "timestamp": 1636637677,
        "from": "...@c.us",
        "to": "...@c.us",
        "deviceType": "web",
        "isForwarded": false,
        "forwardingScore": 0,
        "isStarred": false,
        "fromMe": true,
        "hasQuotedMsg": false,
        "vCards": [],
        "mentionedIds": []
    }
]

Last updated