ReplyInlineMarkup

class pyrogram.raw.types.ReplyInlineMarkup

Bot or inline keyboard

Constructor of ReplyMarkup.

Details:
  • Layer: 227

  • ID: 48A30254

Parameters:

rows (List of KeyboardButtonRow) – Bot or inline keyboard rows

TL Schema

replyInlineMarkup#48a30254
rows:Vector<KeyboardButtonRow>

= ReplyMarkup

Parameter Tree

ReplyInlineMarkup
└── rows → Vector < KeyboardButtonRow >
└── buttons → Vector < KeyboardButton >
├── KeyboardButton
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ └── text → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── text → string
│ └── url → string
│ ├── requires_password → true (optional)
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── text → string
│ └── data → bytes
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ └── text → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ └── text → string
│ ├── same_peer → true (optional)
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── text → string
│ ├── query → string
│ └── peer_types → Vector < InlineQueryPeerType > (optional)
│ ├── InlineQueryPeerTypePM
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ └── text → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ └── text → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── text → string
│ ├── fwd_text → string (optional)
│ ├── url → string
│ └── button_id → int
│ ├── request_write_access → true (optional)
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── text → string
│ ├── fwd_text → string (optional)
│ ├── url → string
│ └── bot → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ └── InputUserFromMessage
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── quiz → Bool (optional)
│ └── text → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── text → string
│ └── user_id → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ └── InputUserFromMessage
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── text → string
│ └── user_id → long
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── text → string
│ └── url → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── text → string
│ └── url → string
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── text → string
│ ├── button_id → int
│ ├── peer_type → RequestPeerType
│ │ ├── RequestPeerTypeUser
│ │ ├── RequestPeerTypeChat
│ │ ├── RequestPeerTypeBroadcast
│ │ └── RequestPeerTypeCreateBot
│ └── max_quantity → int
│ ├── name_requested → true (optional)
│ ├── username_requested → true (optional)
│ ├── photo_requested → true (optional)
│ ├── style → KeyboardButtonStyle (optional)
│ │ └── KeyboardButtonStyle
│ ├── text → string
│ ├── button_id → int
│ ├── peer_type → RequestPeerType
│ │ ├── RequestPeerTypeUser
│ │ ├── RequestPeerTypeChat
│ │ ├── RequestPeerTypeBroadcast
│ │ └── RequestPeerTypeCreateBot
│ └── max_quantity → int
├── style → KeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
├── text → string
└── copy_text → string

Example

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