Class TelegramTemplateEngine
java.lang.Object
io.github.yvasyliev.telegramforwarderbot.service.TelegramTemplateEngine
Service for processing Telegram templates using Thymeleaf.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TelegramTemplateEngine
public TelegramTemplateEngine()
-
-
Method Details
-
process
Processes the given template with the empty context.- Parameters:
template
- the template to process- Returns:
- the processed template as a String
-
process
Processes the given template with the provided context. This method sets the Telegram properties and appender properties as variables in the context.- Parameters:
template
- the template to processcontext
- the context to use for processing- Returns:
- the processed template as a String
-