send_web_view_data()¶
- async Client.send_web_view_data()¶
Send data from a web app button to a bot.
Usable by Users Bots- Parameters:
bot_id (
int|str) – The bot to send data to.button_text (
str) – The text of the button that was clicked.data (
str) – The data to send to the bot.random_id (
int, optional) – Random ID for deduplication.
- Returns:
Updates– The updates object.
Example
await app.send_web_view_data(bot_id, "Submit", '{"key": "value"}')