QuantDinger supports real-time strategy signal notifications via Telegram Bot.
- Prerequisites
- Step 1: Create a Telegram Bot
- Step 2: Obtain Bot Token
- Step 3: Get Your User ID
- Step 4: Configure Environment Variables
- Step 5: Enable Telegram Notifications in Strategy
- Troubleshooting
- Telegram client installed (mobile or desktop)
- Active Telegram account
- QuantDinger backend service deployed and running
- Search for @BotFather in Telegram (official bot management tool)
- Send the
/newbotcommand to create a new bot - Enter a display name for your bot (e.g.,
QuantDinger Signal Bot) - Choose a unique username ending with
bot(e.g.,quantdinger_signal_bot)
Upon successful creation, BotFather will provide an HTTP API Token in this format:
123456789:ABCdefGHIjklMNOpqrsTUVwxyz
⚠️ Security Notice: Keep this token secure and never share it publicly. If compromised, use/revokecommand in BotFather to regenerate immediately.
- First, send any message to your newly created bot (e.g.,
/start) - Visit the following URL in your browser (replace
YOUR_BOT_TOKENwith your actual token):
https://api.telegram.org/bot{YOUR_BOT_TOKEN}/getUpdates
Example:
https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/getUpdates
- Locate the
chat.idfield in the JSON response — this is your User ID
- Search for @userinfobot in Telegram
- Send any message, and it will reply with your User ID
Add the Bot Token to your backend_api_python/.env file:
# Telegram Bot Token (required)
TELEGRAM_BOT_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyzRestart the backend service after configuration to apply changes.
In the strategy configuration page under "Signal Notifications":
- Enable the Telegram notification channel
- Enter your Telegram User ID in the designated field
💡 Tip: You can enter multiple User IDs (comma-separated) or group/channel IDs for multi-recipient notifications.
- Ensure you've sent a message to the bot first (bot must be activated)
- Verify
TELEGRAM_BOT_TOKENenvironment variable is correctly configured - Double-check the User ID is correct
- Review backend logs for error messages
Yes. Add the bot to a group, then use the group ID (negative number) as the target. Obtain the group ID using the same method as personal ID.
Token format is numbers:alphanumeric_string, e.g., 123456789:ABCdefGHIjklMNOpqrsTUVwxyz


