KeyboardButton#
- class pyrogram.raw.base.KeyboardButton#
Bot or inline keyboard buttons
- Constructors:
This base type has 18 constructors available.
Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer.
Button to request a user to authorize via URL using Seamless Telegram Login.
Button that links directly to a user profile Use this constructor to send a keyboardButtonUserProfile button in an inline keyboard.
Bot keyboard button Available only in reply keyboards.
Button to buy a product Available only in inline keyboards.
Callback button Available only in inline keyboards.
Clipboard button Available only in inline keyboards.
Button to start a game Available only in inline keyboards.
Button to request a user's geolocation Available only in private chats, in reply keyboards.
Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer Available only in private chats, in reply keyboards.
Button to request a user's phone number Available only in private chats, in reply keyboards.
Button to request a poll from the user Available only in private chats, in reply keyboards.
Button to open a bot mini app using messages.requestSimpleWebView, without sending user information to the web app.
Button to switch the user to inline mode Available only in inline keyboards.
URL button Available only in inline keyboards.
Button to request a user to authorize via URL using Seamless Telegram Login.
Button that links directly to a user profile Available only in inline keyboards.
Button to open a bot mini app using messages.requestWebView, sending over user information after user confirmation.
- Functions:
This object can be returned by 1 function.
Fetch the peer request button a bot prepared for a Mini App with bots.requestWebViewButton, invoked when the Mini App emits a web_app_request_chat event, see here for more info.