Send image throw whatsapp desktop using VB.net without API - vb.net

Like the title suggests, I figured out how to send text to whatsapp desktop using this code:
web.Navigate("whatsapp://send?phone=" & PHtext.Text & "&text=" & Messagetext.Text & "")
But I've searched a lot of forums and can't figure out how to send an image without the use of an API. Since my country doesn't allow online purchases, my credit card is basically useless and i can't get an API.
So is there a way to send image to whatsapp without the use of an API?

Related

How to send media files on whatsapp programmatically using click to chat feature?

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
Similar question: Whatsapp Automated Bot not able to search in WhatsApp Contact List
Send images, videos and docs using Selenium:
//To send attachments
//click to add
driver.findElement(By.cssSelector("span[data-icon='clip']")).click();
//add file path
driver.findElement(By.cssSelector("input[type='file']")).sendKeys("FilePath");
//click to send
driver.findElement(By.cssSelector("span[data-icon='send-light']")).click();
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 for more info, where to download AutoIt from.
Coding Working Fine.
//To send attachments
//click to add
driver.findElement(By.cssSelector("span[data-icon='clip']")).click();
//add file to send by file path
driver.findElement(By.cssSelector("input[type='file']")).sendKeys("FilePath");
//click to send
driver.findElement(By.cssSelector("span[data-icon='send-light']")).click();
I was having the same issue but right after fixing it, I made a python wrapper so that it helps more people having the same issue.
In case you're interested to explore more about the wrapper, here is a link
https://github.com/Kalebu/alright
Here is how to send a message to media files and message to unsaved contacts
>>> from alright import WhatsApp
>>> messenger = WhatsApp()
>>> messenger.find_user('255-74848xxxx')
>>> messenger.send_message("I wish you a Merry X-mass and Happy new year ")
>>> messenger.send_picture('path-to-image',"Text to accompany image")
Sending to Multiple unsaved contacts
>>> numbers = ['2557xxxxxx', '2557xxxxxx', '....']
>>> for number in numbers:
messenger.find_user(number)
messenger.send_message("I wish you a Merry X-mass and Happy new year "

Which Google API do I need to show a map & icon / marker

I'm just starting out on a new website & want to add a Google map onto the page. (i already know the Geo code / location).
I did find a good tutorial, however all i'm getting is a message "Oops, something when wrong" message.
I have tried to go to developers.google.com & research this, but find DOZENS / a hundred different APIs for Google maps. & im unclear as to which API I need.
1) i know google has its own 'product forum' - but theres no forum for Google apis. & the support page directed me here...
2) all i want the map to do is
i provide a geocode / location.
it displays the map in the size / area I want
allow the user to zoom in/out and move the map
Can someone advise me the 'latest' / 'recent' version, of a tutorial on how to achieve this.
https://developers.google.com/maps/get-started/
Ps I want the map to work on android / PC & other versions of browser a person may use. Do i need to create HTML code / access different apis for each browser ? the above page has dozens of options.
FIXED it - I went to the console screen that generates the API key, & checked / confirmed my key.
I found the problem that my domain name was missing a character / letter - i edited it & the map now works

Display on a website if I'm online for Google Hangouts

Currently I can add a "start hangout" button to my website https://developers.google.com/+/hangouts/button
However, it's kind of a dead button, it just starts hangouts and there's no way to actually see if I'm online of offline.
Is there a way for me to put next to that button whether or not my Google+ account "...#dancourse.co.uk" is online currently so someone could call me (if they had my address)?
An Api?
A Javascript library?
Thanks, DanC

Image not showing up with other hashtagged images and Gramblr

I am not a developer but I am a university researcher studying informal education through social media.
Recently I just had my account disabled when I tested the application gramblr for uploading photos to Instagram. As I have a few members of my learning community who wanted to participate but could not afford a smartphone I wanted to find them alternate options.
Presently anything I upload and tag does not show up amidst other images with the same tag.
This is a big problem as I am the lead researcher and the community organizer, and I lead through example, as well as create various educational avenues through the use of tags.
Please help me to resolve this issue as soon as is possible.
Thank you
-Lily
I was having the same problem. Gramblr actually broke my Instagram account. I had to delete it and start with a new account. Here is how I figured out how to upload photos from my PC with no smart phone:
1 - Download and install BlueStacks: http://www.bluestacks.com/ When running, this program will produce an environment in which you can run popular apps on your computer.
2 - Search for the Instagram app within the BlueStacks App Player & install it. Also search for the Roots Browser app and install it as well (you'll use this app to upload photos from your computer.)
3 - Open Instagram inside BlueStacks & either register a new account or sign in with an existing one.
4 - Open the Roots Browser app and navigate to the desired folder where you will be storing images copied from your computer. I chose SD Card > Pictures. Pull the image(s) into the folder & drop it. It will ask you where you want to send it - choose Instagram.
5 - Open the Instagram app. To upload photos from your computer you must go into the Instagram settings (maybe under Advanced Settings) and disable/uncheck the Instagram camera. In the lastest updates the placement of this checkbox option has changed, so it may take some looking around to find it.
6 - In the Instagram app, click on the camera icon to upload a photo. Choose gallery & then navigate through your Root Browser to the folder where you dragged in your chosen image(s). Choose an image.
7 - Post as you would normally by following the prompts/icons to progress.
I ran into 1 more issue. It turns out that my BlueStacks Instagram app would get stuck after choosing the photo & trying to continue with posting. The screen would turn black & nothing happened for a very long time. I ended up having to update my graphics card drivers & that fixed the problem. If you need help updating your graphics card driver(s) see the http://www.ma-config.com/en website. It will help you to figure out what drivers can be updated. You'll have to download the proper version for your computer operating system & install it on your computer. Double click the icon on your desktop after installation to run it & then hit the refresh button in the browser on the ma-config website. Follow prompts to download drivers needed.
This is the method that worked for me. There are several other methods if you search YouTube with combinations of words including BlueStack & Instagram.
Blue stacks has tons of adware/malware etc. according to my security software, the better work around is dropbox. Put the image in drop box on your computer, then on your phone select your photo from dropbox. A bit long winded but it works.

How do I post in facebook a big image on a friend's timeline without using sdk feed dialog

I have an app that lets the user create a custom-made greeting card (a big image) and send it to a facebook friend who has their birthday / another occasion on that day.
I want to allow my user to post the generated greeting card image on the other friend's timeline.
Since feb 2013, developers are not allowed to post on other user's wall using /feed (stream.publish), the documentation states it is only allowed using the feed dialog (sdk pop-up).
How do I allow a user to post a big image on a friend's timeline from an iOs app without using the sdk's send dialog?
Due to the Recent Changes of Facebook Graph API you can't do this anyway without using the Feed Dialog .