# Importing the required module import pyautogui as pg import time # Giving Dealy to run program print("program will run after 5 second") time.sleep(5) print("running") # Note : after running the program immediately open whatsapp web then open the persons chat you want to send messages # For loop for i in range(100): # writing the messages pg.write("I LOVE YOU MAMA... MISS YOU LOT MAMA.................") time.sleep(0.5) # Seding the messages by pressing enter pg.press("Enter")