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

namespace MyTelegram.Schema;

///<summary>
/// See <a href="https://corefork.telegram.org/constructor/inputInvoiceBusinessBotTransferStars" />
///</summary>
[TlObject(0xf4997e42)]
public sealed class TInputInvoiceBusinessBotTransferStars : IInputInvoice
{
    public uint ConstructorId => 0xf4997e42;
    public MyTelegram.Schema.IInputUser Bot { get; set; }
    public long Stars { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Bot = buffer.Read<MyTelegram.Schema.IInputUser>();
        Stars = buffer.ReadInt64();
    }
}