This guide will walk you through setting up Blonk for development or deployment. We'll focus on the specific steps needed to get Blonk running, assuming you have basic development tools already installed.
- Rust and Cargo (installation guide)
- Git (for cloning the repository)
- Telegram account
- Create a Telegram bot using BotFather and obtain its token
- Setup a multisig with 2+ members using Squads v3
- Create a Telegram group with your multisig members
- Configure environment variables
- Run the services
git clone https://github.com/your-org/blonk
cd blonk
You'll need:
- A Telegram bot token (looks like
123456789:ABCdefGHIjklmNOPQRstuvwxyz
) - A Telegram group with all multisig members
- The group's ID (a negative number)
- Telegram IDs for all group members
The easiest way to configure Blonk is through Cargo's environment configuration. Create the following structure:
blonk_bot/
└── .cargo/
└── config.toml
Here's a template for your config.toml
:
[env]
TELOXIDE_TOKEN = "your_bot_token_here"
WHITELIST = "[[\"telegram_id_1\",\"private_key_1\"],[\"telegram_id_2\",\"private_key_2\"]]"
API_BASE_URL = "http://127.0.0.1:3000"
MULTISIG_PUBKEY = "your_multisig_pubkey"
GROUP_CHAT_ID = "-your_group_chat_id"
Variable | Description |
---|---|
TELOXIDE_TOKEN |
Your Telegram bot token |
WHITELIST |
JSON array of [telegram_id, private_key] pairs for all multisig members |
API_BASE_URL |
URL where blonk_api will run (default: http://127.0.0.1:3000 ) |
MULTISIG_PUBKEY |
Public key of your Squads v3 multisig. Not to be confused with the public key of the vault. You can find the public key of your Multisig here: Dashboard -> Info |
GROUP_CHAT_ID |
ID of your Telegram group |
In separate terminal windows:
# Terminal 1
cd blonk_api
cargo run
# Terminal 2
cd blonk_bot
cargo run
- Bot not responding: Check your
TELOXIDE_TOKEN
is correct - API connection errors: Verify
API_BASE_URL
matches where you're running blonk_api - Whitelist format errors: Double-check JSON formatting in WHITELIST env var
- Check the logs for both
blonk_api
andblonk_bot
- Ensure all private keys in whitelist correspond to multisig members
- Verify your multisig setup on Squads v3
- Squads v3 Documentation - For multisig setup
- Telegram Bot API - For bot-related issues
- Rust Installation - If you need to install Rust
Need more help? Open an issue in our GitHub repository!