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

namespace MyTelegram.Schema;

///<summary>
/// Plain text
/// See <a href="https://corefork.telegram.org/constructor/textPlain" />
///</summary>
[TlObject(0x744694e0)]
public sealed class TTextPlain : IRichText
{
    public uint ConstructorId => 0x744694e0;
    ///<summary>
    /// Text
    ///</summary>
    public string Text { get; set; }

    public void ComputeFlag()
    {

    }

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

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