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

namespace MyTelegram.Schema;

///<summary>
/// Recent t.me stickerset installation URL
/// See <a href="https://corefork.telegram.org/constructor/recentMeUrlStickerSet" />
///</summary>
[TlObject(0xbc0a57dc)]
public sealed class TRecentMeUrlStickerSet : IRecentMeUrl
{
    public uint ConstructorId => 0xbc0a57dc;
    ///<summary>
    /// t.me URL
    ///</summary>
    public string Url { get; set; }

    ///<summary>
    /// Stickerset
    /// See <a href="https://corefork.telegram.org/type/StickerSetCovered" />
    ///</summary>
    public MyTelegram.Schema.IStickerSetCovered Set { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Url = buffer.ReadString();
        Set = buffer.Read<MyTelegram.Schema.IStickerSetCovered>();
    }
}