Reminds you of upcoming birthdays based on your Google Contacts list. It sends a pre-formatted message to your Telegram chat so you can just click on it and pre-fill over WhatsApp
-
Python 3.7+
-
Create Google OAuth2 credentials using the
https://www.googleapis.com/auth/contacts.readonly
scope, and save thecredentials.json
file into the root of this project. -
Telegram bot (create yours via BotFather). More info here, and update the
config.yaml
file with your bot API key as well as your chat_id.
-
Install the required libraries on a virtual enviroment (e.g. python3.7 -m pip install -r requirements.txt)
-
Edit
config.yaml
file with your Telegram Bot API key, your Name (so your contact can be ignored), and themsg_settings
field with its related information - please remember to add the{name}
variable into the message so it can be properly filled by the script. -
Run
grab_contacts.py
(e.g. python3.7 grab_contacts.py). This will save your google contacts to a csv file (bday_detials.csv) -
Set up a cron job to run
message.py
once a day. This file will check for existing birthdays on the day of, and if it detects any, will send you a message over Telegram.