Link scrapping for preview

This commit is contained in:
2025-06-21 13:46:30 +08:00
parent 95010e4188
commit 5f30b56ef8
8 changed files with 546 additions and 2 deletions

View File

@ -0,0 +1,26 @@
namespace DysonNetwork.Sphere.Connection.WebReader;
/// <summary>
/// The embeddable can be used in the post or messages' meta's embeds fields
/// To render richer type of content.
///
/// A simple example of using link preview embed:
/// <code>
/// {
/// // ... post content
/// "meta": {
/// "embeds": [
/// {
/// "type": "link",
/// "title: "...",
/// /// ...
/// }
/// ]
/// }
/// }
/// </code>
/// </summary>
public interface IEmbeddable
{
public string Type { get; }
}