Sending alerts to Telegram

22 April 2019

Telegram is our most popular integration, so it makes sense to include a step by step guide to help you get started. Each Telegram integration you add can send alerts to a single chat, group or channel, and there are a couple of simple steps to go through to securely link up Alertatron and your chat session.

By default your account will already have most of what you need set up. The steps below will outline how to connect Alertatron to your Telegram chat/group.

  1. Go to the Telegram group in Alertatron (you'll find it in the Alerts menu at the top of the page). Any alerts arriving in this group will be sent to Telegram.
  2. Next to the title, you'll see if says sent to: followed by a Telegram logo. Click on the logo to go to the telegram integration settings.
  3. On the settings page you'll see some detailed instructions on how to link up your account with our Telegram bot. The instruction vary slightly depending on if you are connecting to a private chat (just you), a group or a channel.
Registering the Alertatron bot in your telegram account. Note that the bots avatar has been changed since this capture was taken.
Registering the Alertatron bot in your telegram account. Note that the bots avatar has been changed since this capture was taken.

Once Alertatron and Telegram are linked up, add #tg or #telegram to any alerts you'd like to forward to your Telegram account.

You can edit these hashtags and change them to anything you like from the Telegram group settings. Go to the group from the Alerts menu, click on the 'cog' icon to the right and enter your keywords in the Only include alerts containing the following text... section of the settings.

Adding a new integration from scratch

The above steps get you started with using the default setup, but you can arrange things how you like, adding integrations to many different telegram groups and channels.

If all you wanted to do was get alerts into your Telegram account, the above will have done that, so you can ignore the rest of this article. If you want to know how to set up advanced config, then read on...

In this example we'll add a brand new telegram integration to your inbox, but you can add integrations to any group, even adding several integrations connected to different Telegram accounts to the same group if you like.

So, let’s get started. Head over to your inbox and click on the ‘Add’ button and you’ll be taken to a list of all supported integrations.

Click on Add Telegram and add the integration to your inbox. You'll be taken straight to the new integrations settings for the final step.

The last step is to link up our friendly Telegram bot with your chat session. Start a chat with the bot by either clicking on the telegram link in the setup guide, or searching for it by name (you'll need to do this to add it to a group chat or channel).

Note that if you're trying to link up Alertatron to a Telegram Channel, then you will need to add our bot to the channel and make it an admin. This is because only admins can post messages into a channel.

Once you’ve started a chat with the bot, type in the /register command shown in the settings page. The code at the end is unique and is updated each time you use it. You should get a message back from the bot like the one shown in the picture, to confirm the connection.

It is also worth pointing out that if you change from a private chat to a group chat, or a group chat to a 'super group', you will need to redo the /register as the chat session is changed when this happens.


Settings

The Telegram integration offers a few options to give you more control over your alerts.

Image settings

  • Resolution lets you adjust the size of the images that are sent to Telegram. Some Telegram clients (esp the Windows one) appear to resize images if they are large and does a pretty bad job of it too. This lets you adjust things to work around this.
  • Send as File Attachment causes your images to be attached to your alert without Telegram applying any additional compression. If you want the best quality images to appear in Telegram, use this option, at the cost of making them a little more awkward to view.
  • Wait for images will cause Alertatron to wait before sending your alert to Telegram. It will wait until all the images have been captured and are ready to go so everything can be sent at once. With this setting off, the text of your alert will be sent immediately, with the images arriving later, as soon as they are ready.

Content settings

  • Allow Markdown in alert messages Enable this and we'll tell Telegram that your alert messages contain Markdown formatted text, so you can use Bold, italic and so on. Note that Telegram's Markdown support is very fussy, so make sure there are no errors.
  • Remove content after a line starting with ---- With this option enabled you remove part of you alert message before it is sent to Telegram. Include a line consisting of just 4 hyphens in your alert messasge, and only the content before this will be sent to Telegram. The line of hyphens, and everything that comes after it will not be sent to Telegram. This is great for removing bot commands, hashtags, or any other content that you don't want appearing in your Telegram group.

Some images from Unsplash

About Alertatron.com

Your TradingView alerts, with automated trading, with charts, PM'd to you.
Auto-trade on any alert.

Automate Trading

Trigger orders on popular cryptocurrency exchanges and trade 24/7. Access powerful algorithmic orders to maximise your profits.

Capture Charts

See a high quality chart with every alert, captured at the moment the alert was triggered. See exactly what the market was doing and make informed decisions.

Integrations

Connect your alerts to Telegram (channels, groups and private chats), Discord, Slack, email or send push notifications to other services with webhooks.

Easy To Setup

Nothing to install and no browser extensions. Captures alerts 24/7, even with your computer switched off. Be up and running in seconds.

Related content

Guide

Getting started with Alertatron Groups

We're all familiar with email. All your incoming emails arrive in your Inbox, but as we receive so many, most email services offers lots of ways to help you organise them into folders as they arrive. These are called all sorts of things, from folders and groups, to filters, labels, smart folders and many more.

Read more

Guide

Include current price and more in your alerts

Using TradingView alerts, it is now possible to add the current price, indicator values and more into your alert messages. Here we explain how...

Read more

Guide

Adjusting the symbol and time interval on saved TradingView charts

TradingView has a feature that lets you view any of your shared charts using a different symbol or time interval to the one used on the saved chart. Alertatron offers a couple of ways you can use this to adjust your charts for each alert that arrives.

Read more

Guide

Keeping your alerts organized

It's too easy to end up with all your alerts mixed up in a big mess. Here's how we recommend you keep things organised and ensure you see the right alerts in the right places at the right times.

Read more

Guide

Making use of groups

Groups provide a powerful way to filter your alerts into different categories. Each group can have its own set of integrations linked to it so each group can forward alerts to different places.

Read more

Guide

Troubleshooting guide

Answers to common questions and problems

Read more

Guide

Getting alerts from TradingView

It's simple to ensure that every alert you have configured in TradingView comes straight through to Alertatron, ready to be sent on to places like Telegram or Discord. Let's get started...

Read more

Guide

How to capture a chart with your TradingView alerts

When you get an alert from a trading signal, via TradingView, it is so useful to be able to glance at a relevant chart immediately. Alertatron can attach a snapshot of your charts to your alerts if you like.

Read more

Guide

Getting alerts from web services

Many services can announce interesting events by calling a magic URL called a Webhook. By entering your unique Alertatron webhook address to these services, you can pass those alerts on to any supported integration, like Telegram or Discord.

Read more