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

namespace MyTelegram.Schema;

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