Merge pull request #622 from recursiveribbons/profile-photos-offset-optional

Allow offset to be null in GetUserProfilePhotos
This commit is contained in:
Ruben Bermudez 2019-05-30 23:58:29 +01:00 committed by GitHub
commit c125b103e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,9 +92,6 @@ public class GetUserProfilePhotos extends BotApiMethod<UserProfilePhotos> {
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