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

namespace MyTelegram.Schema;

///<summary>
/// Normal emoji message reaction
/// See <a href="https://corefork.telegram.org/constructor/reactionEmoji" />
///</summary>
[TlObject(0x1b2286b8)]
public sealed class TReactionEmoji : IReaction
{
    public uint ConstructorId => 0x1b2286b8;
    ///<summary>
    /// Emoji
    ///</summary>
    public string Emoticon { get; set; }

    public void ComputeFlag()
    {

    }

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

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