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

namespace MyTelegram.Schema.Payments;

///<summary>
/// Contains the URL to use to <a href="https://corefork.telegram.org/api/stars#withdrawing-stars">withdraw Telegram Star revenue</a>.
/// See <a href="https://corefork.telegram.org/constructor/payments.starsRevenueWithdrawalUrl" />
///</summary>
[TlObject(0x1dab80b7)]
public sealed class TStarsRevenueWithdrawalUrl : IStarsRevenueWithdrawalUrl
{
    public uint ConstructorId => 0x1dab80b7;
    ///<summary>
    /// Contains the URL to use to <a href="https://corefork.telegram.org/api/stars#withdrawing-stars">withdraw Telegram Star revenue</a>.
    ///</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();
    }
}