Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Birthday Bot

Bot for birthday notifications in Telegram chats/groups.

Setup

  1. Clone repository:
git clone https://github.com/alter/TelegramBirthdayBot.git
cd TelegramBirthdayBot
  1. Create .env file 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
  1. Prepare birthdays data file:
mkdir -p data
touch data/birthdays.csv
  1. Add birthdays to data/birthdays.csv:
John Doe,01-01,@johndoe
Jane Doe,31-12,@janedoe

Required 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
  1. Build and run:
docker-compose build
docker-compose up -d

Commands

  • /start - Start bot
  • /help - Show available commands
  • /today - Show today's birthdays
  • /birthdays - Show all birthdays sorted by months from current

Features

  • 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)

About

Telegram bot for Birthday notifications

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages