class Hamilton::Types::InlineQueryResultsButton

Overview

This object represents a button to be shown above inline query results. You must use exactly one of the optional fields.

Included Modules

Defined in:

types/inline_query_results_button.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 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.


def start_parameter : String | Nil #

Deep-linking parameter for the /start message sent to the bot when a user presses the button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.


def start_parameter=(start_parameter : String | Nil) #

Deep-linking parameter for the /start message sent to the bot when a user presses the button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.


def text : String #

Label text on the button.


def text=(text : String) #

Label text on the button.


def web_app : Hamilton::Types::WebAppInfo | Nil #

Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App.


def web_app=(web_app : Hamilton::Types::WebAppInfo | Nil) #

Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App.