ookamiiixd / baileys-api

Simple WhatsApp REST API with multiple device support
MIT License
431 stars 327 forks source link

Button issues for iOS #130

Closed kampit closed 1 year ago

kampit commented 1 year ago

Do you have the same problem to send messages with buttons?

After I added "viewOnce": true Android device, app & web can receive this button. But on iOS no message is received.

{
  "jid": "xxxxxxx@s.whatsapp.net",
  "type": "number",
  "message": {
    "text": "Hi there. How are you?",
    "buttons": [
      {
        "buttonId": "id1",
        "buttonText": {
          "displayText": "Good"
        },
        "type": 1
      },
      {
        "buttonId": "id2",
        "buttonText": {
          "displayText": "Feeling button"
        },
        "type": 1
      }
    ],
    "viewOnce": true,
    "headerType": 1
  }
}
achmadfha commented 1 year ago

same as me, "viewOnce": true, or false ios no message received

im using "@adiwajshing/baileys": "^5.0.0",

kampit commented 1 year ago

same as me, "viewOnce": true, or false ios no message received

im using "@adiwajshing/baileys": "^5.0.0",

I have tried two versions of WhatsApp. WA Business can receive buttons. Only an issue in the Personal version.

ookamiiixd commented 1 year ago

I don't have an iOS phone so i have no idea. Have you tried looking for the information in the baileys repo?

thiago28x commented 1 year ago

this is an issue with iPhones, even in other whatsapp libs like wppconnect :(

kampit commented 1 year ago

Actually it works! User and us need to communicate first. Don't send button at the first message.

iOS can use the button for any version.