pro.zackpollard.telegrambot.api.internal.chat.message.content.NewChatTitleContentImpl 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.Content;
import pro.zackpollard.telegrambot.api.chat.message.content.NewChatTitleContent;
/**
* @author Zack Pollard
*/
public class NewChatTitleContentImpl implements NewChatTitleContent {
private final String content;
private NewChatTitleContentImpl(String content) {
this.content = content;
}
public static Content createNewChatTitleContent(String content) {
return new NewChatTitleContentImpl(content);
}
/**
* Gets the new chat title
*
* @return The new chat title
*/
@Override
public String getContent() {
return content;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy