peyk.platforms.bale.types.web_app_data¶
Classes
|
Data sent from a Mini App to the bot. |
- class peyk.platforms.bale.types.web_app_data.WebAppData(data: str)[source]¶
Bases:
objectData sent from a Mini App to the bot.
- data: str¶
- classmethod from_dict(data: dict | None) WebAppData | None[source]¶
Parse raw Bale data into
WebAppData.- Parameters:
data (Optional[dict]) – Raw API object or
None.- Returns:
Parsed object or
None.- Return type:
Optional[WebAppData]
- Raises:
KeyError – If a required raw field is missing.