Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send a message via a local URL #250

Open
NiiiYaa opened this issue Aug 15, 2024 · 1 comment
Open

Send a message via a local URL #250

NiiiYaa opened this issue Aug 15, 2024 · 1 comment

Comments

@NiiiYaa
Copy link

NiiiYaa commented Aug 15, 2024

Hello,
I wanted to ask if there's a way to send a message via a local URL (e.g., http://localhost:3000/...).
If so, could you please provide the URL structure?
Thank you in advance for your help.

@mimail786
Copy link

Hi
POST to url: http://localhost:3000/client/sendMessage/ABCD
-H 'x-api-key: '
Body:
{
"chatId": "xxxxxxxxxxx@c.us",
"contentType": "string",
"content": "Test Message"
}

It works using https://www.usebruno.com/downloads
But i'm not sure why it does not work from command prompt using curl
URL rejected: Bad hostname
Get methods work from the browser

Let me know if yours works from curl

Thanks

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

No branches or pull requests

2 participants