peyk.platforms.telegram.types.web_app_data

Classes

WebAppData(data, button_text)

Describes data sent from a Web App to the bot.

class peyk.platforms.telegram.types.web_app_data.WebAppData(data: str, button_text: str)[source]

Bases: object

Describes data sent from a Web App to the bot.

Variables:
  • data (str) – The data. Be aware that a bad client can send arbitrary data in this field.

  • 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.

data: str
button_text: str
classmethod from_dict(data)