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

we need an endpoint to get messages #31

Closed
behind24proxies opened this issue Nov 27, 2022 · 5 comments
Closed

we need an endpoint to get messages #31

behind24proxies opened this issue Nov 27, 2022 · 5 comments
Labels
enhancement New feature or request waha:CORE Relates to WAHA Core version

Comments

@behind24proxies
Copy link

a GET endpoint for messages (10 messages , or from 10-20 , 20-30 , 30-90 , to optimize the payload).

@allburov allburov added enhancement New feature or request waha:CORE Relates to WAHA Core version labels Nov 28, 2022
@allburov
Copy link
Contributor

I think it requires adding endpoints to get chats first - like to get list of users and groups. Otherwise there's no way to get "unprocessed" messages (if it's the case here).
#34
#32

After that - it makes sense to add that endpoint too!

@behind24proxies
Copy link
Author

I think it requires adding endpoints to get chats first - like to get list of users and groups. Otherwise there's no way to get "unprocessed" messages (if it's the case here). #34 #32

After that - it makes sense to add that endpoint too!

I don't think so , when we send messages we need a chat id :
[country code without +] + [phone number]@c.us

what if you make an endpoint to get those chats ?

@allburov
Copy link
Contributor

Hi there!
Added GET /messages endpoint

curl -X 'GET' \
  'http://localhost:3000/api/messages?chatId=11111111111%40c.us&limit=1000&session=default' \
  -H 'accept: application/json'

Right now it's available in PLUS 2022.12.19 , will add it to CORE in January 2023.

@behind24proxies
Copy link
Author

well, that's some good news
❤️

by the way , regarding the core version
if I pay 19$ I get the updated versions even after I unsubscribe from patreon , right?

@allburov
Copy link
Contributor

I get the updated versions even after I unsubscribe from patreon

Unfortunately not, but the previous downloaded versions will work fine!

allburov added a commit that referenced this issue Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request waha:CORE Relates to WAHA Core version
Projects
None yet
Development

No branches or pull requests

2 participants