Coder Social home page Coder Social logo

gh-action-telegram-birthday-reminder-template's Introduction

Telegram Birthday GH-Action

Setup Actions

Copy this template repository to your own account and follow the steps below.

Make sure the repository is private, you don't want to share your all your birthdays with the world

Step 1 - Create a Telegram Bot

To create a Telegram Bot you can follow the instructions here

Step 2 - Setup the Repository Secrets

You need to add the following secrets to your repository:

BOT_TOKEN - The token you received from the BotFather

CHAT_ID - The Chat ID of the chat you want to send the messages. Find out how to get the Chat ID here

Step 3 - Setup the Birthday File

The Birthday File is a yaml file located at the root of the repository. It contains the birthdays of the people you want to be reminded of. The file should look like this:

timezone: Europe/Berlin
birthdays:
  - name: Example User
    date: 1980-02-26
  - name: Example User 2
    date: 1980-02-24
  - name: Example User
    date: 02-26
  - name: Example User 2
    date: 02-24
  - name: Example User 5
    date: 1980-02-28

The timezone needs to be set. To find the correct timezone you can use this list.

The birthdays section contains a list of all the birthdays. The name is the name of the person and the date is the date of the birthday. The date can be in the format YYYY-MM-DD or MM-DD. If the date is in the format MM-DD can be used if you don't want to specify the year or don't know the year.

Step 4 - Configure the GitHub Action

The Cron Job is used to schedule the Action. You can find it inside the .github/workflows/birthday.yml file. You need to change the daily cron job to the time you want to be reminded of the birthdays. Githug Actions uses UTC time, so you need to convert your local time to UTC. You can use following website to convert the time: here

More Configurations

You can also configure the first_reminder and second_reminder to change the time the reminders are sent.

first_reminder: 2 # remind me 2 days before birthday
second_reminder: 4 # remind me 4 days before birthday

gh-action-telegram-birthday-reminder-template's People

Contributors

julianfbeck avatar

Forkers

nguyentt1407

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.