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

namespace MyTelegram.Schema;

///<summary>
/// URL with chat statistics
/// See <a href="https://corefork.telegram.org/constructor/statsURL" />
///</summary>
[TlObject(0x47a971e0)]
public sealed class TStatsURL : IStatsURL
{
    public uint ConstructorId => 0x47a971e0;
    ///<summary>
    /// Chat statistics
    ///</summary>
    public string Url { get; set; }

    public void ComputeFlag()
    {

    }

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

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