pro.zackpollard.telegrambot.api.chat.Chat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtelegram-botapi Show documentation
Show all versions of jtelegram-botapi Show documentation
The Java Telegram Bot API is a wrapper for the Telegram HTTP Bot API
package pro.zackpollard.telegrambot.api.chat;
import pro.zackpollard.telegrambot.api.TelegramBot;
import pro.zackpollard.telegrambot.api.chat.message.Message;
import pro.zackpollard.telegrambot.api.chat.message.send.SendableMessage;
import pro.zackpollard.telegrambot.api.chat.message.send.SendableTextMessage;
/**
* @author Zack Pollard
*/
public interface Chat {
String getId();
ChatType getType();
default Message sendMessage(String message, TelegramBot telegramBot) {
return this.sendMessage(SendableTextMessage.builder().message(message).build(), telegramBot);
}
Message sendMessage(SendableMessage message, TelegramBot telegramBot);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy