joaoricardo000 / whatsapp-bot-seed

A small python framework to create a whatsapp bot, with regex-callback message routing.
728 stars 244 forks source link

Get contacts profile picture to send it with an answer? #43

Closed x23piracy closed 8 years ago

x23piracy commented 8 years ago

Hi,

is there a way to to recieve a contacts profile picture, save it to a filesystem path (as number(at)s.whatsapp.net.jpg/png), and then send an answer (picture) with contacts profile picture recently recieved?

Regards X23

joaoricardo000 commented 8 years ago

Hi!

So I see you are developing some nice functionalities for your bot. I suggest you to take a step back and spend some time learning about how yowsup works. Most of this bot functions have some comments on it, and probably would be helpful.

All you can see or do in whatsapp oficial app you can do with yowsup. Check all type of messages that you can send/receive only regarding profile: https://github.com/tgalal/yowsup/tree/master/yowsup/layers/protocol_profiles/protocolentities

Take a look on all protocols here also: https://github.com/tgalal/yowsup/tree/master/yowsup/layers

You can send/receive all of this, but will take some time to adjust in your app.

Regards,