Web application for The SCRIPT Group to use for sending WhatsApp messages and E-Mails to a set of event registrants at once
This requires 5 configuration variables set in a JSON file (data.json) or a YAML file (config.yml) in the home directory :
browser - Browser you want selenium to use. Currently configured only for Google Chrome (chrome) and Mozilla Firefox (firefox)
driver-path - Path to your chromedriver/geckodriver executable
login-api - API URL to verify user login credentials
table-api - API URL to get the list of participants
events-api - API URL to get the list of events
email-api - API URL to send emails to registrants using Sendgrid API from hades
log_channel - Telegram channel ID where activity logs are sent
telebot_api_key - API Key of bot used to send activity logs to Telegram
A basic setup script is included in the repo, that allows the application to function perfectly on Ubuntu 18.04+
- Login with your
tsg id - Select event from list of events
- Enter ids to send message to, separated by a space / enter
allto send to all registrants - Enter subject if sending mail
- Enter message
- For E-Mails, the message is to be written as HTML content
- For WhatsApp, write as you would in mobile app. Write
\nwhenever you want to send a new message.
- Select WhatsApp and/or E-Mail options
- Click on send
- Scan QR code from WhatsApp mobile if sending WhatsApp messages