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

Feature: WEBJS - star and unstar a message #240

Closed
normalscene opened this issue Dec 7, 2023 · 7 comments
Closed

Feature: WEBJS - star and unstar a message #240

normalscene opened this issue Dec 7, 2023 · 7 comments
Labels
engine:WEBJS patron:PLUS waha:CORE Relates to WAHA Core version

Comments

@normalscene
Copy link

Hi,

I have been using WAHA plus and so far it works really nice.

Is it possible to "star" a message because I was not able to find anything related to it in the documentation.

If I have missed to look in a specific place then kindly point me towards it.

@allburov
Copy link
Contributor

Hi! It's not available yet, but we'll add it (for WEBJ engine, it's not available in NOWEB yet)

  • isStarred field to WAMessage
  • POST /api/message/star
{
  "star": true
}

@allburov allburov changed the title Question: Is it possible to star a message ? Feature: WEBJS - star and unstar a message Dec 11, 2023
@normalscene
Copy link
Author

Thank you for such quick response. So when can I start using this feature ?

@allburov
Copy link
Contributor

@normalscene I'll provide a version number here when it's ready!

@normalscene
Copy link
Author

That is great! I will eagerly wait for it. Thank you so much.

@allburov allburov added dependencies Pull requests that update a dependency file and removed dependencies Pull requests that update a dependency file labels Jan 7, 2024
@normalscene
Copy link
Author

normalscene commented Mar 19, 2024

Hi. Is there any update ?

patron:PLUS

@allburov
Copy link
Contributor

@normalscene oh, I have two tabs with that issue already in my browser :D Didn't have a change to get to this, but I'll, hopefully soon 🤞

@devlikepro
Copy link
Contributor

devlikepro commented Mar 22, 2024

Hi, thank you for your patience and your support to the project!

Added PUT /api/star endpoint in WAHA Plus 2024.3.8 version in both WEBJS and NOWEB engines


Star and unstar message

Use PUT /api/star method to star or unstar a message.

👉 Star API uses PUT, not POST request! Please make sure you send right request.

Star:

{
  "messageId": "false_71111111111@c.us_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "chatId": "71111111111@c.us",
  "star": true,
  "session": "default"
}

Unstar:

{
  "messageId": "false_71111111111@c.us_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "chatId": "71111111111@c.us",
  "star": false,
  "session": "default"
}

patron:PRO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine:WEBJS patron:PLUS waha:CORE Relates to WAHA Core version
Projects
None yet
Development

No branches or pull requests

3 participants