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:
parent
bc21f06e9a
commit
a28ca6ded8
@ -41,6 +41,13 @@ public class Resolver {
|
||||
att.getFileSize(), 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 {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user