From 54383aa6266f4b68f30a62fd66bbc5b9e71b2d56 Mon Sep 17 00:00:00 2001 From: iamvincentliu Date: Mon, 27 May 2019 03:52:06 +0200 Subject: [PATCH] Allow offset to be null in GetUserProfilePhotos --- .../telegrambots/meta/api/methods/GetUserProfilePhotos.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/methods/GetUserProfilePhotos.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/methods/GetUserProfilePhotos.java index 4e614837..66328bab 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/methods/GetUserProfilePhotos.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/methods/GetUserProfilePhotos.java @@ -92,9 +92,6 @@ public class GetUserProfilePhotos extends BotApiMethod { if (userId == null) { throw new TelegramApiValidationException("UserId parameter can't be empty", this); } - if (offset == null) { - throw new TelegramApiValidationException("Offset parameter can't be empty", this); - } } @Override