2.0 KiB
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:
- Telegram API key which can be obtained for free by talking to BotFather, more details here.
- Discord API key which can be obtained for free at https://discord.com/developers
Finally, you will need a matketdata.app API key. They offer a free tier that should be enough for any private groups, more details here.
!!! tip The bot will function without a matketdata.app key and will fall back to only using cryptocurrency data.
!!! note
If you want to accept donations you also need a Stripe API key and provide a STRIPE
key to your bot. [https://stripe.com/]
Installing
Once Docker is installed and you have your API keys for Telegram and matketdata.app 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_KEY \
-e MARKETDATA=MARKETDATA_API_KEY \
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.