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

namespace MyTelegram.Schema;

///<summary>
/// <a href="https://corefork.telegram.org/api/custom-emoji">Custom emoji</a> message reaction
/// See <a href="https://corefork.telegram.org/constructor/reactionCustomEmoji" />
///</summary>
[TlObject(0x8935fc73)]
public sealed class TReactionCustomEmoji : IReaction
{
    public uint ConstructorId => 0x8935fc73;
    ///<summary>
    /// <a href="https://corefork.telegram.org/api/custom-emoji">Custom emoji document ID</a>
    ///</summary>
    public long DocumentId { get; set; }

    public void ComputeFlag()
    {

    }

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

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