Expose business verification data (verified_level, issuer, actual_actors/host_storage) in /user/check, /user/info and message webhook
Los mantenedores suelen responder en 9 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 43/100
Línea de trabajo
Start with pkg/user/service/user_service.go and trace how /user/check and /user/info build responses; then inspect the message webhook path and the whatsmeow parsing points named in the issue. The issue identifies the fields and example XML to support, but the approach may require changes in the upstream whatsmeow types or reading stanza attributes before parsing discards them. Done means the requested verification and business privacy data are exposed in all three API surfaces while /user/check keeps VerifiedName as a string.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Welcome!
- Yes, I have searched for similar requests on GitHub and found none.
What type of feature?
Endpoint
What is the motivation for the request?
We need to tell apart three kinds of senders/contacts:
- Meta-verified businesses (blue/green check), to show a verification badge;
- Businesses served through the WhatsApp Business Platform / Cloud API or a BSP (e.g. banks, Facebook/Discord login codes), so automated replies are not sent back to automated accounts;
- WhatsApp Business app accounts (small businesses), which are often real customers and must be treated like regular users.
WhatsApp already sends everything needed, but it is lost before it reaches the API/webhook:
/user/checkonly returnsVerifiedNameas a string (item.VerifiedName.Details.GetVerifiedName()inpkg/user/service/user_service.go), dropping the certificateissuerand everything else.- The
<verified_name>node in usync responses and in incoming<message>stanzas carries attributes that whatsmeow does not parse, so they never appear in/user/info,/user/checkor theMessagewebhook (Info.VerifiedName).
What we observed with DEBUG_ENABLED=DEBUG (Evolution Go 0.7.1, whatsmeow upstream):
usync response (/user/check) for a large Brazilian bank:
<business>
<verified_name actual_actors="1" host_storage="2" privacy_mode_ts="1695341172" v="1" verified_level="high"><!-- 174 bytes --></verified_name>
</business>
Incoming message from a WhatsApp Business app account:
<message category="peer" ... type="text" verified_level="unknown" verified_name="<serial>">
<verified_name v="1" verified_level="unknown"><!-- certificate --></verified_name>
...
</message>
Decoded certificate of that app account: issuer = "smb:wa" (note the :wa suffix).
So:
verified_level(highvsunknown) identifies Meta-verified accounts;actual_actors/host_storage/privacy_mode_tsonly show up for businesses using the API/BSP;Details.issuer(smb:wavsent:...) separates the Business app from enterprise certificates, but/user/checkdoes not return it.
Usage Examples
- Show a verification badge only for
verified_level == "high". - Disable an AI/auto-responder for contacts with
actual_actors/host_storageset (automated accounts), while still answering WhatsApp Business app users.
How should the feature be developed?
Without breaking clients that use VerifiedName as a string in /user/check:
/user/check: add new fields next toVerifiedName, e.g.VerifiedIssuer(Details.issuer),VerifiedLevel, and aBusinessPrivacyobject (actualActors,hostStorage,privacyModeTs)./user/info: include the sameVerifiedLevelandBusinessPrivacydata (the fullVerifiedNamecertificate is already there).Messagewebhook: expose theverified_levelattribute of the<message>stanza (and of its<verified_name>child) inInfo, e.g.Info.VerifiedLevel.
The attributes are dropped by whatsmeow (parseVerifiedName / parseVerifiedNameContent and parseMessageInfo only keep the certificate bytes), so this probably needs either a small change in whatsmeow (types.VerifiedName / types.MessageInfo gaining the attributes) or reading the node attributes in Evolution before they are discarded. Happy to help test or open a PR if you point us to the preferred approach.
Additional Notes
We searched issues/PRs for verified_level, VerifiedLevel, VerifiedName, actual_actors, host_storage, verified and business and found nothing related (#92 is about edit/revoke data in the message webhook).
- Lenguaje dominante
- Go
- Estrellas
- 1k
- Forks
- 610
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de evolution-foundation/evolution-go
-
/user/info and /user/avatar hang for 75s when number is a phone numberPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
evolution-foundation/evolution-go#223 ·
Los mantenedores suelen responder en 9 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
evolution-foundation/evolution-go#193 ·
Los mantenedores suelen responder en 9 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
evolution-foundation/evolution-go#104 ·
Los mantenedores suelen responder en 9 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
evolution-foundation/evolution-go#101 ·
Los mantenedores suelen responder en 9 días
-
POST /group/participant always returns 400 "participants is required and cannot be empty" (wrong validation middleware on route)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
evolution-foundation/evolution-go#97 · 2 comentarios ·
Los mantenedores suelen responder en 9 días
Todos los issues de evolution-foundation/evolution-go
Issues similares
-
[Enhancement] platform-engineer: a definition change does not re-render running Applications; say how to roll it outPosiblemente ocupada @anoop2811 la tomó hoy. Abiertoneeds-triage type/enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Area/Policies Aspect/API Severity/Major Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
wso2/api-platform#4468 ·
Los mantenedores suelen responder en 1 día
-
review: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
1lck/Lithe-IDEA#2432 ·
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
dsx-ai-factory/health-validation#368 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
keyxmakerx/Chronicle#2824 ·
Los mantenedores suelen responder en 1 día