SparkyH1BDropBoxAlert is a Python script designed to monitor specific Telegram chats for messages containing available appointment slots for H1B and H4 visa processing, then alert users via email, push notification and Alexa notifications.
Frustration + ChatGpt + Python + free time + innovation = My tool to alert me --> Booked my slots in Jun on 10-Apr after running this script 24x7 for two weeks. Chat with ChatGPT if you are stuck anywhere or message me if you need any help with confiugration.
Before you can run this script, you will need:
- Python 3.x
- Download & install Python using https://www.python.org/downloads/
- Make sure to install these packages as well. telethon pandas pytz requests
- Download & install Python using https://www.python.org/downloads/
- A Telegram account with API access. https://core.telegram.org/api/obtaining_api_id#:~:text=Obtaining%20api_id&text=Sign%20up%20for%20Telegram%20using,parameters%20required%20for%20user%20authorization.
- An SMTP server (Gmail used in this example) for sending emails.
- An Alexa device with Notify Me and Voice Monkey skills for voice notifications.
- IFFT configuration
- Telegram API: Sign up for Telegram API access and obtain your
api_id
andapi_hash
. Replaceyour_telegram_app_id
andyour_telegram_app_hash
in theconfig.ini
with your actual Telegram API credentials. - SMTP Settings: Replace
youremail@gmail.com
andyour_smtp_password
in theconfig.ini
with your actual email and password that will be used to send notifications. - Configure IFFT Applet with same email ID to receive push notication - Refer Wiki page for more detailed instruction.
- Alexa Notify Me: Set up Alexa Notify Me and obtain your access code. Replace
your_Alexa_notifify_me_access_code
in theconfig.ini
with your actual Notify Me access code. - Alexa Voice Monkey: Set up Voice Monkey for your Alexa device and obtain the URL. Replace
your_Alex_Voice_Monekey_URL
in theconfig.ini
with your actual Voice Monkey URL. Refer WIKI page for detailed instruction
Step 3 to 5 are optional. But highly recommend configuring at least one otherwise, high chance you will the alert.
To install the required Python libraries, run the following command:
pip install -r requirements.txt
python SparkyH1BDropBoxAlert.py