Wiki: fixed checkGlobalFlags method in readme
Flag.PHOTO returns the Flag type, not bool
This commit is contained in:
parent
a423b23440
commit
80c918807d
@ -29,7 +29,7 @@ As an example, if you want to restrict the updates to photos only, then you may
|
|||||||
```java
|
```java
|
||||||
@Override
|
@Override
|
||||||
public boolean checkGlobalFlags(Update update) {
|
public boolean checkGlobalFlags(Update update) {
|
||||||
return Flag.PHOTO;
|
return Flag.PHOTO.test(update);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user