KeyboardButtonRow

class pyrogram.raw.base.KeyboardButtonRow

Bot or inline keyboard rows

Constructors:

This base type has 1 constructor available.

KeyboardButtonRow

Inline keyboard row

TL Schema

keyboardButtonRow#77608b83
buttons:Vector<KeyboardButton>

= KeyboardButtonRow

Parameter Tree

KeyboardButtonRow
└── buttons → Vector < 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

KeyboardButtonRow(
    buttons=[
            KeyboardButtonUrl(
                style=None,
                text="Open",
                url="https://google.com"
            )
        ],
)