Package my.uum.service
Interface MessagingService
- All Known Implementing Classes:
MessagingServiceImpl
public interface MessagingService
Interface for messaging services.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsendMessage(String chatId, String text) Sends a text message to a specified chat.voidsendMessage(String chatId, org.telegram.telegrambots.meta.api.methods.send.SendMessage message) Sends a SendMessage object to a specified chat.
-
Method Details
-
sendMessage
Sends a text message to a specified chat.- Parameters:
chatId- the ID of the chat to send the message totext- 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 tomessage- the SendMessage object to send
-