[BETA] Telegram bot that notifies users about changes on the Mintlayer Blockchain.
339
The mintlayer/telegram-bot Docker image runs a Telegram bot that notifies users about changes on the Mintlayer blockchain. The bot can be run standalone or as part of a Docker Compose setup, enabling seamless integration with other Mintlayer services.
To run the bot independently, you need to provide the Telegram bot token and the API server URL.
Pull the Docker Image
docker pull mintlayer/telegram-bot:latest
Run the Docker Container
Replace the placeholders with your actual bot token and API server URL.
docker run -d --name mintlayer_bot \
-e BOT_TOKEN=<your_telegram_bot_token> \
-e API_SERVER=<your_api_server_url> \
mintlayer/telegram-bot:latest
Environment Variables
BOT_TOKEN: Your Telegram bot token obtained from BotFather.API_SERVER: The URL of the Mintlayer API server. For example: https://api-server.mintlayer.orgVerify the Bot is Running
Check the logs to ensure the bot started successfully.
docker logs mintlayer_bot
To integrate the bot with other Mintlayer services, use Docker Compose.
Create a docker-compose.yml File
services:
telegram-bot:
image: mintlayer/telegram-bot:latest
container_name: mintlayer_bot
environment:
BOT_TOKEN: <your_telegram_bot_token>
API_SERVER: http://api-web-server:3000
depends_on:
- api-web-server
networks:
- mintlayer_network
api-web-server:
image: mintlayer/api-web-server:latest
container_name: api_web_server
environment:
# Add required environment variables for the API server
networks:
- mintlayer_network
networks:
mintlayer_network:
driver: bridge
Set Up Environment Variables
Replace <your_telegram_bot_token> with your actual bot token.
Start the Services
docker-compose up -d
Check the Services
List the running containers to verify all services are up.
docker-compose ps
Monitor Logs
View the logs of the bot to ensure it's functioning correctly.
docker-compose logs telegram-bot
BOT_TOKEN (Required): Your Telegram bot token.API_SERVER : The URL of the Mintlayer API server the bot will interact with (default to official api server).If your bot requires additional configurations, you can set them via environment variables or configuration files as needed.
To update the bot to the latest version:
Pull the Latest Image
docker pull mintlayer/telegram-bot:latest
Restart the Container
If running standalone:
docker stop mintlayer_bot
docker rm mintlayer_bot
docker run -d --name mintlayer_bot \
-e BOT_TOKEN=<your_telegram_bot_token> \
-e API_SERVER=<your_api_server_url> \
mintlayer/telegram-bot:latest
If using Docker Compose:
docker-compose down
docker-compose pull
docker-compose up -d
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on our GitHub repository.
This project is licensed under the MIT License.
For support or inquiries, please contact the Mintlayer team at [email protected].
Content type
Image
Digest
sha256:e19761102…
Size
38.3 MB
Last updated
almost 2 years ago
docker pull mintlayer/telegram-bot