Skip to content

Commit

Permalink
Fix #1316
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenlagus committed Apr 1, 2024
1 parent f6e6c27 commit d6ce03d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ public void validate() throws TelegramApiValidationException {
if (parseMode != null && (captionEntities != null && !captionEntities.isEmpty()) ) {
throw new TelegramApiValidationException("Parse mode can't be enabled if Entities are provided", this);
}
if (thumbnailUrl != null && !"image/jpeg".equalsIgnoreCase(thumbnailUrl)) {
throw new TelegramApiValidationException("Thumbnail Url must be JPEG", this);
}
if (inputMessageContent != null) {
inputMessageContent.validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ public void validate() throws TelegramApiValidationException {
if (parseMode != null && (captionEntities != null && !captionEntities.isEmpty()) ) {
throw new TelegramApiValidationException("Parse mode can't be enabled if Entities are provided", this);
}
if (thumbnailUrl != null && !"image/jpeg".equalsIgnoreCase(thumbnailUrl)) {
throw new TelegramApiValidationException("Thumbnail Url must be JPEG", this);
}
if (inputMessageContent != null) {
inputMessageContent.validate();
}
Expand Down

0 comments on commit d6ce03d

Please sign in to comment.