KeyboardButtonUrl

class pyrogram.raw.types.KeyboardButtonUrl

URL button

Constructor of KeyboardButton.

Details:
  • Layer: 227

  • ID: D80C25EC

Parameters:
Functions:

This object can be returned by 1 function.

bots.GetRequestedWebViewButton

Telegram API function.

TL Schema

keyboardButtonUrl#d80c25ec
flags:#
style:flags.10?KeyboardButtonStyle
text:string
url:string

= KeyboardButton

Parameter Tree

KeyboardButtonUrl
├── style → KeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primary → true (optional)
│ ├── bg_danger → true (optional)
│ ├── bg_success → true (optional)
│ └── icon → long (optional)
├── text → string
└── url → string

Example

KeyboardButtonUrl(
    text="Open",
    url="https://google.com",
)