Class TelegramServiceImpl

java.lang.Object
bpmn.handler.telegram.TelegramServiceImpl
All Implemented Interfaces:
TelegramService

@Service public class TelegramServiceImpl extends Object implements TelegramService
  • Constructor Details

    • TelegramServiceImpl

      public TelegramServiceImpl(@Value("${telegram.bot.token:#{null}}") String botToken)
  • Method Details

    • sendMessage

      public void sendMessage(String chatId, String message, MessageFormat messageFormat) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Specified by:
      sendMessage in interface TelegramService
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException
    • sendMessage

      public void sendMessage(String chatId, String message) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Specified by:
      sendMessage in interface TelegramService
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException