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 Request] Last message and Contact on Get all chats #573

Open
gamoridev opened this issue Oct 7, 2024 · 1 comment
Open

[Feature Request] Last message and Contact on Get all chats #573

gamoridev opened this issue Oct 7, 2024 · 1 comment
Labels

Comments

@gamoridev
Copy link

gamoridev commented Oct 7, 2024

On Engine NOWEB.
I would like to know if we can add the "Last Message" from every chat on get all chats Request.
Also, if the contact info can be added too.

It would be awesome if we have the profilePicture included on the Contact Object, but I know that this could underperform the query.
But at least the name of the contact would be great.

  {
    "id": "xxxxxx@s.whatsapp.net",
    "readOnly": false,
    "ephemeralExpiration": 0,
    "ephemeralSettingTimestamp": 0,
    ...
    "lidJid": "xxxxxxx@lid",
    "lastMessageRecvTimestamp": 1728314011
    "lastMessage": "<BODY OF LAST MESSAGE ON CHAT>"
    "contact": {
      "id": "xxxxx",
      "name": "Jhon Doe",
      "profilePicture": "https://xxxx.png" (nice to have)
    }
  },

patron:PLUS

@devlikepro
Copy link
Contributor

devlikepro commented Oct 8, 2024

Related #566

patron:PRO

@devlikepro devlikepro added enhancement New feature or request engine:NOWEB labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants