KeyboardButton

class pyrogram.raw.base.KeyboardButton

Bot or inline keyboard buttons

Constructors:

This base type has 18 constructors available.

InputKeyboardButtonRequestPeer

{schema}

InputKeyboardButtonUrlAuth

Button to request a user to authorize via URL using Seamless Telegram Login.

InputKeyboardButtonUserProfile

Button that links directly to a user profile

KeyboardButton

Bot keyboard button

KeyboardButtonBuy

Button to buy a product

KeyboardButtonCallback

Callback button

KeyboardButtonCopy

Telegram API type.

KeyboardButtonGame

Button to start a game

KeyboardButtonRequestGeoLocation

Button to request a user's geolocation

KeyboardButtonRequestPeer

Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer

KeyboardButtonRequestPhone

Button to request a user's phone number

KeyboardButtonRequestPoll

A button that allows the user to create and send a poll when pressed; available only in private

KeyboardButtonSimpleWebView

Button to open a bot mini app using messages.requestSimpleWebView, without sending user information to the web app.

KeyboardButtonSwitchInline

Button to force a user to switch to inline mode: pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field.

KeyboardButtonUrl

URL button

KeyboardButtonUrlAuth

Button to request a user to authorize via URL using Seamless Telegram Login.

KeyboardButtonUserProfile

Button that links directly to a user profile

KeyboardButtonWebView

Button to open a bot mini app using messages.requestWebView, sending over user information after user confirmation.