Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi, why sendListMenu not show any menu in client #2754

Open
mahmudinashar opened this issue Jun 7, 2024 · 0 comments
Open

Hi, why sendListMenu not show any menu in client #2754

mahmudinashar opened this issue Jun 7, 2024 · 0 comments
Labels
bug Something isn't working needs triage Needs avaliation

Comments

@mahmudinashar
Copy link

mahmudinashar commented Jun 7, 2024

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: '6289629960449@c.us'
    },
    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: '6285727292672@c.us'
    },
    id: 'F6CTJE82RLZWQNYP',
    _serialized: 'true_6285727292672@c.us_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

WhatsApp Image 2024-06-07 at 08 45 40

@mahmudinashar mahmudinashar added bug Something isn't working needs triage Needs avaliation labels Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Needs avaliation
Projects
None yet
Development

No branches or pull requests

1 participant