All Implemented Interfaces:
Notifier

public class TelegramNotifier extends AbstractStatusChangeNotifier
Notifier submitting events to Telegram.
  • Constructor Details

    • TelegramNotifier

      public TelegramNotifier(InstanceRepository repository, org.springframework.web.client.RestTemplate restTemplate)
  • Method Details

    • doNotify

      protected reactor.core.publisher.Mono<Void> doNotify(InstanceEvent event, Instance instance)
      Specified by:
      doNotify in class AbstractEventNotifier
    • buildUrl

      protected String buildUrl()
    • getText

      @Nullable protected @Nullable String getText(InstanceEvent event, Instance instance)
    • setRestTemplate

      public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
    • getApiUrl

      public String getApiUrl()
    • setApiUrl

      public void setApiUrl(String apiUrl)
    • getChatId

      @Nullable public @Nullable String getChatId()
    • setChatId

      public void setChatId(@Nullable @Nullable String chatId)
    • getAuthToken

      @Nullable public @Nullable String getAuthToken()
    • setAuthToken

      public void setAuthToken(@Nullable @Nullable String authToken)
    • isDisableNotify

      public boolean isDisableNotify()
    • setDisableNotify

      public void setDisableNotify(boolean disableNotify)
    • getParseMode

      public String getParseMode()
    • setParseMode

      public void setParseMode(String parseMode)
    • setMessage

      public void setMessage(String message)