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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Translated text with <a href="https://corefork.telegram.org/api/entities">entities</a>
/// See <a href="https://corefork.telegram.org/constructor/messages.translateResult" />
///</summary>
[TlObject(0x33db32f8)]
public sealed class TTranslateResult : ITranslatedText
{
    public uint ConstructorId => 0x33db32f8;
    ///<summary>
    /// Text+<a href="https://corefork.telegram.org/api/entities">entities</a>, for each input message.
    ///</summary>
    public TVector<MyTelegram.Schema.ITextWithEntities> Result { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Result = buffer.Read<TVector<MyTelegram.Schema.ITextWithEntities>>();
    }
}