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

namespace MyTelegram.Schema;

///<summary>
/// Specifies an <a href="https://corefork.telegram.org/api/bots/webapps#inline-mode-mini-apps">inline mode mini app</a> button, shown on top of the inline query results list.
/// See <a href="https://corefork.telegram.org/constructor/inlineBotWebView" />
///</summary>
[TlObject(0xb57295d5)]
public sealed class TInlineBotWebView : IInlineBotWebView
{
    public uint ConstructorId => 0xb57295d5;
    ///<summary>
    /// Text of the button
    ///</summary>
    public string Text { get; set; }

    ///<summary>
    /// Webapp URL
    ///</summary>
    public string Url { get; set; }

    public void ComputeFlag()
    {

    }

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

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