Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (18.4k points)

webbrowser.open('https://api.WhatsApp.com/send?phone=number')

I want to send WhatsApp messages to numbers without adding them contact using python.

so I used upper code in my program but I want to ask that, I am making a tkinter project, in my >>>program cph is phone number variable and I also called cph.get() function but how can I use

this cph variable in this link.

1 Answer

0 votes
by (36.8k points)

You can define your link before opening it.

link = "https://api.WhatsApp.com/send?phone=" + variable

webbrowser.open(link)

Learn data science with python course to improve your technical knowledge. 

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...