class Hamilton::Types::InlineQueryResultVenue

Overview

Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use #input_message_content to send a message with the specified content instead of the venue.

Included Modules

Defined in:

types/inline_query_result.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 address : String #

Address of the venue.


def address=(address : String) #

Address of the venue.


def foursquare_id : String | Nil #

Foursquare identifier of the venue if known.


def foursquare_id=(foursquare_id : String | Nil) #

Foursquare identifier of the venue if known.


def foursquare_type : String | Nil #

Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)


def foursquare_type=(foursquare_type : String | Nil) #

Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)


def google_place_id : String | Nil #

Google Places identifier of the venue.


def google_place_id=(google_place_id : String | Nil) #

Google Places identifier of the venue.


def google_place_type : String | Nil #

Google Places type of the venue.


def google_place_type=(google_place_type : String | Nil) #

Google Places type of the venue.


def id : String #

Unique identifier for this result, 1-64 Bytes.


def id=(id : String) #

Unique identifier for this result, 1-64 Bytes.


def input_message_content : Hamilton::Types::InputMessageContent | Nil #

Content of the message to be sent instead of the venue.


def input_message_content=(input_message_content : Hamilton::Types::InputMessageContent | Nil) #

Content of the message to be sent instead of the venue.


def latitude : Float32 #

Latitude of the venue location in degrees.


def latitude=(latitude : Float32) #

Latitude of the venue location in degrees.


def longitude : Float32 #

Longitude of the venue location in degrees.


def longitude=(longitude : Float32) #

Longitude of the venue location in degrees.


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 reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil #

Inline keyboard attached to the message.


def reply_markup=(reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil) #

Inline keyboard attached to the message.


def thumbnail_height : Int32 | Nil #

Thumbnail height.


def thumbnail_height=(thumbnail_height : Int32 | Nil) #

Thumbnail height.


def thumbnail_url : String | Nil #

Url of the thumbnail for the result.


def thumbnail_url=(thumbnail_url : String | Nil) #

Url of the thumbnail for the result.


def thumbnail_width : Int32 | Nil #

Thumbnail width.


def thumbnail_width=(thumbnail_width : Int32 | Nil) #

Thumbnail width.


def title : String #

Title of the venue.


def title=(title : String) #

Title of the venue.


def type : String #

Type of the result, must be "venue".


def type=(type : String) #

Type of the result, must be "venue".