pro.zackpollard.telegrambot.api.conversations.ConversationPrompt Maven / Gradle / Ivy
package pro.zackpollard.telegrambot.api.conversations;
import pro.zackpollard.telegrambot.api.chat.message.content.Content;
import pro.zackpollard.telegrambot.api.chat.message.content.ContentType;
import pro.zackpollard.telegrambot.api.chat.message.send.SendableMessage;
public interface ConversationPrompt {
ContentType type();
// return whether or not to repeat the prompt
boolean process(ConversationContext context, T input);
SendableMessage promptMessage(ConversationContext context);
default void conversationEnded(ConversationContext context) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy