Merge pull request #622 from recursiveribbons/profile-photos-offset-optional
Allow offset to be null in GetUserProfilePhotos
This commit is contained in:
commit
c125b103e6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user