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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Contains a confirmation text to be shown to the user, upon <a href="https://corefork.telegram.org/api/import">importing chat history, click here for more info »</a>.
/// See <a href="https://corefork.telegram.org/constructor/messages.checkedHistoryImportPeer" />
///</summary>
[TlObject(0xa24de717)]
public sealed class TCheckedHistoryImportPeer : ICheckedHistoryImportPeer
{
    public uint ConstructorId => 0xa24de717;
    ///<summary>
    /// A confirmation text to be shown to the user, upon <a href="https://corefork.telegram.org/api/import">importing chat history »</a>.
    ///</summary>
    public string ConfirmText { get; set; }

    public void ComputeFlag()
    {

    }

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

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