The Avian Stratum Proxy supports Discord and Telegram notifications for important mining events.
The proxy can send notifications for:
- Block Found - When a share meets network difficulty and a block is submitted
- Miner Connected - When a new mining worker connects to the proxy
- Miner Disconnected - When a mining worker disconnects from the proxy
- Open your Discord server settings
- Go to Integrations → Webhooks
- Click New Webhook
- Configure the webhook:
- Set a name (e.g., "Mining Bot")
- Choose the channel for notifications
- Click Copy Webhook URL
- Add to your
.envfile:
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/YOUR_WEBHOOK_URLBlock notifications include:
- 🎉 Block found announcement
- Block height
- Transaction hash
- Mining pool/address info
- Open Telegram and search for @BotFather
- Send
/newbotand follow the prompts - Copy the bot token provided
- Add to your
.envfile:
TELEGRAM_BOT_TOKEN=your_bot_token_here- Start a chat with your new bot
- Send any message to the bot
- Visit:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates - Find
"chat":{"id":XXXXXXXXX}in the response - Add to your
.envfile:
TELEGRAM_CHAT_ID=your_chat_id_hereTo receive notifications in a group:
- Add your bot to the group
- Send a message mentioning the bot
- Use the getUpdates method above to find the group chat ID (usually negative)
| Variable | Description | Required |
|---|---|---|
DISCORD_WEBHOOK_URL |
Discord webhook URL | Optional |
TELEGRAM_BOT_TOKEN |
Telegram bot API token | Optional |
TELEGRAM_CHAT_ID |
Telegram chat/group ID | Optional |
ENABLE_NOTIFICATIONS |
Enable/disable all | Optional |
curl -H "Content-Type: application/json" \
-d '{"content":"Test notification from Avian Proxy"}' \
YOUR_DISCORD_WEBHOOK_URLcurl "https://api.telegram.org/botYOUR_BOT_TOKEN/sendMessage?chat_id=YOUR_CHAT_ID&text=Test"🎉 **AVN Block Found!**
Height: 123456
Hash: 00000000000000000003...
Reward: 5,000 AVN
⛏️ New miner connected
Worker: RYourAddress.worker1
IP: 192.168.1.100
- Verify webhook URL is correct and complete
- Check Discord server permissions
- Ensure webhook channel exists
- Verify bot token is correct
- Ensure you've started a chat with the bot first
- Check that chat ID is correct (use getUpdates to verify)
- For groups, ensure bot has permission to send messages
- Check
ENABLE_NOTIFICATIONSis not set tofalse - Review proxy logs for notification errors
- Verify network connectivity to Discord/Telegram APIs