tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.07k stars 2.23k forks source link

Block a client number from yowsup #1217

Open maxiwell opened 8 years ago

maxiwell commented 8 years ago

Hi,

I use the yowsup in a whatsapp server to comunicate with my clients. It's possible use the yowsup to put a number (client) in the block list?

Thank you.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

CG22 commented 8 years ago

I would really love this function too. Since I use it for receiving messages from a lot of user, and some of them spam me a lot, I really need to block them for some time, and unblock them too.

rickvdl commented 8 years ago

You can just create an array with blocked numbers, and if the client is in the array then don't reply to them. That's what I did, I specified which users may send commands to my yowsup.

retorquere commented 8 years ago

I'm also interested in adding users to my block list, but I want this block to be effective also on my mobile, so keeping a local array doesn't do it. Specifically, I'm looking to bulk-block all 2000+ numbers from my office -- I only want to use WhatsApp for private use.