import pyautogui
import time
print("Запуск сделан!")
def sendmessage():
messege = input("Введите сообщение:")
amount = 30
time.sleep(5)
for i in range (amount):
pass
while amount > 0:
amount -= 1
pyautogui.typewrite(messege.strip())
pyautogui.press('enter')
sendmessage()