// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema;

///<summary>
/// Link to a message in a supergroup/channel
/// See <a href="https://corefork.telegram.org/constructor/exportedMessageLink" />
///</summary>
[TlObject(0x5dab1af4)]
public sealed class TExportedMessageLink : IExportedMessageLink
{
    public uint ConstructorId => 0x5dab1af4;
    ///<summary>
    /// URL
    ///</summary>
    public string Link { get; set; }

    ///<summary>
    /// Embed code
    ///</summary>
    public string Html { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(Link);
        writer.Write(Html);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Link = buffer.ReadString();
        Html = buffer.ReadString();
    }
}