Mattia Mascarello
eba906075f
This commit adds a privacy policy feature for new users. When a new user joins, the code reads the privacy policy from the "POLICY.md" file and sends it to the user in chunks of 4096 characters, respecting Telegram's character limit. This ensures that the privacy policy is sent in a readable format without splitting it in the middle of a line. |
||
---|---|---|
dataTypes.py | ||
LICENSE | ||
main.py | ||
POLICY.md | ||
README.md | ||
requirements.txt |
Birthday Reminder Bot 🎂
A simple telegram bot 🤖 that reminds you of your friends' birthdays 🥳.
- Birthday list (current age ⏲️, time to birthday 🔜, sorted 🥇)
- Monthly 📆, weekly 📆, daily 📆 reminders
I made this bot for my personal use, but you can use it too. Just follow the instructions below.
Installation :
- Clone the repository
git clone git@github.com:MatMasIt/birthdaybot.git
- Create a virtual environment 🏗️
python3 -m venv venv
- Activate the virtual environment 🔦
source venv/bin/activate
- Install the requirements 📥
pip install -r requirements.txt
- Create a
.env
file in the root directory and add the following variables (you can obtain the token at @botfather)
TOKEN=YOUR_TELEGRAM_BOT_TOKEN
- Run the bot ⏯️
python bot.py
Todo 📝
- Ask for timezone 🕒 and use that to notify birthdays at the local midnight, instead of the CET time