Skip to content

BakirGracic/telegram-birthday-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get Telegram Messages for Upcoming Birthdays w/ Shell & Cron

Requirements

  • unix machine running 24/7
  • telegram bot
  • secret GitHub Gist with birtdays

How To

1) BOT

  1. create your bot using BotFather (search online for tutorial) and copy provided bot token
  2. send random message to your bot and get chat ID with your bot token from this URL https://api.telegram.org/bot<BOT_ID_HERE>/getUpdates

2) GitHub Gist

  1. create a secret (i.e. private) GitHub Gist and store birtdates there
  2. use syntax for each row: name surname-dd/mm/yyyy (can add more names, like middlenames, just separate with space)
  3. make sure to copy RAW contents link of the Gist

3) Repository

  • cd in /root/
  • run git clone https://github.com/BakirGracic/telegram-birthday-notifier
  • cd inside cd telegram-birthday-notifier
  • run cp settings.example.conf settings.conf
  • run nano settings.conf and edit settings
  • run chmod +x installer.sh && chmod +x main.sh
  • run installer ./installer.sh

Why?

  • aimed for those who don't remember birthdays very well (like me :P) but like the CLI
  • script is very basic and easy to modify, feel free to do such!

About

Get Telegram Messages for Upcoming Birthdays | Shell & Cron

Topics

Resources

Stars

Watchers

Forks

Languages