WebAppData¶
- class aiogram.types.web_app_data.WebAppData(*, data: str, button_text: str, **extra_data: Any)[source]¶
Describes data sent from a Web App to the bot.
Source: https://core.telegram.org/bots/api#webappdata
- data: str¶
The data. Be aware that a bad client can send arbitrary data in this field.
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_post_init(context: Any, /) None ¶
We need to both initialize private attributes and call the user-defined model_post_init method.
- button_text: str¶
Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field.