Skip to content

Commit

Permalink
上报大小?
Browse files Browse the repository at this point in the history
  • Loading branch information
sisi0318 committed Dec 8, 2024
1 parent 7f64115 commit 36bc78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lagrange.OneBot/Message/Entity/ImageSegment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ public override SegmentBase FromEntity(MessageChain chain, IMessageEntity entity
{
if (entity is not ImageEntity imageEntity) throw new ArgumentException("Invalid entity type.");

return new ImageSegment(imageEntity.ImageUrl, imageEntity.FilePath, imageEntity.ToPreviewText(), imageEntity.SubType);
return new ImageSegment(imageEntity.ImageUrl, imageEntity.FilePath, imageEntity.ToPreviewText(), imageEntity.SubType, imageEntity.H, imageEntity.W);
}
}

0 comments on commit 36bc78f

Please sign in to comment.