TradingView Alert to Telegram, Discord, Twitter, and Email – All via Webhooks
If you're a trader or developer who spends time on TradingView, you know the alert system is powerful but limited when it comes to getting those signals somewhere useful. You might want a Telegram bot that pings you when BTC breaks a level, a Discord channel that logs every alert, or even a tweet when something big happens.
This open-source project does exactly that. It listens for TradingView webhooks and forwards them to multiple platforms at once. No multi-step Zapier setups, no paid services. Just a PHP script and a server.
What It Does
The repo is a lightweight PHP bot that receives TradingView alerts via webhook and routes them to:
- Telegram
- Discord
You set up a webhook URL in TradingView (e.g., https://your-server.com/webhook.php). The alert payload gets parsed and sent to whichever services you configure. It's designed to be simple and not require any database – just a config file and a few API tokens.
Why It’s Cool
The biggest win here is simplicity. Many similar tools rely on heavy frameworks or external services. This is a single PHP file with a config. You literally:
- Clone the repo
- Edit
config.phpwith your API keys and channel IDs - Set up the webhook in TradingView
- Done
It also handles multiple platforms simultaneously. You don't need separate bots for Telegram vs Discord. The same alert goes everywhere. That's useful if you have different audiences or want redundancy.
A neat implementation detail: it supports TradingView’s custom JSON payloads. You can include variables like {{close}}, {{ticker}}, etc., right in the alert message, and they get injected into your Telegram/Discord messages.
How to Try It
You'll need a server with PHP (7.4+). A $5 DigitalOcean droplet or a cheap shared host works fine. No database required.
git clone https://github.com/fabston/TradingView-Webhook-Bot.git
cd TradingView-Webhook-Bot
cp config.example.php config.php
Edit config.php to add your Telegram bot token, Discord webhook URL, Twitter API keys, or SMTP settings – whichever you want to use.
Then point TradingView to:
https://your-server.com/webhook.php?secret=<your-secret-key>
That's it. TradingView alerts now become Telegram messages, Discord embeds, tweets, or emails.
Final Thoughts
This is one of those tools that just works and doesn't overcomplicate things. If you're a dev who trades or manages alerts for any reason, it's worth the 10 minutes to set up. The code is clean, well-commented, and easy to extend (add Slack? Matrix? Just copy the pattern).
One thing I'd add? Some basic logging or a simple dashboard would be nice, but for a single-purpose tool, it nails the target. Props to fabston for the practical solution.
Follow us at @githubprojects for more dev tools and open-source projects.