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

namespace MyTelegram.Schema.Payments;

///<summary>
/// Contains a URL leading to a page where the user will be able to place ads for the channel/bot, paying using <a href="https://corefork.telegram.org/api/stars#paying-for-ads">Telegram Stars</a>.
/// See <a href="https://corefork.telegram.org/constructor/payments.starsRevenueAdsAccountUrl" />
///</summary>
[TlObject(0x394e7f21)]
public sealed class TStarsRevenueAdsAccountUrl : IStarsRevenueAdsAccountUrl
{
    public uint ConstructorId => 0x394e7f21;
    ///<summary>
    /// URL to open.
    ///</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();
    }
}