KeyboardButtonSimpleWebView#
- class pyrogram.raw.types.KeyboardButtonSimpleWebView#
Button to open a bot mini app using messages.requestSimpleWebView, without sending user information to the web app. Can only be sent or received as part of a reply keyboard, use keyboardButtonWebView for inline keyboards. When pressed, clients must open a Keyboard Button Mini App using messages.requestSimpleWebView, passing url to messages.requestSimpleWebView.url.
Constructor of
KeyboardButton.- Details:
Layer:
227ID:
E15C4370
- Parameters:
text (
str) – Button texturl (
str) – Web app URLstyle (
KeyboardButtonStyle, optional) – Button style, see here » for more info on button styles.
- 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.