WebAppData class

Describes data sent from a Web App to the bot.

Constructors

WebAppData({required String data, required String buttonText})
Constructs a WebAppData object
const
WebAppData.fromJson(Map<String, dynamic> json)
Creates a WebAppData object from JSON object
factory

Properties

buttonText String
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.
final
data String
The data. Be aware that a bad client can send arbitrary data in this field.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a WebAppData object to JSON object
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited