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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Animations and metadata associated with <a href="https://corefork.telegram.org/api/reactions">message reactions »</a>
/// See <a href="https://corefork.telegram.org/constructor/messages.availableReactions" />
///</summary>
[TlObject(0x768e3aad)]
public sealed class TAvailableReactions : IAvailableReactions
{
    public uint ConstructorId => 0x768e3aad;
    ///<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>
    /// Animations and metadata associated with <a href="https://corefork.telegram.org/api/reactions">message reactions »</a>
    ///</summary>
    public TVector<MyTelegram.Schema.IAvailableReaction> Reactions { get; set; }

    public void ComputeFlag()
    {

    }

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

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