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

namespace MyTelegram.Schema;

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