Class TelegramTemplateProcessor

java.lang.Object
io.github.yvasyliev.forwarder.telegram.thymeleaf.TelegramTemplateProcessor
Direct Known Subclasses:
TelegramBotTemplateProcessor

public class TelegramTemplateProcessor extends Object
A processor that uses a Thymeleaf template engine to process Telegram templates.
  • Constructor Details

    • TelegramTemplateProcessor

      public TelegramTemplateProcessor(org.thymeleaf.ITemplateEngine templateEngine)
  • Method Details

    • process

      public String process(TemplateContext templateContext)
      Processes the given template context using the Thymeleaf template engine.
      Parameters:
      templateContext - the template context containing the template and its associated context
      Returns:
      the processed template as a String