// ReSharper disable All

namespace MyTelegram.Schema;

///<summary>
/// <a href="https://instantview.telegram.org/">Instant View</a> webpage preview
/// See <a href="https://corefork.telegram.org/constructor/WebPage" />
///</summary>
[JsonDerivedType(typeof(TWebPageEmpty), nameof(TWebPageEmpty))]
[JsonDerivedType(typeof(TWebPagePending), nameof(TWebPagePending))]
[JsonDerivedType(typeof(TWebPage), nameof(TWebPage))]
[JsonDerivedType(typeof(TWebPageNotModified), nameof(TWebPageNotModified))]
public interface IWebPage : IObject
{
    ///<summary>
    /// Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a>
    ///</summary>
    int Flags { get; set; }
}
