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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Fetch all <a href="https://corefork.telegram.org/api/stickers">stickersets »</a> owned by the current user.
/// See <a href="https://corefork.telegram.org/method/messages.getMyStickers" />
///</summary>
[TlObject(0xd0b5e1fc)]
public sealed class RequestGetMyStickers : IRequest<MyTelegram.Schema.Messages.IMyStickers>
{
    public uint ConstructorId => 0xd0b5e1fc;
    ///<summary>
    /// <a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a>
    ///</summary>
    public long OffsetId { get; set; }

    ///<summary>
    /// Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a>
    ///</summary>
    public int Limit { get; set; }

    public void ComputeFlag()
    {

    }

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

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