pro.zackpollard.telegrambot.api.internal.chat.message.content.TextContentImpl 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.internal.chat.message.content;
import pro.zackpollard.telegrambot.api.chat.message.content.TextContent;
/**
* @author Zack Pollard
*/
public class TextContentImpl implements TextContent {
private final String content;
private TextContentImpl(String text) {
this.content = text;
}
public static TextContent createTextContent(String text) {
return text != null ? new TextContentImpl(text) : null;
}
@Override
public String getContent() {
return content;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy