Allow offset to be null in GetUserProfilePhotos

This commit is contained in:
iamvincentliu 2019-05-27 03:52:06 +02:00
parent 6e689fbf88
commit 54383aa626

View File

@ -92,9 +92,6 @@ public class GetUserProfilePhotos extends BotApiMethod<UserProfilePhotos> {
if (userId == null) { if (userId == null) {
throw new TelegramApiValidationException("UserId parameter can't be empty", this); throw new TelegramApiValidationException("UserId parameter can't be empty", this);
} }
if (offset == null) {
throw new TelegramApiValidationException("Offset parameter can't be empty", this);
}
} }
@Override @Override