POST /send/ptt
This endpoint provide you send PTT messages
/send/ptt/:phone
POST
/send/ptt/:phone
Query Parameters
Name
Type
Description
phone*
String
client number
Request Body
Name
Type
Description
chatID*
String
recipient phone number
body*
String
url to mp3 file audio record
caption*
String
name off caption
filename*
String
name of file
[
{
"mediaKey": "hCYX2HzTEIj...4FgwuDWWC3O6FWnM=",
"id": {
"fromMe": true,
"remote": {
"server": "c.us",
"user": "...",
"_serialized": "...@c.us"
},
"id": "3EB0B1E14FE15E937F89",
"_serialized": "...@c.us_3EB0B1E...E15E937F89"
},
"ack": 0,
"hasMedia": true,
"body": "",
"type": "ptt",
"timestamp": 1636634645,
"from": "...@c.us",
"to": "...@c.us",
"deviceType": "web",
"isForwarded": false,
"forwardingScore": 0,
"isStarred": false,
"fromMe": true,
"hasQuotedMsg": false,
"vCards": [],
"mentionedIds": []
}
]
Last updated