waha icon indicating copy to clipboard operation
waha copied to clipboard

[ALL] - add phone number (@c.us) found by lid (@lid) in webhooks

Open devlikepro opened this issue 7 months ago • 23 comments

Right now we need to manually lookup it by requesting HTTP (or have in memory cache for that) https://waha.devlike.pro/docs/how-to/contacts/#api---lids

Ideally we should add pnJid in all webhooks, so no additional HTTP request made to process groups (and in the future others) messages

patron:PRO

devlikepro avatar May 26 '25 11:05 devlikepro

Let's see how many patron:PLUS and patron:PRO supporters needs the feature and prioritize it based on that. 👍 Comment with "+1" if you need it!

devlikepro avatar May 26 '25 11:05 devlikepro

+1

patron:PLUS

nachmanmetodi avatar May 27 '25 01:05 nachmanmetodi

+1

patron:PRO

robbchan avatar May 27 '25 03:05 robbchan

+1

DuAell avatar May 27 '25 09:05 DuAell

+1

patron:PLUS

mr2samawi avatar Jun 03 '25 20:06 mr2samawi

kinda related lid issues https://github.com/devlikeapro/waha/issues/1015

patron:PRO

devlikepro avatar Jun 05 '25 10:06 devlikepro

+1

mequelussi avatar Jun 06 '25 23:06 mequelussi

+1

patron:PLUS

mrbitencourt avatar Jun 20 '25 17:06 mrbitencourt

Hello, is there a estimated time to release a version with webhooks adjustments with pn information included ?

prontuarioverde avatar Jul 08 '25 14:07 prontuarioverde

+1

HuangDaHui avatar Jul 09 '25 09:07 HuangDaHui

This month, hopefully 🤞

For now you can use https://waha.devlike.pro/docs/how-to/contacts/#api---lids to get data @lid to @c.us unlikely will not change, so you can cache it to avoid calling API on every webhook

patron:PRO

devlikepro avatar Jul 09 '25 09:07 devlikepro

In most cases that we use the api https://waha.devlike.pro/docs/how-to/contacts/#api---lids the pn is blank. Is there an estimated time to release this adjustment to include pn directly in the webhook return?

patron:PLUS

mrbitencourt avatar Aug 06 '25 16:08 mrbitencourt

@mrbitencourt

In most cases that we use the api

Could you give a bit more infromation, what engine do you use and do you see the phone number on the phone (in the app)?

Because if you see pn is blank in LID API - it'll be blank in webhook as well

patron:PRO

devlikepro avatar Aug 14 '25 08:08 devlikepro

We are using NOWEB engine. When I call api https://waha.devlike.pro/docs/how-to/contacts/#api---lids the pn is blank on most cases, but when I receive a message or message.any from same pn I received @lid and pn filled.

patron:PLUS

mrbitencourt avatar Aug 25 '25 11:08 mrbitencourt

same pn I received @lid and pn filled.

@mrbitencourt could you attach the payload (with hidden pn/lid)?

patron:PRO

devlikepro avatar Aug 26 '25 12:08 devlikepro

Right now we need to manually lookup it by requesting HTTP (or have in memory cache for that) https://waha.devlike.pro/docs/how-to/contacts/#api---lids

Ideally we should add pnJid in all webhooks, so no additional HTTP request made to process groups (and in the future others) messages

[patron:PRO](https://waha.devlike.pro/docs/how-to/plus-version/#tier

Right now we need to manually lookup it by requesting HTTP (or have in memory cache for that) https://waha.devlike.pro/docs/how-to/contacts/#api---lids

Ideally we should add pnJid in all webhooks, so no additional HTTP request made to process groups (and in the future others) messages

patron:PRO

Hi! Webhook already has the associated PN attached if user id ends with @lid, to get the @c.us we use these routes:

payload._data.key.senderPn (NOWEB) payload._data.Info.SenderAlt (GOWS)

I don't know if it was intentional, but with these data we don't need to use /api/{session}/lids

nicolasmdq avatar Sep 29 '25 16:09 nicolasmdq

+1

patron:PLUS

abhyudayasrinet avatar Oct 06 '25 04:10 abhyudayasrinet

+1 (WEBJS)

rafaheringer avatar Oct 07 '25 17:10 rafaheringer

Portuguese


+1 (webjs) @@@@@

github-actions[bot] avatar Oct 07 '25 17:10 github-actions[bot]

English


+1 (webjs) @@@@@

github-actions[bot] avatar Oct 07 '25 17:10 github-actions[bot]

+1!

patron:PLUS

kitobelix avatar Oct 17 '25 17:10 kitobelix

+1

patron:PLUS

OrionZap avatar Oct 22 '25 12:10 OrionZap

+1

patron:PRO

mxyzt avatar Oct 29 '25 13:10 mxyzt

+1

patron:PLUS

YosefAdPro avatar Dec 01 '25 00:12 YosefAdPro

+1

patron:PLUS

mahmouds12 avatar Dec 13 '25 10:12 mahmouds12