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

namespace MyTelegram.Schema;

///<summary>
/// User is uploading a file.
/// See <a href="https://corefork.telegram.org/constructor/sendMessageUploadDocumentAction" />
///</summary>
[TlObject(0xaa0cd9e4)]
public sealed class TSendMessageUploadDocumentAction : ISendMessageAction
{
    public uint ConstructorId => 0xaa0cd9e4;
    ///<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();
    }
}