1
0
mirror of https://github.com/aNNiMON/ffmpegbot synced 2024-09-19 22:54:20 +03:00

Add video stickers support

This commit is contained in:
aNNiMON 2023-10-19 18:05:19 +03:00
parent bc21f06e9a
commit a28ca6ded8

View File

@ -41,6 +41,13 @@ public class Resolver {
att.getFileSize(), null); att.getFileSize(), null);
} }
return null; return null;
} else if (message.hasSticker()) {
final var att = message.getSticker();
if (att.getIsVideo()) {
long fileSize = att.getFileSize() != null ? att.getFileSize().longValue() : 0L;
return new FileInfo(FileType.ANIMATION, att.getFileId(), "sticker.webm", fileSize, null);
}
return null;
} else { } else {
return null; return null;
} }