bots.RequestWebViewButton

class pyrogram.raw.functions.bots.RequestWebViewButton

Telegram API function.

Details:
  • Layer: 227

  • ID: 31A2A35E

Parameters:
Returns:

bots.RequestedButton

TL Schema

bots.requestWebViewButton#31a2a35e
user_id:InputUser
button:KeyboardButton

= bots.RequestedButton

Parameter Tree

RequestWebViewButton
├── user_id → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ └── InputUserFromMessage
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
└── button → KeyboardButton
├── KeyboardButton
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ └── text → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── text → string
│ └── url → string
│ ├── requires_password → true (optional)
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── text → string
│ └── data → bytes
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ └── text → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ └── text → string
│ ├── same_peer → true (optional)
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── text → string
│ ├── query → string
│ └── peer_types → Vector < InlineQueryPeerType > (optional)
│ ├── InlineQueryPeerTypePM
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ └── text → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ └── text → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── text → string
│ ├── fwd_text → string (optional)
│ ├── url → string
│ └── button_id → int
│ ├── request_write_access → true (optional)
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── text → string
│ ├── fwd_text → string (optional)
│ ├── url → string
│ └── bot → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ └── InputUserFromMessage
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── quiz → Bool (optional)
│ └── text → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── text → string
│ └── user_id → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ └── InputUserFromMessage
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── text → string
│ └── user_id → long
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── text → string
│ └── url → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── text → string
│ └── url → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── text → string
│ ├── button_id → int
│ ├── peer_type → RequestPeerType
│ │ ├── RequestPeerTypeUser
│ │ │ ├── bot → Bool (optional)
│ │ │ └── premium → Bool (optional)
│ │ ├── RequestPeerTypeChat
│ │ │ ├── creator → true (optional)
│ │ │ ├── bot_participant → true (optional)
│ │ │ ├── has_username → Bool (optional)
│ │ │ ├── forum → Bool (optional)
│ │ │ ├── user_admin_rights → ChatAdminRights (optional)
│ │ │ │ └── ChatAdminRights
│ │ │ └── bot_admin_rights → ChatAdminRights (optional)
│ │ │ └── ChatAdminRights
│ │ ├── RequestPeerTypeBroadcast
│ │ │ ├── creator → true (optional)
│ │ │ ├── has_username → Bool (optional)
│ │ │ ├── user_admin_rights → ChatAdminRights (optional)
│ │ │ │ └── ChatAdminRights
│ │ │ └── bot_admin_rights → ChatAdminRights (optional)
│ │ │ └── ChatAdminRights
│ │ └── RequestPeerTypeCreateBot
│ │ ├── bot_managed → true (optional)
│ │ ├── suggested_name → string (optional)
│ │ └── suggested_username → string (optional)
│ └── max_quantity → int
│ ├── name_requested → true (optional)
│ ├── username_requested → true (optional)
│ ├── photo_requested → true (optional)
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ │ ├── bg_primary → true (optional)
│ │ ├── bg_danger → true (optional)
│ │ ├── bg_success → true (optional)
│ │ └── icon → long (optional)
│ ├── text → string
│ ├── button_id → int
│ ├── peer_type → RequestPeerType
│ │ ├── RequestPeerTypeUser
│ │ │ ├── bot → Bool (optional)
│ │ │ └── premium → Bool (optional)
│ │ ├── RequestPeerTypeChat
│ │ │ ├── creator → true (optional)
│ │ │ ├── bot_participant → true (optional)
│ │ │ ├── has_username → Bool (optional)
│ │ │ ├── forum → Bool (optional)
│ │ │ ├── user_admin_rights → ChatAdminRights (optional)
│ │ │ │ └── ChatAdminRights
│ │ │ └── bot_admin_rights → ChatAdminRights (optional)
│ │ │ └── ChatAdminRights
│ │ ├── RequestPeerTypeBroadcast
│ │ │ ├── creator → true (optional)
│ │ │ ├── has_username → Bool (optional)
│ │ │ ├── user_admin_rights → ChatAdminRights (optional)
│ │ │ │ └── ChatAdminRights
│ │ │ └── bot_admin_rights → ChatAdminRights (optional)
│ │ │ └── ChatAdminRights
│ │ └── RequestPeerTypeCreateBot
│ │ ├── bot_managed → true (optional)
│ │ ├── suggested_name → string (optional)
│ │ └── suggested_username → string (optional)
│ └── max_quantity → int
├── style → KeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primary → true (optional)
│ ├── bg_danger → true (optional)
│ ├── bg_success → true (optional)
│ └── icon → long (optional)
├── text → string
└── copy_text → string

Example

await app.invoke(
    RequestWebViewButton(
        user_id=await app.resolve_user(chat_id),
        button=KeyboardButtonUrl(
            style=None,
            text="Open",
            url="https://google.com"
        ),
    )
)