commit
9f26a60e27
@ -12,7 +12,7 @@ public Reply sayYuckOnImage() {
|
||||
// getChatId is a public utility function in rg.telegram.abilitybots.api.util.AbilityUtils
|
||||
Consumer<Update> 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.
|
||||
They were all made once the action logic is being executed.
|
||||
|
Loading…
Reference in New Issue
Block a user