Class ExpressionObject

java.lang.Object
org.bgerp.plugin.telegram.ExpressionObject
All Implemented Interfaces:
ExpressionObject

public class ExpressionObject extends Object implements ExpressionObject
  • Method Details

    • sendMessage

      public void sendMessage(String chatId, String text)
      Send message in a chat.
      Parameters:
      chatId - telegram chatId
      text - text message
    • sendMessage

      public void sendMessage(String chatId, String text, String parseMode)
      Send message in a chat with specific formatting message
      Parameters:
      chatId - telegram chatId
      text - text message
      parseMode - ParseMode
    • sendMessage

      public void sendMessage(Collection<Integer> userIds, String text)
      Send message to users.
      Parameters:
      userIds - user IDs
      text - text message
    • sendMessage

      public void sendMessage(Process process, String text)
      Send a message to the executor of the process.
      Parameters:
      process - object process
      text - text message
    • sendMessageForProcess

      public void sendMessageForProcess(Process process, String text)
      Send message in chat process.
      Parameters:
      process - object process
      text - text message
    • escapeMarkdown

      public static String escapeMarkdown(String text)
      Escapes Markdown characters from SPECIAL_CHARACTERS_MD.
      Parameters:
      text -
      Returns:
    • toContext

      public void toContext(Map<String,Object> context)
      Specified by:
      toContext in interface ExpressionObject