From adced55fdc4ed4d443aab1a703318972c51ab5cd Mon Sep 17 00:00:00 2001 From: Baspla Date: Fri, 23 Feb 2018 20:23:04 +0100 Subject: [PATCH] Update Using-Replies.md The Consumer has the variable name of "action" not "upd". --- TelegramBots.wiki/abilities/Using-Replies.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TelegramBots.wiki/abilities/Using-Replies.md b/TelegramBots.wiki/abilities/Using-Replies.md index 314dbeb7..82307360 100644 --- a/TelegramBots.wiki/abilities/Using-Replies.md +++ b/TelegramBots.wiki/abilities/Using-Replies.md @@ -12,7 +12,7 @@ public Reply sayYuckOnImage() { // getChatId is a public utility function in rg.telegram.abilitybots.api.util.AbilityUtils Consumer action = upd -> silent.send("Yuck", getChatId(upd)); - return Reply.of(upd, Flag.PHOTO) + return Reply.of(action, Flag.PHOTO) } ``` @@ -74,4 +74,4 @@ public Ability playWithMe() { In this example, we showcase how we can supply our own predicates. The two new predicates are `isReplyToMessage` and `isReplyToBot`. The checks are made so that, once you execute your logic there is no need to check for the validity of the reply. -They were all made once the action logic is being executed. \ No newline at end of file +They were all made once the action logic is being executed.