Class TelegramConfig

java.lang.Object
es.urjc.etsii.grafo.services.messaging.TelegramConfig

@Configuration @ConfigurationProperties(prefix="event.telegram") public class TelegramConfig extends Object
Telegram configuration, see event.telegram section inside the application.yml file.
  • Constructor Details

    • TelegramConfig

      public TelegramConfig()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Is the Telegram integration enabled?
      Returns:
      true if enabled, false otherwise
    • setEnabled

      public void setEnabled(boolean enabled)
      Is the Telegram integration enabled?
      Parameters:
      enabled - true to enablee, false otherwise
    • getToken

      public String getToken()
      Telegram API token, as returned by BotFather
      Returns:
      Telegram API token
    • setToken

      public void setToken(String token)
      Telegram API token, as returned by BotFather
      Parameters:
      token - Telegram API token
    • getChatId

      public String getChatId()
      Destination Chat ID, where we will send the messages
      Returns:
      destination chat ID.
    • setChatId

      public void setChatId(String chatId)
      Destination Chat ID, where we will send the messages
      Parameters:
      chatId - destination chat ID.