danielcardeenas / whatsapp-framework

⚗️Whatsapp python api
1.16k stars 362 forks source link

Replying message #40

Open igor9silva opened 6 years ago

igor9silva commented 6 years ago

Hi,

How can I make Mac reply messages (i.e. quote some message)?

Thanks for this project, it is stunning great!

danielcardeenas commented 6 years ago

There is a quick example in the README.md

from app.mac import mac, signals
@signals.message_received.connect
def handle(message):
    if message.text == "hi":
        mac.send_message("Hello", message.conversation)
igor9silva commented 6 years ago

Sorry, I think I wasn't clear.

img_b09a5ff0771b-1

danielcardeenas commented 6 years ago

This is not yet implemented

igor9silva commented 6 years ago

Do you know if it's available in yowsup? If so, I can work on a pull request this weekend.

danielcardeenas commented 6 years ago

It is not

danielct59 commented 6 years ago

Hello could you help me how do I get an image with text like in this photo? image

danielcardeenas commented 6 years ago
mac.send_image(image_url, message.conversation, "example text")
LabtronicsDesign commented 6 years ago

That doesn't work anymore hasn't been for a while and cant figure out why. Can others who have tried it confirm if it does indeed work please?

relima commented 6 years ago

It hasnt worked for a while. There are some yowsup forks that already support media but this bot does not play well with them.


From: SPWC notifications@github.com Sent: Sunday, January 7, 2018 11:11:40 AM To: danielcardeenas/whatsapp-framework Cc: Subscribed Subject: Re: [danielcardeenas/whatsapp-framework] Replying message (#40)

That doesn't work anymore hasn't been for a while and cant figure out why. Can others who have tried it confirm if it does indeed work please?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/danielcardeenas/whatsapp-framework/issues/40#issuecomment-355821929, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAlOJn8I2-eLBWuvhn_snwWTSiy3Ff32ks5tIMKMgaJpZM4QOb-p.

LabtronicsDesign commented 6 years ago

Strange cause it used to work fine. Are we behind some major yowsup update perhaps?

danielct59 commented 6 years ago

mac.send_image(image_url, message.conversation, "example text")

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Livre de vírus. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail. <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

2018-01-07 10:11 GMT-03:00 SPWC notifications@github.com:

That doesn't work anymore hasn't been for a while and cant figure out why. Can others who have tried it confirm if it does indeed work please?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/danielcardeenas/whatsapp-framework/issues/40#issuecomment-355821929, or mute the thread https://github.com/notifications/unsubscribe-auth/Ahi-m3PgWSqLUC8AIUwhMOUtKU15P4qNks5tIMKNgaJpZM4QOb-p .

relima commented 6 years ago

@SPWC not even yowsup 2.5.7 supports it as of now. The only one I am aware already supports it is: https://github.com/AragurDEV/yowsup

danielct59 commented 6 years ago

How do I receive an image?