Skip to main content

Send Ptv - File

POST 

/api/v2/instance/:instanceId/send/ptv-file

Send PTV - File

This endpoint makes it possible to directly send pre-recorded video (PTV) files within an instance..

Request

Path Parameters

    instanceId stringrequired

    ID of the instance.

Body

required
    recipient Recipientrequired

    Contact number or group id

    attachment binaryrequired

    Load the media file.

    delay Delay

    Default value: 1200

    Defines the delay with which the message will be sent in milliseconds.

Responses

ResponseSendMessage

Schema
    messageId stringrequired
    keyId stringrequired
    keyFromMe booleanrequired
    keyRemoteJid stringrequired
    keyParticipant string
    pushName stringrequired
    contentType stringrequired
    isGroup booleanrequired
    content objectrequired
    source stringrequired
    messageTimestamp numberrequired
    createdAt date-timerequired

    Default value: 2023-12-13T17:55:01.032Z

    instanceInstanceId stringrequired

    Default value: 2023-12-13T17:55:01.032Z

    externalAttributes stringrequired
Loading...