Class ExpressionObject
java.lang.Object
org.bgerp.plugin.msg.max.ExpressionObject
- All Implemented Interfaces:
ExpressionObject
MAX JEXL API for sending messages to chats.
Same API structure as telegram ExpressionObject.
Usage in doExpression:
max.sendMessage(chatId, "Hello") max.sendMessage(process, "Status changed") max.sendMessage(userIds, "Hello") max.sendMessageForProcess(process, "Hello")
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleansendMessage(String chatId, String text) Sends a plain text message to a chatbooleansendMessage(String chatId, String text, String parseMode) Sends a message to a chat with a specific formatbooleansendMessage(Collection<Integer> userIds, String text) Sends a plain text message to usersbooleansendMessage(Collection<Integer> userIds, String text, String parseMode) Sends a message with a specific format to usersbooleansendMessage(Process process, String text) Sends a plain text message to process executorsbooleansendMessage(Process process, String text, String parseMode) Sends a message with a specific format to process executorsbooleansendMessageForProcess(Process process, String text) Sends a plain text message to a process by process chatIdvoid
-
Constructor Details
-
ExpressionObject
public ExpressionObject()
-
-
Method Details
-
toContext
- Specified by:
toContextin interfaceExpressionObject
-
sendMessage
-
sendMessage
-
sendMessage
Sends a plain text message to users- Parameters:
userIds- the user IDstext- the message
-
sendMessage
Sends a message with a specific format to users- Parameters:
userIds- the user IDstext- the messageparseMode- the format
-
sendMessage
-
sendMessage
-
sendMessageForProcess
-