mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.04k stars 794 forks source link

Error Sending vCard #779

Open daniel-scatigno opened 4 years ago

daniel-scatigno commented 4 years ago
  • Advertising of monetized Frameworks is strictly forbidden and will be reported

  • [x] The language must be English, if you are not fluent in English consider using: https://www.deepl.com/translator if it supports your native language

  • [ ] Please check if any other issue already adresses your concerns or if a recent PR is already fixing the mentioned issue

  • [ ] Please make sure to format your code, and to mark your code as such, with the provided tools from github (upper right of this box)

  • [ ] Please state your Operating System (inlcuding version), your Python Version, and your installation way (pip, from repo) and if you are running it inside a docker container

  • [ ] Note that the pip installation might be behind, so try to fix your issue with a pull from the repo and update to the most recent version

  • [ ] Follow the Stackoverflow Guidelines (https://stackoverflow.com/help/how-to-ask) when in need of help

  • [ ] Consider posting your question on Stackoverflow if it is a general programming question

  • [ ] There will be no support for spamming, or other mischief

  • [ ] There will be no support for finding professionals

Hi, After sendMessage correction, now sending a vCard is resulting an error. After trying to send a v card the error chat.addAndSendMsg is not a function appears

smashah commented 4 years ago

I figured out the 'add' part but can't work out where the 'AndSendMsg' function has disappeared to.

smashah commented 4 years ago
chat.msgs.add(tempMsg)

Works BUT it doesn't actually SEND the message.

addAndSendMsg

exists somewhere. I just can't find it.

Can we get some assistance on this please? Figuring out how to get addAndSendMsg functionality working will open the door for enabling sending location through this.....which you cant even do on whatsapp web.

smashah commented 4 years ago

@mukulhase any idea how we can access addAndSendMsg?

smashah commented 4 years ago

Fixed here: https://github.com/smashah/sulla/blob/master/src/lib/wapi.js