Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to send whatsapp message with python

pip install pywhatkit
import pywhatkit
pywhatkit.sendwhatmsg('+91 9807685671', 'SENDING MESSAGES USING PYWHATKIT', 6,06)
Comment

How to Send WhatsApp API using python

import http.client
conn = http.client.HTTPSConnection("api.ultramsg.com")
payload = "token=1v941eyo9eqixrsi&to=14155552671&filename=hello.pdf&document=https://file-example.s3-accelerate.amazonaws.com/documents/cv.pdf&referenceId="
headers = { 'content-type': "application/x-www-form-urlencoded" }
conn.request("POST", "/instance16/messages/document", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Comment

How to Send WhatsApp API using python

import http.client
conn = http.client.HTTPSConnection("api.ultramsg.com")
payload = "token=1v941eyo9eqixrsi&to=14155552671&image=https://file-example.s3-accelerate.amazonaws.com/images/test.jpg&caption=image Caption&referenceId="
headers = { 'content-type': "application/x-www-form-urlencoded" }
conn.request("POST", "/instance16/messages/image", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Comment

PREVIOUS NEXT
Code Example
Python :: authentication views django 
Python :: intersection of three arrays 
Python :: python get attribute value with name 
Python :: how to get the number of rows and columns in a numpy array 
Python :: get guild from a channel discord py 
Python :: .counter python 
Python :: sns.heatmap 
Python :: how to print 2 list in python as table 
Python :: save and load model during training pytorch 
Python :: solve linear system python 
Python :: difference between set and list in python 
Python :: discord.py events 
Python :: python machine learning 
Python :: set default formatter for python vscode 
Python :: how does works lamda in pyton 
Python :: most common letter in string python 
Python :: bubblesort python 
Python :: python string to list of chars 
Python :: select list of columns pandas 
Python :: python check if string is url 
Python :: Insert list element at specific index 
Python :: DIVAB Solution 
Python :: python button tkinter change color 
Python :: glob.glob python 
Python :: django test imagefield 
Python :: what is serialization in django 
Python :: python list merger 
Python :: steps in for loop python 
Python :: mathplolib avec date 
Python :: python append to dictionary 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =