A fun personal project to create a Telegram bot. This bot sends notifications on the number of GitHub commits needed to create the desired GitHub contribution graph.
Ensure that Python is already installed with version 3.8 or later.
Install Poetry, a tool for dependency management and packaging in Python.
Environment File
- Create a file name
.env
- Inside the file, include
export BOT_TOKEN=<your_token>
. Inyour_token
, replace with the token from Telegram. Instructions on how to get the token can be found here
Generate CSV File
Run bot.py
- Load environment file, run
source .env
- Run file in virtual environment
poetry run python3 bot.py
In Telegram, search for @BotFather
Start the conversation with the bot using /start
Create a new bot using /newbot
Provide a name and username for your bot. With this step, you should receive your token that should be stored safely.