Package org.bgerp.plugin.telegram
Class ExpressionObject
java.lang.Object
org.bgerp.plugin.telegram.ExpressionObject
- All Implemented Interfaces:
ExpressionObject
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
escapeMarkdown
(String text) Escapes Markdown characters fromSPECIAL_CHARACTERS_MD
.void
sendMessage
(String chatId, String text) Send message in a chat.void
sendMessage
(String chatId, String text, String parseMode) Send message in a chat with specific formatting messagevoid
sendMessage
(Collection<Integer> userIds, String text) Send message to users.void
sendMessage
(Process process, String text) Send a message to the executor of the process.void
sendMessageForProcess
(Process process, String text) Send message in chat process.void
-
Method Details
-
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
-
escapeMarkdown
Escapes Markdown characters fromSPECIAL_CHARACTERS_MD
.- Parameters:
text
-- Returns:
-
toContext
- Specified by:
toContext
in interfaceExpressionObject
-