Class TelegramTemplateProcessor
java.lang.Object
io.github.yvasyliev.forwarder.telegram.thymeleaf.TelegramTemplateProcessor
- Direct Known Subclasses:
TelegramBotTemplateProcessor
A processor that uses a Thymeleaf template engine to process Telegram templates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess(TemplateContext templateContext) Processes the given template context using the Thymeleaf template engine.
-
Constructor Details
-
TelegramTemplateProcessor
public TelegramTemplateProcessor(org.thymeleaf.ITemplateEngine templateEngine)
-
-
Method Details
-
process
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
-