Class TelegramNotifier

java.lang.Object
nxt.addons.AbstractContract<String,Integer>
com.jelurida.ardor.contracts.TelegramNotifier
All Implemented Interfaces:
Contract<String,Integer>

public class TelegramNotifier extends AbstractContract<String,Integer>
Post a message to slack using a web hook.
  • Constructor Details

    • TelegramNotifier

      public TelegramNotifier()
  • Method Details

    • init

      public void init(InitializationContext context)
      Description copied from interface: Contract
      Contract initialization.

      Invoked once after loading the contract class, before any other callback. Use this callback to initialize long running services required by the contract.

      Parameters:
      context - the contract context
    • processInvocation

      public Integer processInvocation(DelegatedContext context, String text)
      Process internal invocation by another contract
      Specified by:
      processInvocation in interface Contract<String,Integer>
      Overrides:
      processInvocation in class AbstractContract<String,Integer>
      Parameters:
      context - the context delegated by the invoking contract
      text - the text to post on telegram
      Returns:
      response code
    • main

      public static void main(String[] args)