I am currently struggling with creating a spamming bot for several groups and the only way I found is the following:
import pyautogui
import time
msg = input("Enter the message: ")
n = input("How many times ?: ")
print ("t minus")
count = 5
while(count != 0):
print(count)
time.sleep(1)
count -= 1
print("Fire in the hole!!!")
for i in range(0,int(n)):
pyautogui.typewrite(msg)
But in this case its only allowing me to put a single line message. My complete desire is to read from a file, so I can prepare the file script to execute it (read from it).
But if this is not achievable can you advise me how to modify this code at least to allow me to add new line not send a single one (as from the case above).