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.
- 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.
- 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.
- 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.
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.
Note: If you want to send some alerts to one Telegram Group, and some to a different Telegram Group, you’ll be able to do this by adding filter groups to Alertatron and adding Telegram integrations to each of them. Sorry that so many things are called groups here…
The Telegram integration offers a few options to give you more control over your alerts.
- 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.
- 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
Your TradingView alerts, with automated trading, with charts, PM'd to you.
Auto-trade on any alert.
Trigger orders on popular cryptocurrency exchanges and trade 24/7. Access powerful algorithmic orders to maximise your profits.
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.
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.
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.
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.
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.