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

namespace MyTelegram.Schema;

///<summary>
/// A game
/// See <a href="https://corefork.telegram.org/constructor/inputMediaGame" />
///</summary>
[TlObject(0xd33f43f3)]
public sealed class TInputMediaGame : IInputMedia
{
    public uint ConstructorId => 0xd33f43f3;
    ///<summary>
    /// The game to forward
    /// See <a href="https://corefork.telegram.org/type/InputGame" />
    ///</summary>
    public MyTelegram.Schema.IInputGame Id { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Id = buffer.Read<MyTelegram.Schema.IInputGame>();
    }
}