telegram.WebAppData¶
-
class
telegram.
WebAppData
(data, button_text, **_kwargs)¶ Bases:
telegram.base.TelegramObject
Contains data sent from a Web App to the bot.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
data
andbutton_text
are equal.New in version 13.12.
- Parameters
data (
str
) – The data. Be aware that a bad client can send arbitrary data in this field.button_text (
str
) – Text of theweb_app
keyboard button, from which the Web App was opened.
-
data
¶ The data. Be aware that a bad client can send arbitrary data in this field.
- Type
str
Text of the
web_app
keyboard button, from which the Web App was opened.Warning
Be aware that a bad client can send arbitrary data in this field.
- Type
str