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

namespace MyTelegram.Schema;

///<summary>
/// Empty constructor, group doesn't exist
/// See <a href="https://corefork.telegram.org/constructor/chatEmpty" />
///</summary>
[TlObject(0x29562865)]
public sealed class TChatEmpty : IChat,IEmpty
{
    public uint ConstructorId => 0x29562865;
    ///<summary>
    /// Group identifier
    ///</summary>
    public long 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.ReadInt64();
    }
}