Wiki: fixed checkGlobalFlags method in readme

Flag.PHOTO returns the Flag type, not bool
This commit is contained in:
Handsome 2022-06-16 21:48:40 +03:00 committed by GitHub
parent a423b23440
commit 80c918807d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
```