-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathscript.py
More file actions
29 lines (22 loc) · 740 Bytes
/
Copy pathscript.py
File metadata and controls
29 lines (22 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Program to send bulk customized messages through Telegram Desktop application
# Author @inforkgodara
import pyautogui
import pandas
import time
excel_data = pandas.read_excel('Recipients data.xlsx', sheet_name='Recipients')
count = 0
time.sleep(3)
for column in excel_data['Username'].tolist():
pyautogui.press('esc')
pyautogui.hotkey('ctrl', 'f')
time.sleep(1)
pyautogui.write(str(excel_data['Username'][count]));
pyautogui.press('enter')
time.sleep(2)
pyautogui.press('down')
pyautogui.press('enter')
pyautogui.write(str(excel_data['Message'][0]));
pyautogui.press('enter')
pyautogui.press('esc')
count = count + 1
print('The script executed successfully.')