Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: adding AI option to stickers #491

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ public final class StickerMessage extends ExtendedMediaMessage<StickerMessage> i
@ProtobufProperty(index = 19, type = ProtobufType.BOOL)
private final boolean avatar;

@ProtobufProperty(index = 20, type = ProtobufType.BOOL)
private final boolean ai;

@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
public StickerMessage(String mediaUrl, byte[] mediaSha256, byte[] mediaEncryptedSha256, byte[] mediaKey, String mimetype, Integer height, Integer width, String mediaDirectPath, Long mediaSize, Long mediaKeyTimestampSeconds, Integer firstFrameLength, byte[] firstFrameSidecar, boolean animated, byte[] thumbnail, ContextInfo contextInfo, Long stickerSentTimestamp, boolean avatar) {
public StickerMessage(String mediaUrl, byte[] mediaSha256, byte[] mediaEncryptedSha256, byte[] mediaKey, String mimetype, Integer height, Integer width, String mediaDirectPath, Long mediaSize, Long mediaKeyTimestampSeconds, Integer firstFrameLength, byte[] firstFrameSidecar, boolean animated, byte[] thumbnail, ContextInfo contextInfo, Long stickerSentTimestamp, boolean avatar, boolean ai) {
this.mediaUrl = mediaUrl;
this.mediaSha256 = mediaSha256;
this.mediaEncryptedSha256 = mediaEncryptedSha256;
Expand All @@ -96,6 +99,7 @@ public StickerMessage(String mediaUrl, byte[] mediaSha256, byte[] mediaEncrypted
this.contextInfo = contextInfo;
this.stickerSentTimestamp = stickerSentTimestamp;
this.avatar = avatar;
this.ai = ai;
}

@ProtobufBuilder(className = "SimpleStickerMessageBuilder")
Expand Down Expand Up @@ -125,6 +129,10 @@ public boolean avatar() {
return avatar;
}

public boolean ai() {
return ai;
}

@Override
public Optional<String> mediaUrl() {
return Optional.ofNullable(mediaUrl);
Expand Down Expand Up @@ -242,4 +250,4 @@ public StickerMessage setContextInfo(ContextInfo contextInfo) {
this.contextInfo = contextInfo;
return this;
}
}
}
Loading