[ALL] - add phone number (@c.us) found by lid (@lid) in webhooks
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
Let's see how many and
supporters needs the feature and prioritize it based on that.
👍 Comment with "+1" if you need it!
+1
+1
Hello, is there a estimated time to release a version with webhooks adjustments with pn information included ?
+1
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
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?
@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
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.
same pn I received @lid and pn filled.
@mrbitencourt could you attach the payload (with hidden pn/lid)?
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
pnJidin all webhooks, so no additional HTTP request made to process groups (and in the future others) messages[
](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
pnJidin all webhooks, so no additional HTTP request made to process groups (and in the future others) messages
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
+1 (WEBJS)
Portuguese
+1 (webjs) @@@@@
English
+1 (webjs) @@@@@