Class Reply
java.lang.Object
org.telegram.abilitybots.api.objects.Reply
- Direct Known Subclasses:
ReplyFlow
A reply consists of update conditionals and an action to be applied on the update.
If an update satisfies the conditions
set by the reply, then it's safe to actOn(BaseAbilityBot, Update)
.
- Author:
- Abbas Abou Daya
-
Field Summary
Modifier and TypeFieldDescriptionfinal BiConsumer<BaseAbilityBot,
org.telegram.telegrambots.meta.api.objects.Update> -
Method Summary
Modifier and TypeMethodDescriptionBiConsumer<BaseAbilityBot,
org.telegram.telegrambots.meta.api.objects.Update> action()
void
actOn
(BaseAbilityBot bot, org.telegram.telegrambots.meta.api.objects.Update update) enableStats
(String name) boolean
int
hashCode()
boolean
isOkFor
(org.telegram.telegrambots.meta.api.objects.Update update) name()
static Reply
of
(BiConsumer<BaseAbilityBot, org.telegram.telegrambots.meta.api.objects.Update> action, Predicate<org.telegram.telegrambots.meta.api.objects.Update>... conditions) static Reply
of
(BiConsumer<BaseAbilityBot, org.telegram.telegrambots.meta.api.objects.Update> action, List<Predicate<org.telegram.telegrambots.meta.api.objects.Update>> conditions) boolean
stream()
toString()
-
Field Details
-
conditions
-
action
-
-
Method Details
-
of
public static Reply of(BiConsumer<BaseAbilityBot, org.telegram.telegrambots.meta.api.objects.Update> action, List<Predicate<org.telegram.telegrambots.meta.api.objects.Update>> conditions) -
of
@SafeVarargs public static Reply of(BiConsumer<BaseAbilityBot, org.telegram.telegrambots.meta.api.objects.Update> action, Predicate<org.telegram.telegrambots.meta.api.objects.Update>... conditions) -
isOkFor
public boolean isOkFor(org.telegram.telegrambots.meta.api.objects.Update update) -
actOn
-
conditions
-
action
-
stream
-
enableStats
-
statsEnabled
public boolean statsEnabled() -
name
-
equals
-
hashCode
public int hashCode() -
toString
-