Hi, why sendListMenu not show any menu in client
Author: mahmudinasharCreated Jun 7, 2024Updated Jan 14, 2025
Labelsbugneeds triage
Description
Hi, i'm not sure this is bugs or something,.. but a got 'success' message and noting happen in our client (android)
Environment
- Venom version(s): ^5.1.0
- OS: Mac OS Sonoma 14.4.1
- Node version: v20.11.0
Steps to Reproduce
i think i do all what it mentions in documentation, and everything works fine such as send location, text, image.. but for sendList is not work but not reply any error message. Thanks for youe help!
Log Output
Result: {
me: {
id: {
server: 'c.us',
user: '6289629960449',
_serialized: '[email protected]'
},
displayName: null,
verifiedName: null,
searchName: null,
pushname: null,
notifyName: null,
isBusiness: null,
formattedUser: null,
tag: '1716717803',
eurl: 'https://pps.whatsapp.net/v/t61.24694-24/414619515_1376186393066867_1400441256802144955_n.jpg?ccb=11-4&oh=01_Q5AaIGxpzGhG-nCEa9q5CJqszltWOfBBD3OL5fdLvej4hHKn&oe=666F8401&_nc_sid=e6ed6c&_nc_cat=103',
previewEurl: 'https://pps.whatsapp.net/v/t61.24694-24/414619515_1376186393066867_1400441256802144955_n.jpg?stp=dst-jpg_s96x96&ccb=11-4&oh=01_Q5AaIIDnzSaP8Yr2YUFPfsA3SpgOcMD96B2vCfQ4jKucrb6R&oe=666F8401&_nc_sid=e6ed6c&_nc_cat=103',
fullDirectPath: '/v/t61.24694-24/414619515_1376186393066867_1400441256802144955_n.jpg?ccb=11-4&oh=01_Q5AaIGxpzGhG-nCEa9q5CJqszltWOfBBD3OL5fdLvej4hHKn&oe=666F8401&_nc_sid=e6ed6c&_nc_cat=103',
previewDirectPath: '/v/t61.24694-24/414619515_1376186393066867_1400441256802144955_n.jpg?stp=dst-jpg_s96x96&ccb=11-4&oh=01_Q5AaIIDnzSaP8Yr2YUFPfsA3SpgOcMD96B2vCfQ4jKucrb6R&oe=666F8401&_nc_sid=e6ed6c&_nc_cat=103',
filehash: 'F2HlTQo77dU+8mkx+/lAgnBL8f3OtGD4iK9QjmkAaSA=',
stale: false,
eurlStale: false,
timestamp: 1717723779111,
hostRetryCount: 0,
lastHostUsed: {
hostname: 'media-cgk1-1.cdn.whatsapp.net',
ips: [Array],
type: 'primary',
class: 'pop',
downloadBuckets: [Array],
'$1': {},
'$2': {},
fallback: [Object],
selectedBucket: 108
}
},
to: {
fromMe: true,
remote: {
server: 'c.us',
user: '6285727292672',
_serialized: '[email protected]'
},
id: 'F6CTJE82RLZWQNYP',
_serialized: '[email protected]_F6CTJE82RLZWQNYP'
},
erro: false,
text: null,
status: { messageSendResult: 'OK', t: 1717723838, count: null }
}Your Code
const list = [
{
title: "Pasta",
rows: [
{
title: "Ravioli Lasagna",
description: "Made with layers of frozen cheese",
}
]
},
{
title: "Dessert",
rows: [
{
title: "Baked Ricotta Cake",
description: "Sweets pecan baklava rolls",
},
{
title: "Lemon Meringue Pie",
description: "Pastry filled with lemonand meringue.",
}
]
}
];
this.conn.sendListMenu(this.sender, 'Title', 'subTitle', 'Description', 'menu', list)
.then((result) => {
console.log('Result: ', result);
})
.catch((erro) => {
console.error('Error when sending: ', erro); //return object error
});
Additional context / Screenshot
Source: vynect/venom