TradingView webhook alerts to Telegram + chart screenshot
Telegram chat https://t.me/hbalerts. You can discuss the service and test alerts in the chat. The chat will receive service messages from the bot (error log).
Webhook alerts work instantly with no delays. The message is sent to Telegram immediately. In the alert text, you can pass real-time data https://www.tradingview.com/blog/ru/introducing-variables-in-alerts-14880 (the link shows an example of how you can configure the message for yourself) at the moment the alert triggers.
Instructions
- Start a chat with the bots: @hamsterhookbot and @hamsterhook_bot (the second bot is a backup because the first one has reached its limits). Use the bot @fetch_id_bot to get the chat ID where the bot should send notifications. If it is a group chat or channel, the bot must have permission to send messages. To get a channel ID, forward any channel message to the bot @fetch_id_bot. Chat and channel IDs start with the minus sign "-".
- In TradingView, create an alert.
- Enter the webhook URL
http://164.68.120.166/alertorhttps://hamster-bot.com/alert. - Enter a message in the required format.
Message format

{"chatId":-1001208383003, "message":"YOUR_TEXT"}
- chatId - the chat ID in Telegram. You can get the ID using the bot @fetch_id_bot
- (optional) YOUR_TOKEN - a token received after registering on the website or in the bot https://t.me/new_hamster_bot
- YOUR_TEXT - you can add variables to alerts:
{-{exchange}-}:{-{ticker}-}, Price = {-{close}-}, Volume = {-{volume}-}
Custom bot:
You can now use your own bot (with your own name and profile picture)- Create a bot in Telegram using @BotFather
- Get your bot token. Example:
123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 - Add your token to the alert text
Alert message format with token:
{"chatId":-253996939, "message":"YOUR_TEXT","token":"YOUR_TELEGRAM_BOT_TOKEN"}
Chart screenshot:
You can now send a message with a chart image- Open your chart page
https://www.tradingview.com/chart/2Ch0vvlu. The link ends with a random string. Each chart has a unique link. In this example,2Ch0vvluis the chart link - Enable sharing the chart by link

- Add the "chart" field to the alert message

Text formatting
You can format text using HTML tags.- Bold =>
<b>bold</b>,<strong>bold</strong> - Italic =>
<i>italic</i>,<em>italic</em> Code=><code>code</code>Strike=><s>strike</s>,<strike>strike</strike>,<del>strike</del>- Underline =>
<u>underline</u> - link here =>
<a href='https://hamster-bot.com/alert'>link here</a>
Other parameters
copy- parameter to send the alert to several chats/channels at once. Example:"copy": [-153996939, -148926780]img- parameter to send any image with the alert. Example:"img": "http://hamster-bot.com/static/images/hb_logo_dark.avif"(enter the image URL)
NEW Trade any idea and any strategy
TradingView Strategy Alerts Webhook FREE
New strategy. Trading via TradingView Alerts. I offer my own connector implementation. Main position actions: 1 Close position 2 Open position 3 Increase position 4 Partial close 5 Reverse position.