Class Reply

  • Direct Known Subclasses:
    ReplyFlow

    public class Reply
    extends Object
    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 Reply#actOn(Update).

    Author:
    Abbas Abou Daya
    • Field Detail

      • conditions

        public final List<Predicate<org.telegram.telegrambots.meta.api.objects.Update>> conditions
    • Method Detail

      • isOkFor

        public boolean isOkFor​(org.telegram.telegrambots.meta.api.objects.Update update)
      • actOn

        public void actOn​(BaseAbilityBot bot,
                          org.telegram.telegrambots.meta.api.objects.Update update)
      • conditions

        public List<Predicate<org.telegram.telegrambots.meta.api.objects.Update>> conditions()
      • enableStats

        public Reply enableStats​(String name)
      • statsEnabled

        public boolean statsEnabled()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object