Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Phone is not connected after linking device #48

Closed
vaccarieli opened this issue Mar 21, 2022 · 3 comments
Closed

Phone is not connected after linking device #48

vaccarieli opened this issue Mar 21, 2022 · 3 comments

Comments

@vaccarieli
Copy link

vaccarieli commented Mar 21, 2022

Hi @salman0ansari I am getting this response when I try to send a message, {"error":true,"message":"phone isn\'t connected"}'

I already linked it to my WS, does the server saves the session by itself? after linking IF so and i have multiple devices linked to the server how can I select which one is the one that i am going to be sending messages with? anyways this is the url I am using:

with country code
http://192.168.1.189:3333/message/text?key=790235bd-dc68-4fbe-9605-a9acd674af5c&id=+50760157876&message=Hello World

without country code
http://192.168.1.189:3333/message/text?key=790235bd-dc68-4fbe-9605-a9acd674af5c&id=60157876&message=Hello World

Tetste out the instance and shows no user = {}

{"error":false,"message":"Instance fetched successfully","instance_data":{"instance_key":"8755e41f-01b3-4910-a45c-d7e39af49a98","user":{}}}

@salman0ansari
Copy link
Owner

salman0ansari commented Mar 21, 2022

you sure you connected whatsapp session linked to this key?

@vaccarieli
Copy link
Author

vaccarieli commented Mar 21, 2022

@salman0ansari you are right I did not have it linked to the specific key but now i did. now the issue is that the command for message is not working.

curl --location --request POST "http://192.168.1.189:3333/message/text?key=1aa93dac-cbd5-403a-a256-21b10c018ce7&id=50763641778&message=HelloWorld" {"error":true,"code":500,"message":"TypeError: Cannot read properties of undefined (reading 'includes')"}

@salman0ansari
Copy link
Owner

That's not how you send a text, read postman docs.
https://github.com/salman0ansari/whatsapp-api-nodejs#postman-docs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants