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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Represents a list of <a href="https://corefork.telegram.org/api/emoji-categories">emoji categories</a>.
/// See <a href="https://corefork.telegram.org/constructor/messages.emojiGroups" />
///</summary>
[TlObject(0x881fb94b)]
public sealed class TEmojiGroups : IEmojiGroups
{
    public uint ConstructorId => 0x881fb94b;
    ///<summary>
    /// <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash used for caching, for more info click here</a>
    ///</summary>
    public int Hash { get; set; }

    ///<summary>
    /// A list of <a href="https://corefork.telegram.org/api/emoji-categories">emoji categories</a>.
    ///</summary>
    public TVector<MyTelegram.Schema.IEmojiGroup> Groups { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Hash = buffer.ReadInt32();
        Groups = buffer.Read<TVector<MyTelegram.Schema.IEmojiGroup>>();
    }
}