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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Get stickers by emoji
/// <para>Possible errors</para>
/// Code Type Description
/// 400 EMOTICON_EMPTY The emoji is empty.
/// See <a href="https://corefork.telegram.org/method/messages.getStickers" />
///</summary>
[TlObject(0xd5a5d3a1)]
public sealed class RequestGetStickers : IRequest<MyTelegram.Schema.Messages.IStickers>
{
    public uint ConstructorId => 0xd5a5d3a1;
    ///<summary>
    /// The emoji
    ///</summary>
    public string Emoticon { get; set; }

    ///<summary>
    /// <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash used for caching, for more info click here</a>.
    ///</summary>
    public long Hash { get; set; }

    public void ComputeFlag()
    {

    }

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

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