Example: Sending text messages to Telegram

0 111 Views 1 Comment 4 months ago
  • This is an example script to show how to send text messages to external sources like (in this case) Telegram.

    Please note: This script only works in Version 4 of the Haasbot, version 3 does not have support for this.

    HaasScript Code
    p = ClosePrices(1);
    -- Make some sort of logic to trigger it
    if (p[1] > 100000) then
      -- Please visit the following website listed to see how you can 
      -- get the Telegram token: https://core.telegram.org/bots
      BroadcastToTelegram('123456789:ABCDEFHIJKLMNOP','This is a message send directly from HaasScript')
    • #1824

      I didn’t see, This Version did not Release

Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free