Skip to content

Vantablack/starhub-telegram-bot

Repository files navigation

StarHub Telegram Bot (Python)

Why?

I created this bot back when the old StarHub app was horrible.

Navigating to the data usage page takes a few taps and every movement was being tracked (analytics).

Since I spend more time on Telegram, why not create a bot that simplifies the experience of retrieving that information?

screenshot

The main tools used were:

Relevant Documentation

Deployment

How this project is deployed is through

Build Docker Image

docker build -t starhub-tg-bot .

Run Docker Image

docker run -d --name starhub-tg-bot -v `pwd`/config:/app/config:ro starhub-tg-bot
docker run -d --name starhub-tg-bot -v `pwd`/config:/app/config:ro starhub-tg-bot && docker logs -f starhub-bot
docker run -d --rm --name starhub-tg-bot -v `pwd`/config:/app/config:ro starhub-tg-bot && docker logs -f starhub-bot

moby/moby#4830 (comment)

Development

I am currently using Pipenv to manage the packages required for this project.

Pipenv sets the Python version to 3.9.

Follow this guide to install Pipenv.

To install all the required packages from Pipfile:

pipenv install

To activate a shell with all the packages:

pipenv shell

To run the bot:

python3 /src/main.py

About

Telegram Bot to retrieve StarHub data usage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published