// <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/method/messages.getEmojiGroups" />
///</summary>
[TlObject(0x7488ce5b)]
public sealed class RequestGetEmojiGroups : IRequest<MyTelegram.Schema.Messages.IEmojiGroups>
{
    public uint ConstructorId => 0x7488ce5b;
    ///<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; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Hash = buffer.ReadInt32();
    }
}
