SlideShare a Scribd company logo
1 of 3
Download to read offline
Sending WhatsApp Message in .Net
Hi Friends!
This time I am here with a very small article about sending WhatsApp Message from your .Net
application. I have described in this blog ”how to send whatsapp messages using do net (.NET) ”.
After reading this blog you can easily understand how to use. We have explained step by step with
source code. Increase your technical skills after reading this blog. This is very useful for.NET
developers.
You need following things for that.
1. WART(WhatsApp Registration Tool)
This a tool with which you can get the password to be used in API.
2. WhatsApp Api for C#(Highly Unstable Currently and Without any proper documentation)
3. Any mobile number on which you are not using WhatsApp currently and You will not be using it in
future for WhatApp(As your number may be blocked if you send multiple messages. Again the
blocking criteria is uncertain and my number was blocked after 3-5 messages !!):-(
So first thing first. Download the WhatsApp Api for C# via nuget package manager. If you see a
reference of the API in your reference,that's good. Otherwise download the API manually and add
the reference.
Now we are all set for creating our application. So create the UI like following(I used WinForms):-
Fig 1-The User Interface
On the click event of the button write following code:-
string nickname = "Mani";
1. string senderp = "your number with country code";
2. string password = "your password"; // Obtain it with WART or
Yowsup
3.
4. WhatsApp wa = new WhatsApp(senderp, password, nickname, true);
5. wa.OnConnectSuccess += () =>
6. {
7. Console.WriteLine("Connected");
8. wa.OnLoginSuccess += (phoneNumber, data) =>
9. {
10. MessageBox.Show("Connection success!");
11.
12. wa.SendMessage(txtNo.Text/* Number */, txtMsg.Text);
13. MessageBox.Show("Message sent!");
14. };
15. wa.OnLoginFailed += (data) =>
16. {
17. MessageBox.Show("Login failed: {0}", data);
18. };
19. wa.Login();
20. };
21. wa.OnConnectFailed += (ex) =>
22. .. Read Full Blogs : Sending WhatsApp Message in .Net
You can check more informative blogs and tutorials of .NET, iPhone and android development
blogs section and can also browse the .NET, android and iOS developer forum for posting and
viewing latest questions of all technologies.

More Related Content

What's hot

WebsiteAlive Integration: Magento
WebsiteAlive Integration: MagentoWebsiteAlive Integration: Magento
WebsiteAlive Integration: MagentoWebsiteAlive
 
Mac safari setup
Mac safari setupMac safari setup
Mac safari setupoiisdp2010
 
Passing Custom Variables Into Chat
Passing Custom Variables Into ChatPassing Custom Variables Into Chat
Passing Custom Variables Into ChatWebsiteAlive
 
LastPass Password Manager - the last password you'll ever have to remember
LastPass Password Manager - the last password you'll ever have to rememberLastPass Password Manager - the last password you'll ever have to remember
LastPass Password Manager - the last password you'll ever have to rememberiSiteBuild.com
 
GoSec 2015 - Protecting the web from within
GoSec 2015 - Protecting the web from withinGoSec 2015 - Protecting the web from within
GoSec 2015 - Protecting the web from withinIMMUNIO
 
WebsiteAlive Integration: Squarespace
WebsiteAlive Integration: SquarespaceWebsiteAlive Integration: Squarespace
WebsiteAlive Integration: SquarespaceWebsiteAlive
 
Requirements Arun
Requirements ArunRequirements Arun
Requirements ArunHome
 
WebsiteAlive Integration: Facebook Fanpage
WebsiteAlive Integration: Facebook FanpageWebsiteAlive Integration: Facebook Fanpage
WebsiteAlive Integration: Facebook FanpageWebsiteAlive
 
Itc2009 Click Jacking
Itc2009 Click JackingItc2009 Click Jacking
Itc2009 Click JackingJayMNEA
 
State of Web Security RailsConf 2016
State of Web Security RailsConf 2016State of Web Security RailsConf 2016
State of Web Security RailsConf 2016IMMUNIO
 
How to Secure Your Website infographic
How to Secure Your Website infographicHow to Secure Your Website infographic
How to Secure Your Website infographicKwikturn Media
 
magento 2 mobile login extension
magento 2 mobile login extensionmagento 2 mobile login extension
magento 2 mobile login extensionMageComp
 
How to Boost Your Magento Store Security?
How to Boost Your Magento Store Security?How to Boost Your Magento Store Security?
How to Boost Your Magento Store Security?Bryan Walters
 
Security-Web Vulnerabilities-Browser Attacks
Security-Web Vulnerabilities-Browser AttacksSecurity-Web Vulnerabilities-Browser Attacks
Security-Web Vulnerabilities-Browser AttacksRaghu Addanki
 
My affiliate experience
My affiliate experienceMy affiliate experience
My affiliate experiencewolfmedia
 
Tips for web security
Tips for web securityTips for web security
Tips for web securitykareowebtech
 

What's hot (18)

WebsiteAlive Integration: Magento
WebsiteAlive Integration: MagentoWebsiteAlive Integration: Magento
WebsiteAlive Integration: Magento
 
Mac safari setup
Mac safari setupMac safari setup
Mac safari setup
 
Passing Custom Variables Into Chat
Passing Custom Variables Into ChatPassing Custom Variables Into Chat
Passing Custom Variables Into Chat
 
Instamate
InstamateInstamate
Instamate
 
LastPass Password Manager - the last password you'll ever have to remember
LastPass Password Manager - the last password you'll ever have to rememberLastPass Password Manager - the last password you'll ever have to remember
LastPass Password Manager - the last password you'll ever have to remember
 
Mlm blog pp
Mlm blog ppMlm blog pp
Mlm blog pp
 
GoSec 2015 - Protecting the web from within
GoSec 2015 - Protecting the web from withinGoSec 2015 - Protecting the web from within
GoSec 2015 - Protecting the web from within
 
WebsiteAlive Integration: Squarespace
WebsiteAlive Integration: SquarespaceWebsiteAlive Integration: Squarespace
WebsiteAlive Integration: Squarespace
 
Requirements Arun
Requirements ArunRequirements Arun
Requirements Arun
 
WebsiteAlive Integration: Facebook Fanpage
WebsiteAlive Integration: Facebook FanpageWebsiteAlive Integration: Facebook Fanpage
WebsiteAlive Integration: Facebook Fanpage
 
Itc2009 Click Jacking
Itc2009 Click JackingItc2009 Click Jacking
Itc2009 Click Jacking
 
State of Web Security RailsConf 2016
State of Web Security RailsConf 2016State of Web Security RailsConf 2016
State of Web Security RailsConf 2016
 
How to Secure Your Website infographic
How to Secure Your Website infographicHow to Secure Your Website infographic
How to Secure Your Website infographic
 
magento 2 mobile login extension
magento 2 mobile login extensionmagento 2 mobile login extension
magento 2 mobile login extension
 
How to Boost Your Magento Store Security?
How to Boost Your Magento Store Security?How to Boost Your Magento Store Security?
How to Boost Your Magento Store Security?
 
Security-Web Vulnerabilities-Browser Attacks
Security-Web Vulnerabilities-Browser AttacksSecurity-Web Vulnerabilities-Browser Attacks
Security-Web Vulnerabilities-Browser Attacks
 
My affiliate experience
My affiliate experienceMy affiliate experience
My affiliate experience
 
Tips for web security
Tips for web securityTips for web security
Tips for web security
 

Viewers also liked

Viewers also liked (6)

Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 
Find nerd project management process help guide
Find nerd project management process help guideFind nerd project management process help guide
Find nerd project management process help guide
 
Struktur dan Fungsi Batang
Struktur dan Fungsi BatangStruktur dan Fungsi Batang
Struktur dan Fungsi Batang
 
Struktur dan Fungsi Daun
Struktur dan Fungsi DaunStruktur dan Fungsi Daun
Struktur dan Fungsi Daun
 
Sistem Pencernaan
Sistem Pencernaan Sistem Pencernaan
Sistem Pencernaan
 
Bahan Kimia dan Dampak Negatif
Bahan Kimia dan Dampak NegatifBahan Kimia dan Dampak Negatif
Bahan Kimia dan Dampak Negatif
 

Similar to Sending whats app message in .net

How to Build Real-time Chat App with Express, ReactJS, and Socket.IO?
How to Build Real-time Chat App with Express, ReactJS, and Socket.IO?How to Build Real-time Chat App with Express, ReactJS, and Socket.IO?
How to Build Real-time Chat App with Express, ReactJS, and Socket.IO?Katy Slemon
 
Setting up your ring central sandbox in steps
Setting up your ring central sandbox in stepsSetting up your ring central sandbox in steps
Setting up your ring central sandbox in stepsAnirban Sen Chowdhary
 
pentest mobile app issue
pentest mobile app issuepentest mobile app issue
pentest mobile app issueshekar M
 
Whatsapp-An innovative way of networking
Whatsapp-An innovative way of networkingWhatsapp-An innovative way of networking
Whatsapp-An innovative way of networkingSamrat Sikri
 
Now Whatsapp on Desktop
Now Whatsapp on DesktopNow Whatsapp on Desktop
Now Whatsapp on Desktopdinesh200666
 
Session plan for web technologies lab subject
Session plan for web technologies lab subjectSession plan for web technologies lab subject
Session plan for web technologies lab subjectupen rao
 
"Build AI Compliant Whatsapp-like Chat App Using Qiscus SDK" by Evan Purnama ...
"Build AI Compliant Whatsapp-like Chat App Using Qiscus SDK" by Evan Purnama ..."Build AI Compliant Whatsapp-like Chat App Using Qiscus SDK" by Evan Purnama ...
"Build AI Compliant Whatsapp-like Chat App Using Qiscus SDK" by Evan Purnama ...Tech in Asia ID
 
Can mule integrate with ring central
Can mule integrate with ring centralCan mule integrate with ring central
Can mule integrate with ring centralAnirban Sen Chowdhary
 
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfPERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfarfa442827
 
Mobile devices and SharePoint
Mobile devices and SharePointMobile devices and SharePoint
Mobile devices and SharePointmaliksahil
 
Mobile Devices and SharePoint - Sahil Malik
Mobile Devices and SharePoint - Sahil MalikMobile Devices and SharePoint - Sahil Malik
Mobile Devices and SharePoint - Sahil MalikSPC Adriatics
 
Mdp 6 08 Gspe Final Slideshare
Mdp 6 08 Gspe Final SlideshareMdp 6 08 Gspe Final Slideshare
Mdp 6 08 Gspe Final SlideshareMaxNewbould
 

Similar to Sending whats app message in .net (20)

How to Build Real-time Chat App with Express, ReactJS, and Socket.IO?
How to Build Real-time Chat App with Express, ReactJS, and Socket.IO?How to Build Real-time Chat App with Express, ReactJS, and Socket.IO?
How to Build Real-time Chat App with Express, ReactJS, and Socket.IO?
 
Setting up your ring central sandbox in steps
Setting up your ring central sandbox in stepsSetting up your ring central sandbox in steps
Setting up your ring central sandbox in steps
 
Sencha Touch MVC
Sencha Touch MVCSencha Touch MVC
Sencha Touch MVC
 
Ct bot tutorial
Ct bot tutorialCt bot tutorial
Ct bot tutorial
 
pentest mobile app issue
pentest mobile app issuepentest mobile app issue
pentest mobile app issue
 
Whatsapp-An innovative way of networking
Whatsapp-An innovative way of networkingWhatsapp-An innovative way of networking
Whatsapp-An innovative way of networking
 
Bulk sms gateway integration in java
Bulk sms gateway integration in javaBulk sms gateway integration in java
Bulk sms gateway integration in java
 
How to integrate bulk sms api in java
How to integrate bulk sms api in javaHow to integrate bulk sms api in java
How to integrate bulk sms api in java
 
Now Whatsapp on Desktop
Now Whatsapp on DesktopNow Whatsapp on Desktop
Now Whatsapp on Desktop
 
Getting started with RingCentral
Getting started with RingCentralGetting started with RingCentral
Getting started with RingCentral
 
Session plan for web technologies lab subject
Session plan for web technologies lab subjectSession plan for web technologies lab subject
Session plan for web technologies lab subject
 
"Build AI Compliant Whatsapp-like Chat App Using Qiscus SDK" by Evan Purnama ...
"Build AI Compliant Whatsapp-like Chat App Using Qiscus SDK" by Evan Purnama ..."Build AI Compliant Whatsapp-like Chat App Using Qiscus SDK" by Evan Purnama ...
"Build AI Compliant Whatsapp-like Chat App Using Qiscus SDK" by Evan Purnama ...
 
Can mule integrate with ring central
Can mule integrate with ring centralCan mule integrate with ring central
Can mule integrate with ring central
 
Backtrack Manual Part9
Backtrack Manual Part9Backtrack Manual Part9
Backtrack Manual Part9
 
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfPERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
 
How to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step GuideHow to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step Guide
 
E farming
E farmingE farming
E farming
 
Mobile devices and SharePoint
Mobile devices and SharePointMobile devices and SharePoint
Mobile devices and SharePoint
 
Mobile Devices and SharePoint - Sahil Malik
Mobile Devices and SharePoint - Sahil MalikMobile Devices and SharePoint - Sahil Malik
Mobile Devices and SharePoint - Sahil Malik
 
Mdp 6 08 Gspe Final Slideshare
Mdp 6 08 Gspe Final SlideshareMdp 6 08 Gspe Final Slideshare
Mdp 6 08 Gspe Final Slideshare
 

Recently uploaded

Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Recently uploaded (20)

Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Sending whats app message in .net

  • 1. Sending WhatsApp Message in .Net Hi Friends! This time I am here with a very small article about sending WhatsApp Message from your .Net application. I have described in this blog ”how to send whatsapp messages using do net (.NET) ”. After reading this blog you can easily understand how to use. We have explained step by step with source code. Increase your technical skills after reading this blog. This is very useful for.NET developers. You need following things for that. 1. WART(WhatsApp Registration Tool) This a tool with which you can get the password to be used in API. 2. WhatsApp Api for C#(Highly Unstable Currently and Without any proper documentation) 3. Any mobile number on which you are not using WhatsApp currently and You will not be using it in future for WhatApp(As your number may be blocked if you send multiple messages. Again the blocking criteria is uncertain and my number was blocked after 3-5 messages !!):-( So first thing first. Download the WhatsApp Api for C# via nuget package manager. If you see a reference of the API in your reference,that's good. Otherwise download the API manually and add the reference. Now we are all set for creating our application. So create the UI like following(I used WinForms):-
  • 2. Fig 1-The User Interface On the click event of the button write following code:- string nickname = "Mani"; 1. string senderp = "your number with country code"; 2. string password = "your password"; // Obtain it with WART or Yowsup 3. 4. WhatsApp wa = new WhatsApp(senderp, password, nickname, true); 5. wa.OnConnectSuccess += () => 6. { 7. Console.WriteLine("Connected"); 8. wa.OnLoginSuccess += (phoneNumber, data) => 9. { 10. MessageBox.Show("Connection success!"); 11. 12. wa.SendMessage(txtNo.Text/* Number */, txtMsg.Text); 13. MessageBox.Show("Message sent!"); 14. }; 15. wa.OnLoginFailed += (data) => 16. { 17. MessageBox.Show("Login failed: {0}", data); 18. }; 19. wa.Login(); 20. }; 21. wa.OnConnectFailed += (ex) => 22. .. Read Full Blogs : Sending WhatsApp Message in .Net
  • 3. You can check more informative blogs and tutorials of .NET, iPhone and android development blogs section and can also browse the .NET, android and iOS developer forum for posting and viewing latest questions of all technologies.