Question: I have to use whatsapp's click to chat feature for automating the process of sending messages to unsaved numbers. I am currently using selenium to automate the process. I am able to send text messages only for now. I was wondering that it might be possible to send other media files as well like images and videos. 

There are 2 unused parameters in my url of click to chat feature, "source" and "data". I thought using these might enable me to send media files but I Haven't been able to do it yet. 
Example URL for one of my click to chat messages:

<https://web.whatsapp.com/send?phone=phoneNumHere&text=Hi&source=&data=>

Can anyone confirm that either its possible or not. If its possible what would be the right way to do it?

Thanks

Answer: 
I know it's too late, I just have to add that Whatsapp Web and Whatsapp Desktop accept paste inputs, thus if you can get your picture to the memory (I did it with VB.net took 5 mins to accomplish after a bit of googling) you can just send a paste order and it'll load it in and require and ENTER send key from you.
Part1: Sending messages to unsaved contacts
Sending media to unsaved numbers is quite a difficult task but not impossible. You can surely find XPath by text.

Part2: Yes media can be sent to contacts. I have done that in my project link : <https://github.com/shauryauppal/PyWhatsapp>. By using **PyAutoIt** you can send Pictures, PDF, Videos to the selected contacts.

Since uploading part is not the automation of web browser we auto windows using AutoIt and select the path of image/video/file to send to the user.

```
autoit.control_focus("Open","Edit1")
autoit.control_set_text("Open","Edit1",(PATH_OF_IMAGE_TO_SEND) )
autoit.control_click("Open","Button1")

```

This is just the crux of the implementation. Do refer my repo in case of more understanding. 

PS: Don't forget to star repo or give credits.

Check answer [Link](https://stackoverflow.com/a/51992469/6897603) for more info, where to download AutoIt from.