account.WebBrowserSettings

class pyrogram.raw.types.account.WebBrowserSettings

Telegram API type.

Constructor of WebBrowserSettings.

Details:
  • Layer: 227

  • ID: 79EB8CB3

Parameters:
  • external_exceptions (List of WebDomainException) – N/A

  • inapp_exceptions (List of WebDomainException) – N/A

  • hash (int 64-bit) – N/A

  • open_external_browser (bool, optional) – N/A

  • display_close_button (bool, optional) – N/A

Functions:

This object can be returned by 3 functions.

account.GetWebBrowserSettings

Telegram API function.

account.UpdateWebBrowserSettings

Telegram API function.

account.DeleteWebBrowserSettingsExceptions

Telegram API function.

TL Schema

account.webBrowserSettings#79eb8cb3
flags:#
open_external_browser:flags.0?true
display_close_button:flags.1?true
external_exceptions:Vector<WebDomainException>
inapp_exceptions:Vector<WebDomainException>
hash:long

= account.WebBrowserSettings

Parameter Tree

WebBrowserSettings
├── open_external_browsertrue (optional)
├── display_close_buttontrue (optional)
├── external_exceptionsVector < WebDomainException >
│ └── WebDomainException
│ ├── domainstring
│ ├── urlstring
│ ├── titlestring
│ └── faviconlong (optional)
├── inapp_exceptionsVector < WebDomainException >
│ └── WebDomainException
│ ├── domainstring
│ ├── urlstring
│ ├── titlestring
│ └── faviconlong (optional)
└── hashlong

Example

WebBrowserSettings(
    external_exceptions=[
            WebDomainException(
                domain="text",
                url="https://google.com",
                title="text"
            )
        ],
    inapp_exceptions=[
            WebDomainException(
                domain="text",
                url="https://google.com",
                title="text"
            )
        ],
    hash=0,
)