It is a python script that sends the Telegram messages automatically from the Telegram desktop application.
It is a python script that sends the Telegram messages automatically from Telegram desktop application. It can be configured to send advertising messages. It read data from an excel sheet and send a configured message to people.
In order to run the python script, your system must have the following programs/packages installed and the contact number should be saved in your phone (You can use bulk contact number saving procedure of email). There is a way without saving the contact number but has the limitation to send the attachment.
Note: If you wish to send an image or documents instead of text you can write code to add attachment send functionality.
# 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.')
Note: The script may not work in case if the accessibility of Telegram changed.
Find it on youtube. https://youtu.be/EHWqx8r0f2M