Skip to content

Commit

Permalink
Merge pull request #1086 from LegendaryZer0/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenlagus authored Jun 16, 2022
2 parents a423b23 + 80c9188 commit ab29b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TelegramBots.wiki/abilities/Advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ As an example, if you want to restrict the updates to photos only, then you may
```java
@Override
public boolean checkGlobalFlags(Update update) {
return Flag.PHOTO;
return Flag.PHOTO.test(update);
}
```

Expand Down

0 comments on commit ab29b41

Please sign in to comment.