Interface MessagingService

All Known Implementing Classes:
MessagingServiceImpl

public interface MessagingService
Interface for messaging services.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sendMessage(String chatId, String text)
    Sends a text message to a specified chat.
    void
    sendMessage(String chatId, org.telegram.telegrambots.meta.api.methods.send.SendMessage message)
    Sends a SendMessage object to a specified chat.
  • Method Details

    • sendMessage

      void sendMessage(String chatId, String text)
      Sends a text message to a specified chat.
      Parameters:
      chatId - the ID of the chat to send the message to
      text - the text of the message to send
    • sendMessage

      void sendMessage(String chatId, org.telegram.telegrambots.meta.api.methods.send.SendMessage message)
      Sends a SendMessage object to a specified chat.
      Parameters:
      chatId - the ID of the chat to send the message to
      message - the SendMessage object to send