class Hamilton::Types::WebAppData

Overview

Describes data sent from a Web App to the bot.

Included Modules

Defined in:

types/web_app_data.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def button_text : 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.


def button_text=(button_text : 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.


def data : String #

The data. Be aware that a bad client can send arbitrary data in this field.


def data=(data : String) #

The data. Be aware that a bad client can send arbitrary data in this field.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.