File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/java/com/github/stickerifier/stickerify Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2525import com .sksamuel .scrimage .ImmutableImage ;
2626import com .sksamuel .scrimage .webp .WebpWriter ;
2727import org .apache .tika .Tika ;
28+ import org .jetbrains .annotations .NotNull ;
2829import org .slf4j .Logger ;
2930import org .slf4j .LoggerFactory ;
3031import ws .schild .jave .EncoderException ;
@@ -152,6 +153,7 @@ private float duration() {
152153 return (end - start ) / frameRate ;
153154 }
154155
156+ @ NotNull
155157 @ Override
156158 public String toString () {
157159 return "animated sticker [" +
Original file line number Diff line number Diff line change 1212import com .pengrad .telegrambot .model .Sticker ;
1313import com .pengrad .telegrambot .model .Video ;
1414import com .pengrad .telegrambot .model .VideoNote ;
15+ import org .jetbrains .annotations .NotNull ;
1516
1617import java .util .Arrays ;
1718import java .util .Objects ;
@@ -59,7 +60,7 @@ private TelegramFile getBestPhoto(PhotoSize[] photos) {
5960 .orElse (TelegramFile .TOO_LARGE );
6061 }
6162
62- public Long getChatId () {
63+ public long getChatId () {
6364 return message .chat ().id ();
6465 }
6566
@@ -95,6 +96,7 @@ public Answer getAnswerMessage() {
9596 };
9697 }
9798
99+ @ NotNull
98100 @ Override
99101 public String toString () {
100102 var file = Optional .ofNullable (getFile ()).map (TelegramFile ::id ).orElse (null );
You can’t perform that action at this time.
0 commit comments