Last updated 3 years ago
This endpoint provide you send PTT messages
POST /send/ptt/:phone
POST
/send/ptt/:phone
phone*
String
client number
chatID*
recipient phone number
body*
url to mp3 file audio record
caption*
name off caption
filename*
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": [] } ]
Unauthorized