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

namespace MyTelegram.Schema;

///<summary>
/// Telegram game
/// See <a href="https://corefork.telegram.org/constructor/messageMediaGame" />
///</summary>
[TlObject(0xfdb19008)]
public sealed class TMessageMediaGame : IMessageMedia
{
    public uint ConstructorId => 0xfdb19008;
    ///<summary>
    /// Game
    /// See <a href="https://corefork.telegram.org/type/Game" />
    ///</summary>
    public MyTelegram.Schema.IGame Game { get; set; }

    public void ComputeFlag()
    {

    }

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

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