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

namespace MyTelegram.Schema;

///<summary>
/// Some reactions are allowed
/// See <a href="https://corefork.telegram.org/constructor/chatReactionsSome" />
///</summary>
[TlObject(0x661d4037)]
public sealed class TChatReactionsSome : IChatReactions
{
    public uint ConstructorId => 0x661d4037;
    ///<summary>
    /// Allowed set of reactions: the <a href="https://corefork.telegram.org/api/config#reactions-in-chat-max">reactions_in_chat_max</a> configuration field indicates the maximum number of reactions that can be specified in this field.
    ///</summary>
    public TVector<MyTelegram.Schema.IReaction> Reactions { get; set; }

    public void ComputeFlag()
    {

    }

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

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