From 80c918807d7079f0f0cac308f44eb24634dceee6 Mon Sep 17 00:00:00 2001 From: Handsome Date: Thu, 16 Jun 2022 21:48:40 +0300 Subject: [PATCH] Wiki: fixed checkGlobalFlags method in readme Flag.PHOTO returns the Flag type, not bool --- TelegramBots.wiki/abilities/Advanced.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TelegramBots.wiki/abilities/Advanced.md b/TelegramBots.wiki/abilities/Advanced.md index 49cd2016..6d98b691 100644 --- a/TelegramBots.wiki/abilities/Advanced.md +++ b/TelegramBots.wiki/abilities/Advanced.md @@ -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); } ```