Forward image sub_type and summary fields
Include optional element.subType and element.summary in the image segment payload (mapped to sub_type and summary) so custom emoji/sticker metadata is preserved. Adds a unit test to verify these fields are forwarded.
This commit is contained in:
1 parent
312df29b5f
commit
6de2e071be
2 files changed
+23
No files matched your search
@@ -54,6 +54,8 @@ async function elementToSegment(
|
||||
const data: JsonObject = {
|
||||
url,
|
||||
file: element.fileId ?? '',
|
||||
sub_type: element.subType ?? 0,
|
||||
summary: element.summary ?? '',
|
||||
};
|
||||
if (mediaSegmentSink) mediaSegmentSink('image', element, data, isGroup, sessionId);
|
||||
return { type: 'image', data };
|
||||
|
||||
Reference in new issue
Block a user