Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ scrimage-core = { module = "com.sksamuel.scrimage:scrimage-core", version.ref =
scrimage-formats-extra = { module = "com.sksamuel.scrimage:scrimage-formats-extra", version.ref = "scrimage" }
scrimage-webp = { module = "com.sksamuel.scrimage:scrimage-webp", version.ref = "scrimage" }
slf4j-api = "org.slf4j:slf4j-api:2.0.17"
telegram-bot-api = "com.github.pengrad:java-telegram-bot-api:8.3.0"
telegram-bot-api = "com.github.pengrad:java-telegram-bot-api:9.2.0"
tika = "org.apache.tika:tika-core:3.2.2"

[plugins]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.sksamuel.scrimage.ImmutableImage;
import com.sksamuel.scrimage.webp.WebpWriter;
import org.apache.tika.Tika;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ws.schild.jave.EncoderException;
Expand Down Expand Up @@ -152,6 +153,7 @@ private float duration() {
return (end - start) / frameRate;
}

@NotNull
@Override
public String toString() {
return "animated sticker [" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.pengrad.telegrambot.model.Sticker;
import com.pengrad.telegrambot.model.Video;
import com.pengrad.telegrambot.model.VideoNote;
import org.jetbrains.annotations.NotNull;

import java.util.Arrays;
import java.util.Objects;
Expand Down Expand Up @@ -59,7 +60,7 @@ private TelegramFile getBestPhoto(PhotoSize[] photos) {
.orElse(TelegramFile.TOO_LARGE);
}

public Long getChatId() {
public long getChatId() {
return message.chat().id();
}

Expand Down Expand Up @@ -95,6 +96,7 @@ public Answer getAnswerMessage() {
};
}

@NotNull
@Override
public String toString() {
var file = Optional.ofNullable(getFile()).map(TelegramFile::id).orElse(null);
Expand Down
Loading