How to Set Up External Alerts: Difference between revisions
From MultiCharts
(3 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
To send alerts to Telegram, it’s required to connect to the MultiCharts_Alerts bot using Telegram User ID: | To send alerts to Telegram, it’s required to connect to the MultiCharts_Alerts bot using Telegram User ID: | ||
# In '''File → Preferences → External Alerts''' tab click the '''Get your User ID from the Telegram bot''' link | # In '''File → Preferences → External Alerts''' tab click the '''Get your User ID from the Telegram bot''' link. | ||
# On the Telegram web page that will open in your browser click '''Open''' | # On the Telegram web page that will open in your browser click '''Open'''. | ||
# In the MultiCharts_Alerts bot click '''START''' | # In the MultiCharts_Alerts bot click '''START'''. | ||
# You will receive a message with your User ID for Telegram Alerts | # You will receive a message with your User ID for Telegram Alerts. | ||
# Copy the User ID and paste it in the '''Telegram User ID''' field on the External Alerts tab in MultiCharts | # Copy the User ID and paste it in the '''Telegram User ID''' field on the External Alerts tab in MultiCharts. | ||
# Click ''' | # Click '''Test''' to send a test message. | ||
# In the '''Alerts''' settings of your study check the '''Enable Alerts''' and '''Telegram Alerts''' boxes | # In the '''Alerts''' settings of your study check the '''Enable Alerts''' and '''Telegram Alerts''' boxes. | ||
=== Using WebHook === | === Using WebHook === | ||
It is also possible to send Telegram alerts by creating your own bot: | |||
# Create your bot using [https://core.telegram.org/bots/tutorial this guide] | # Create your bot using [https://core.telegram.org/bots/tutorial this guide]. | ||
# Get a Token for you bot | # Get a Token for you bot. | ||
# Enable your bot by sending the /Start command | # Enable your bot by sending the '''/Start''' command. | ||
# Get your Telegram User ID (see the Using Telegram Bot section) | # Get your Telegram User ID (see the Using Telegram Bot section). | ||
# In '''File → Preferences → External Alerts → Slack''' click '''Add''' | # In '''File → Preferences → External Alerts → Slack''' click '''Add'''. | ||
# Insert a request link using your Token and User ID<br>https://api.telegram.org/bot<TOKEN>/sendMessage?chat_id=<USER_ID><br>For example: https://api.telegram.org/bot0000000000:AAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDD/sendMessage?chat_id=0123454678 | # Insert a request link using your Token and User ID<br>https://api.telegram.org/bot<TOKEN>/sendMessage?chat_id=<USER_ID><br>For example: https://api.telegram.org/bot0000000000:AAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDD/sendMessage?chat_id=0123454678 | ||
# Click '''Test''' to send a test message | # Click '''Test''' to send a test message. | ||
== Slack Alerts == | == Slack Alerts == | ||
To send alerts to Slack, it is required to connect using a WebHook URL. | To send alerts to Slack, it is required to connect using a WebHook URL. | ||
# In Slack go to '''File → Settings & Administration → Manage Apps'''. A Manage Apps web page will open up in your browser. | # In Slack go to '''File → Settings & Administration → Manage Apps'''. A Manage Apps web page will open up in your browser. | ||
# Go to '''Custom Integration → Incoming WebHooks → click Add to Slack'''. | # Go to '''Custom Integration → Incoming WebHooks →''' click '''Add to Slack'''. | ||
# Choose or create a new channel and click '''Add Incoming WebHooks integration'''. | # Choose or create a new channel and click '''Add Incoming WebHooks integration'''. | ||
# Copy the WebHook URL and paste it in '''File → Preferences → External Alerts → Slack → Add'''. | # Copy the WebHook URL and paste it in '''File → Preferences → External Alerts → Slack → Add'''. | ||
[[Category:FAQ]] | [[Category:FAQ]] |
Latest revision as of 13:42, 18 June 2024
Telegram Alerts
Using Telegram Bot
To send alerts to Telegram, it’s required to connect to the MultiCharts_Alerts bot using Telegram User ID:
- In File → Preferences → External Alerts tab click the Get your User ID from the Telegram bot link.
- On the Telegram web page that will open in your browser click Open.
- In the MultiCharts_Alerts bot click START.
- You will receive a message with your User ID for Telegram Alerts.
- Copy the User ID and paste it in the Telegram User ID field on the External Alerts tab in MultiCharts.
- Click Test to send a test message.
- In the Alerts settings of your study check the Enable Alerts and Telegram Alerts boxes.
Using WebHook
It is also possible to send Telegram alerts by creating your own bot:
- Create your bot using this guide.
- Get a Token for you bot.
- Enable your bot by sending the /Start command.
- Get your Telegram User ID (see the Using Telegram Bot section).
- In File → Preferences → External Alerts → Slack click Add.
- Insert a request link using your Token and User ID
https://api.telegram.org/bot<TOKEN>/sendMessage?chat_id=<USER_ID>
For example: https://api.telegram.org/bot0000000000:AAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDD/sendMessage?chat_id=0123454678 - Click Test to send a test message.
Slack Alerts
To send alerts to Slack, it is required to connect using a WebHook URL.
- In Slack go to File → Settings & Administration → Manage Apps. A Manage Apps web page will open up in your browser.
- Go to Custom Integration → Incoming WebHooks → click Add to Slack.
- Choose or create a new channel and click Add Incoming WebHooks integration.
- Copy the WebHook URL and paste it in File → Preferences → External Alerts → Slack → Add.