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

namespace MyTelegram.Schema;

///<summary>
/// Chat history is being imported
/// See <a href="https://corefork.telegram.org/constructor/sendMessageHistoryImportAction" />
///</summary>
[TlObject(0xdbda9246)]
public sealed class TSendMessageHistoryImportAction : ISendMessageAction
{
    public uint ConstructorId => 0xdbda9246;
    ///<summary>
    /// Progress percentage
    ///</summary>
    public int Progress { get; set; }

    public void ComputeFlag()
    {

    }

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

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