Bot for birthday notifications in Telegram chats/groups.
- Clone repository:
git clone https://github.com/alter/TelegramBirthdayBot.git
cd TelegramBirthdayBot- Create
.envfile with your settings:
TELEGRAM_BOT_TOKEN=your_bot_token # Get from @BotFather
TELEGRAM_CHAT_ID=your_chat_id # Chat/Group ID where bot will send notifications, get from web.telegram.org URL
CSV_PATH=/app/birthdays.csv # Path to CSV file inside container- Prepare birthdays data file:
mkdir -p data
touch data/birthdays.csv- Add birthdays to
data/birthdays.csv:
John Doe,01-01,@johndoe
Jane Doe,31-12,@janedoeRequired CSV format:
- No header row
- Three columns: Name, Date (DD-MM), Telegram Username
- Telegram Username is optional
- Date must be in DD-MM format
- Each field should be trimmed from spaces
- Build and run:
docker-compose build
docker-compose up -d/start- Start bot/help- Show available commands/today- Show today's birthdays/birthdays- Show all birthdays sorted by months from current
- Daily notifications at 8:00 AM (Moscow time)
- Auto-check birthdays on bot startup
- Birthdays list ordered from current month
- Support for optional Telegram usernames (@mentions)