Package org.bgerp.plugin.telegram
Class ExpressionObject
java.lang.Object
org.bgerp.plugin.telegram.ExpressionObject
- All Implemented Interfaces:
ExpressionObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringescapeMarkdown(String text) Escapes Markdown characters fromSPECIAL_CHARACTERS_MD.voidsendMessage(String chatId, String text) Send message in a chat.voidsendMessage(String chatId, String text, String parseMode) Send message in a chat with specific formatting messagevoidsendMessage(Collection<Integer> userIds, String text) Send message to users.voidsendMessage(Process process, String text) Send a message to the executor of the process.voidsendMessageForProcess(Process process, String text) Send message in chat process.void
-
Constructor Details
-
ExpressionObject
public ExpressionObject()Public constructor, can be used in Custom
-
-
Method Details
-
escapeMarkdown
Escapes Markdown characters fromSPECIAL_CHARACTERS_MD.- Parameters:
text-- Returns:
-
toContext
- Specified by:
toContextin interfaceExpressionObject
-
sendMessage
Send message in a chat.- Parameters:
chatId- telegram chatIdtext- text message
-
sendMessage
Send message in a chat with specific formatting message- Parameters:
chatId- telegram chatIdtext- text messageparseMode- ParseMode
-
sendMessage
Send message to users.- Parameters:
userIds- user IDstext- text message
-
sendMessage
Send a message to the executor of the process.- Parameters:
process- object processtext- text message
-
sendMessageForProcess
Send message in chat process.- Parameters:
process- object processtext- text message
-