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

namespace MyTelegram.Schema;

///<summary>
/// Recent t.me link to a user
/// See <a href="https://corefork.telegram.org/constructor/recentMeUrlUser" />
///</summary>
[TlObject(0xb92c09e2)]
public sealed class TRecentMeUrlUser : IRecentMeUrl
{
    public uint ConstructorId => 0xb92c09e2;
    ///<summary>
    /// URL
    ///</summary>
    public string Url { get; set; }

    ///<summary>
    /// User ID
    ///</summary>
    public long UserId { get; set; }

    public void ComputeFlag()
    {

    }

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

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