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

namespace MyTelegram.Schema;

///<summary>
/// Quote (equivalent to the HTML <code>&lt;blockquote&gt;</code>)
/// See <a href="https://corefork.telegram.org/constructor/pageBlockBlockquote" />
///</summary>
[TlObject(0x263d7c26)]
public sealed class TPageBlockBlockquote : IPageBlock
{
    public uint ConstructorId => 0x263d7c26;
    ///<summary>
    /// Quote contents
    /// See <a href="https://corefork.telegram.org/type/RichText" />
    ///</summary>
    public MyTelegram.Schema.IRichText Text { get; set; }

    ///<summary>
    /// Caption
    /// See <a href="https://corefork.telegram.org/type/RichText" />
    ///</summary>
    public MyTelegram.Schema.IRichText Caption { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Text = buffer.Read<MyTelegram.Schema.IRichText>();
        Caption = buffer.Read<MyTelegram.Schema.IRichText>();
    }
}