chrishubert / whatsapp-api

This project is a REST API wrapper for the whatsapp-web.js library, providing an easy-to-use interface to interact with the WhatsApp Web platform.
https://www.christophehubert.com
Other
840 stars 384 forks source link

want to ask #70

Closed asifdzaki93 closed 1 year ago

asifdzaki93 commented 1 year ago

the development idea is really cool,

but I tried to run tests with the methods in swagger but many are still confusing or showing errors,

Does the one marked with ✅ mean it's ready to use? or how?

I ask for an explanation..

chrishubert commented 1 year ago

All endpoints in Swagger are ready to use, the ✅is just a brief overview. What errors are you seeing?

asifdzaki93 commented 1 year ago

value success, but message not sent { "success": true, "message": { "_data": { "id": { "fromMe": true, "remote": { "server": "c.us", "user": "6287788934569", "_serialized": "6287788934569@c.us" }, "id": "3EB0791D024FDE325EE371", "_serialized": "true_6287788934569@c.us_3EB0791D024FDE325EE371" }, "body": "Hello asif!", "type": "chat", "t": 1692101596, "from": { "server": "c.us", "user": "62812256561061", "_serialized": "62812256561061@c.us" }, "to": { "server": "c.us", "user": "6287788934569", "_serialized": "6287788934569@c.us" }, "self": "out", "ack": 0, "isNewMsg": true, "star": false, "kicNotified": false, "caption": "Hello asif!", "isFromTemplate": false, "title": "Hello World!", "pollInvalidated": false, "isSentCagPollCreation": false, "latestEditMsgKey": null, "latestEditSenderTimestampMs": null, "mentionedJidList": [], "groupMentions": [], "footer": "Hello World!", "isVcardOverMmsDocument": false, "isForwarded": false, "hasReaction": false, "disappearingModeInitiator": "chat", "productHeaderImageRejected": false, "lastPlaybackProgress": 0, "isDynamicReplyButtonsMsg": true, "dynamicReplyButtons": [ { "buttonId": "Yti9eM", "buttonText": { "displayText": "button 1" }, "type": 1 } ], "isMdHistoryMsg": false, "stickerSentTs": 0, "isAvatar": false, "lastUpdateFromServerTs": 0, "requiresDirectConnection": null, "invokedBotWid": null }, "id": { "fromMe": true, "remote": { "server": "c.us", "user": "6287788934569", "_serialized": "6287788934569@c.us" }, "id": "3EB0791D024FDE325EE371", "_serialized": "true_6287788934569@c.us_3EB0791D024FDE325EE371" }, "ack": 0, "hasMedia": false, "body": "Hello asif!", "type": "chat", "timestamp": 1692101596, "from": "62812256561061@c.us", "to": "6287788934569@c.us", "deviceType": "android", "isForwarded": false, "forwardingScore": 0, "isStatus": false, "isStarred": false, "fromMe": true, "hasQuotedMsg": false, "hasReaction": false, "vCards": [], "mentionedIds": [], "isGif": false, "title": "Hello World!", "dynamicReplyButtons": [ { "buttonId": "Yti9eM", "buttonText": { "displayText": "button 1" }, "type": 1 } ] } }

avoylenko commented 1 year ago

@asifdzaki93 are you trying to send buttons?

chrishubert commented 1 year ago

Buttons are deprecated in the original repository for the time being - it looks like they are not supporting them anymore. Do you have issues with any other endpoint?

chrishubert commented 1 year ago

Closing as idle - feel free to reopen it if necessary