Author: StockSharp
N: 1138
Downloads: 
Documentation

SocialBot

All our programs (Designer, Hydra, Shell, Terminal), as well as those custom-built on API, can send messages to Telegram channels and groups, both public and private.

Telegram is a leading messenger, making it an ideal communication tool for interacting with a trading robot (receiving notifications). For managing robots, we offer another service - Telegram robots (please refer to the service where the Telegram bot authorization process is described).

To configure notifications in Telegram:

  1. Go through the bot authorization process as described in the Telegram robots service.
  2. Create a channel or group (private or public).
    TelegramChannelCreating.png

    TelegramChannelType.png

  3. Add the StockSharpBot to your channel or group.
    TelegramAddBot.png

  4. Make the bot an administrator.
    TelegramMakeAdmin.png

  5. Provide the necessary permissions for proper functionality.
    TelegramBotPermissions.png

  6. Write a special word activate in the channel or group.
    TelegramChannelActivate.png

  7. If successful, you will receive a response.
    TelegramChannelActivated.png


The created channel is now available for your strategies and trading robots:

  • In the case of using Designer, click on the list of channels in the top panel:
    DesignerRibbonChannels.png

    In the appeared window, you will see the lists of all channels and groups where you have activated the bot:
    TelegramListChannels.png

    By clicking the button with the Telegram icon, a test message will be sent. If you receive it, it means that everything is done correctly.
    DesignerTestMessage.png

    In the free tariff, a line mentioning the StockSharp website is added. This line is removed in paid tariffs.

    If you have multiple output channels in Telegram and you want to send different strategies to different channels, you can specify specific channels for each strategy in the properties:
    DesignerRemoteSettings.png

  • In other programs, the settings are similar to Designer. For example, in the Hydra program, you can configure error logging for market data downloading if Hydra is located on a server, and you need to receive prompt information about a failed connection.
  • In the case of Shell or API, you can look at the code that integrates your strategies with the Telegram service.






Attach files by dragging & dropping, , or pasting from the clipboard.

loading
clippy