Jump to content

Recommended Posts

Could you maybe extended the webhook receiving message feature? @Magd Almuntaser
Because, in this current release it only handle basic thing, like photos media only. But, the thing in the list bellow are posted NULL to webhook

  1. Document (DOCX,XLSX,PDF,etc)
  2. Sticker
  3. Audio (Audio,Voice Note)
  4. etc...

Also, maybe can you specify the mediaType when media message are detected?
Like mediaType:document or xlsx etc?

{
  "message": "Here's the document you've requested sir.", 
  "bufferMedia": Base64Encoded Media, 
  "mediaType": "pdf",
  "isGroup": true, // Detect if its group or personal
  "from": "62xxxxxx"
}

or maybe more complex one?
 

{
  "message": "parsed_command_content",
  "bufferMedia": "base64_encoded_media_or_null",
  "from": {
    "number": "sender_phone_number",
    "name": "sender_display_name",
    "profilePicture": "profile_picture_url_or_null"
  },
  "participant": "participant_phone_number_or_null",
  "group": {
    "id": "group_id",
    "name": "group_name",
    "participants": [
      {
        "number": "participant_number",
        "name": "participant_display_name"
      }
    ]
  },
  "messageType": "text|image|video|audio|document",
  "media": {
    "url": "media_url_or_null",
    "type": "image|video|audio|document",
    "size": "media_size_in_bytes",
    "caption": "media_caption_or_null"
  },
  "timestamp": "unix_timestamp",
  "messageId": "unique_message_id",
  "quotedMessage": {
    "content": "quoted_message_text_or_media_caption",
    "messageType": "text|image|video|audio|document",
    "media": {
      "url": "quoted_media_url_or_null",
      "type": "image|video|audio|document"
    },
    "from": {
      "number": "quoted_sender_number",
      "name": "quoted_sender_name"
    }
  }
}

Or maybe you have better solutions?
I actually already implemented this by modifying the incomingMessage.js and helper.js file, but maybe you could apply to the next version?
@Magd Almuntaser

Also, some new endpoint for Delete Device instead just Disconnect Device maybe?


Thank you in advance

Edited by DikaNura
  • Love 1
12 hours ago, Ipokane Biz said:

@adhiete mas, minta tolong kalau "waiting for node server" terus itu bagaimana ya? Jadi tidak kunjung muncul QR codenya

Shared hosting, node v20, WA v8.5.1

jelasinnya kurang detail Bro, sudah ngelakuin apa aja? sudah sesuai step by step install apa belum.
coba di jelasin stepnya disini, nanti dibantuin

59 minutes ago, DikaNura said:

Could you maybe extended the webhook receiving message feature? @Magd Almuntaser
Because, in this current release it only handle basic thing, like media. But, the thing in the list bellow are posted NULL to webhook

  1. Document (DOCX,XLSX,PDF,etc)
  2. Sticker
  3. Audio (Audio,Voice Note)
  4. etc...

Also, maybe can you specify the mediaType when media message are detected?
Like mediaType:document or xlsx etc?

{
  "message": "Here's the document you've requested sir.", 
  "bufferMedia": Base64Encoded Media, 
  "mediaType": "pdf",
  "isGroup": true, // Detect if its group or personal
  "from": "62xxxxxx"
}

Or maybe you have better solutions?

I actually already implemented this by modifying the incomingMessage.js and helper.js file, but maybe you could apply to the next version?
@Magd Almuntaser

Thank you in advance

WOW! nice Bro. Hope it will be implemented too on next version.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...