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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Obtain available <a href="https://corefork.telegram.org/api/reactions">message reactions »</a>
/// See <a href="https://corefork.telegram.org/method/messages.getAvailableReactions" />
///</summary>
[TlObject(0x18dea0ac)]
public sealed class RequestGetAvailableReactions : IRequest<MyTelegram.Schema.Messages.IAvailableReactions>
{
    public uint ConstructorId => 0x18dea0ac;
    ///<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();
    }
}
