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

namespace MyTelegram.Schema;

///<summary>
/// See <a href="https://corefork.telegram.org/constructor/messageActionPaidMessagesRefunded" />
///</summary>
[TlObject(0xac1f1fcd)]
public sealed class TMessageActionPaidMessagesRefunded : IMessageAction
{
    public uint ConstructorId => 0xac1f1fcd;
    public int Count { get; set; }
    public long Stars { get; set; }

    public void ComputeFlag()
    {

    }

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

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