Skip to content

Self Hosted Bot

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

This project runs neatly in a docker container, so all that you need to run it yourself is Docker installed on your system.

Depending on what platform you'll need:

Finally, you will need and IEX Cloud API key. They offer a free tier that should be enough for any private groups, more details here.

Tip

The bot will function without an IEX key and will fall back to only using cryptocurrency data.

Note

If you want to accept donations you also need a Stripe API key. [https://stripe.com/]

Installing

Once Docker is installed and you have your API keys for Telegram and IEX Cloud getting the bot running on any platform is extremely easy.

Download or clone the repository to your machine and open a terminal in the project and build the Docker container.

docker build -t simple-telegram-bot .

Then run the bot using your API keys.

docker run --detach \
     -e TELEGRAM=TELEGRAM_API \
     -e IEX=IEX_API \
      simple-telegram-bot

Your bot should be running! If you are new to Docker, I would recommend checking out its documentation for full control over your bot.