How do I select an item from a list? #89
Unanswered
JuniorRDev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to be able to select an item from a set of lists that a whatsapp bot shows me, I have tried using the api/reply but I have not been able to select as I should.
In short I have been able to select the message that is the list and write what the list shows but it is not detecting as list type but as chat type, is there any solution?
Here I leave you the get response where I have done it manually from whatsapp so you know what I have to select, sorry for so much text but it's to give you an idea
Request URL
http://localhost:3000/api/messages?chatId=50224280000%40c.us&limit=4&session=default
Get Response
[
{
"id": "false_50224280000@c.us_F37E72F61C9F212D13",
"timestamp": 1682915616,
"from": "50224280000@c.us",
"fromMe": false,
"to": "18494589955@c.us",
"body": "",
"hasMedia": false,
"ack": 1,
"vCards": [],
"_data": {
"id": {
"fromMe": false,
"remote": "50224280000@c.us",
"id": "F37E72F61C9F212D13",
"_serialized": "false_50224280000@c.us_F37E72F61C9F212D13"
},
"type": "list",
"t": 1682915616,
"notifyName": "50224280000",
"from": {
"server": "c.us",
"user": "50224280000",
"_serialized": "50224280000@c.us"
},
"to": {
"server": "c.us",
"user": "18494589955",
"_serialized": "18494589955@c.us"
},
"self": "in",
"ack": 1,
"isNewMsg": true,
"star": false,
"kicNotified": false,
"recvFresh": true,
"isFromTemplate": false,
"pollInvalidated": false,
"isSentCagPollCreation": false,
"latestEditMsgKey": null,
"latestEditSenderTimestampMs": null,
"broadcast": false,
"mentionedJidList": [],
"groupMentions": [],
"footer": "¿Qué servicio deseas consultar?",
"isVcardOverMmsDocument": false,
"isForwarded": false,
"hasReaction": false,
"privacyModeWhenSent": {
"actualActors": 2,
"hostStorage": 2,
"privacyModeTs": 1667323430
},
"list": {
"$$unknownFieldCount": 0,
"sections": [
{
"$$unknownFieldCount": 0,
"rows": [
{
"$$unknownFieldCount": 0,
"title": "Mi Móvil",
"description": "Consulta sobre la línea que escribes 📱 18494589955",
"rowId": "64537368:0"
},
{
"$$unknownFieldCount": 0,
"title": "Residencial u Otro Móvil",
"description": "Consulta servicios residenciales 🏠 u otro Móvil Tigo 📱",
"rowId": "64537368:1"
},
{
"$$unknownFieldCount": 0,
"title": "Negocio",
"description": "Consulta sobre servicios empresariales fijos y móviles 🏢",
"rowId": "64537368:2"
},
{
"$$unknownFieldCount": 0,
"title": "Quiero ser Tigo",
"description": "✨ Compra productos o Servicios de Móvil, Hogar o Negocio",
"rowId": "64537368:3"
}
]
}
],
"title": "¡Hola 😎Junior😎!",
"description": "Soy Liza👱♀ la asistente virtual de Tigo ( Un Bot ).",
"buttonText": "Selecciona",
"listType": 1,
"footerText": "¿Qué servicio deseas consultar?"
},
"productHeaderImageRejected": false,
"lastPlaybackProgress": 0,
"isDynamicReplyButtonsMsg": false,
"isMdHistoryMsg": false,
"stickerSentTs": 0,
"isAvatar": false,
"requiresDirectConnection": false,
"links": []
}
},
{
"id": "true_50224280000@c.us_3D0536EDD13923DDB69FEDB1664D56D8",
"timestamp": 1682915618,
"from": "18494589955@c.us",
"fromMe": true,
"to": "50224280000@c.us",
"body": "Residencial u Otro Móvil\nConsulta servicios residenciales 🏠 u otro Móvil Tigo 📱",
"hasMedia": false,
"ack": 2,
"vCards": [],
"_data": {
"id": {
"fromMe": true,
"remote": "50224280000@c.us",
"id": "3D0536EDD13923DDB69FEDB1664D56D8",
"_serialized": "true_50224280000@c.us_3D0536EDD13923DDB69FEDB1664D56D8"
},
"body": "Residencial u Otro Móvil\nConsulta servicios residenciales 🏠 u otro Móvil Tigo 📱",
"type": "list_response",
"t": 1682915618,
"notifyName": "😎Junior😎",
"from": {
"server": "c.us",
"user": "18494589955",
"_serialized": "18494589955@c.us"
},
"to": {
"server": "c.us",
"user": "50224280000",
"_serialized": "50224280000@c.us"
},
"author": {
"server": "c.us",
"user": "18494589955",
"_serialized": "18494589955@c.us"
},
"self": "in",
"ack": 2,
"isNewMsg": true,
"star": false,
"kicNotified": false,
"recvFresh": true,
"isFromTemplate": false,
"pollInvalidated": false,
"isSentCagPollCreation": false,
"latestEditMsgKey": null,
"latestEditSenderTimestampMs": null,
"broadcast": false,
"quotedMsg": {
"type": "list",
"list": {
"$$unknownFieldCount": 0,
"sections": [
{
"$$unknownFieldCount": 0,
"rows": [
{
"$$unknownFieldCount": 0,
"title": "Mi Móvil",
"description": "Consulta sobre la línea que escribes 📱 18494589955",
"rowId": "64537368:0"
},
{
"$$unknownFieldCount": 0,
"title": "Residencial u Otro Móvil",
"description": "Consulta servicios residenciales 🏠 u otro Móvil Tigo 📱",
"rowId": "64537368:1"
},
{
"$$unknownFieldCount": 0,
"title": "Negocio",
"description": "Consulta sobre servicios empresariales fijos y móviles 🏢",
"rowId": "64537368:2"
},
{
"$$unknownFieldCount": 0,
"title": "Quiero ser Tigo",
"description": "✨ Compra productos o Servicios de Móvil, Hogar o Negocio",
"rowId": "64537368:3"
}
]
}
],
"title": "¡Hola 😎Junior😎!",
"description": "Soy Liza👱♀ la asistente virtual de Tigo ( Un Bot ).",
"buttonText": "Selecciona",
"listType": 1,
"footerText": "¿Qué servicio deseas consultar?"
},
"footer": "¿Qué servicio deseas consultar?"
},
"quotedStanzaID": "F37E72F61C9F212D13",
"quotedParticipant": {
"server": "c.us",
"user": "50224280000",
"_serialized": "50224280000@c.us"
},
"mentionedJidList": [],
"groupMentions": [],
"isVcardOverMmsDocument": false,
"hasReaction": false,
"ephemeralStartTimestamp": 1682915619,
"privacyModeWhenSent": {
"actualActors": 2,
"hostStorage": 2,
"privacyModeTs": 1667323430
},
"listResponse": {
"$$unknownFieldCount": 0,
"title": "Residencial u Otro Móvil",
"listType": 1,
"singleSelectReply": {
"$$unknownFieldCount": 0,
"selectedRowId": "64537368:1"
},
"description": "Consulta servicios residenciales 🏠 u otro Móvil Tigo 📱"
},
"productHeaderImageRejected": false,
"lastPlaybackProgress": 0,
"isDynamicReplyButtonsMsg": false,
"isMdHistoryMsg": false,
"stickerSentTs": 0,
"isAvatar": false,
"requiresDirectConnection": false,
"links": []
}
},
{
"id": "false_50224280000@c.us_4652BBE513A07A02AE",
"timestamp": 1682915621,
"from": "50224280000@c.us",
"fromMe": false,
"to": "18494589955@c.us",
"body": "Selecciona el servicio sobre el que deseas consultar:",
"hasMedia": false,
"ack": 1,
"vCards": [],
"_data": {
"id": {
"fromMe": false,
"remote": "50224280000@c.us",
"id": "4652BBE513A07A02AE",
"_serialized": "false_50224280000@c.us_4652BBE513A07A02AE"
},
"body": "Selecciona el servicio sobre el que deseas consultar:",
"type": "chat",
"t": 1682915621,
"notifyName": "50224280000",
"from": {
"server": "c.us",
"user": "50224280000",
"_serialized": "50224280000@c.us"
},
"to": {
"server": "c.us",
"user": "18494589955",
"_serialized": "18494589955@c.us"
},
"self": "in",
"ack": 1,
"isNewMsg": true,
"star": false,
"kicNotified": false,
"recvFresh": true,
"caption": "Selecciona el servicio sobre el que deseas consultar:",
"isFromTemplate": false,
"title": "Por favor selecciona una opción",
"pollInvalidated": false,
"isSentCagPollCreation": false,
"latestEditMsgKey": null,
"latestEditSenderTimestampMs": null,
"broadcast": false,
"mentionedJidList": [],
"groupMentions": [],
"isVcardOverMmsDocument": false,
"isForwarded": false,
"hasReaction": false,
"privacyModeWhenSent": {
"actualActors": 2,
"hostStorage": 2,
"privacyModeTs": 1667323430
},
"productHeaderImageRejected": false,
"lastPlaybackProgress": 0,
"isDynamicReplyButtonsMsg": true,
"dynamicReplyButtons": [
{
"$$unknownFieldCount": 0,
"buttonId": "64537375:0",
"buttonText": {
"$$unknownFieldCount": 0,
"displayText": "📱 Móvil"
},
"type": 1
},
{
"$$unknownFieldCount": 0,
"buttonId": "64537375:1",
"buttonText": {
"$$unknownFieldCount": 0,
"displayText": "🏠 Residencial"
},
"type": 1
}
],
"headerType": 2,
"isMdHistoryMsg": false,
"stickerSentTs": 0,
"isAvatar": false,
"requiresDirectConnection": false,
"links": []
}
}
]
Beta Was this translation helpful? Give feedback.
All reactions