alfred82santa / whalesong

Whalesong is an asyncio python library to manage WebApps remotely. Currently WhatsappWeb is implemented
https://whalesong.readthedocs.io
MIT License
50 stars 19 forks source link

Forward Image #111

Closed gladimaz closed 5 years ago

gladimaz commented 5 years ago

Hey, i want to forward image. How can i do it? Please help. I try use:

 if message.type == Messages.Types.Image:
    self._driver.chats.forward_messages_to_chats(message.id,PhoneNumber@c.us)

Thanks u.

alfred82santa commented 5 years ago

forward_messages_to_chats requires to lists:

Try this, if it does not work perhaps there is a bug:

await self._driver.chats.forward_messages_to_chats([message.id, ], ["PhoneNumber@c.us", ])
gladimaz commented 5 years ago

It works perfectly, thanks you