Skip to content

class Tourmaline::InlineQueryResultVenue
inherits Reference #

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

JSON::Serializable

Constructors#

.new(id, latitude, longitude, title, address, type = "venue", foursquare_id : String? = nil, foursquare_type : String? = nil, google_place_id : String? = nil, google_place_type : String? = nil, reply_markup : Tourmaline::InlineKeyboardMarkup? = nil, input_message_content : Tourmaline::InputMessageContent? = nil, thumbnail_url : String? = nil, thumbnail_width : Int32 | Int64 | Nil = nil, thumbnail_height : Int32 | Int64 | Nil = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#address : String #

Address of the venue

View source

#address=(address : String) #

Address of the venue

View source

#foursquare_id : String? #

Optional. Foursquare identifier of the venue if known

View source

#foursquare_id=(foursquare_id : String?) #

Optional. Foursquare identifier of the venue if known

View source

#foursquare_type : String? #

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

View source

#foursquare_type=(foursquare_type : String?) #

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

View source

#google_place_id : String? #

Optional. Google Places identifier of the venue

View source

#google_place_id=(google_place_id : String?) #

Optional. Google Places identifier of the venue

View source

#google_place_type : String? #

Optional. Google Places type of the venue. (See supported types.)

View source

#google_place_type=(google_place_type : String?) #

Optional. Google Places type of the venue. (See supported types.)

View source

#id : String #

Unique identifier for this result, 1-64 Bytes

View source

#id=(id : String) #

Unique identifier for this result, 1-64 Bytes

View source

#input_message_content : Tourmaline::InputMessageContent? #

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

View source

#input_message_content=(input_message_content : Tourmaline::InputMessageContent?) #

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

View source

#latitude : Float64 #

Latitude of the venue location in degrees

View source

#latitude=(latitude : Float64) #

Latitude of the venue location in degrees

View source

#longitude : Float64 #

Longitude of the venue location in degrees

View source

#longitude=(longitude : Float64) #

Longitude of the venue location in degrees

View source

#reply_markup : Tourmaline::InlineKeyboardMarkup? #

Optional. Inline keyboard attached to the message

View source

#reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup?) #

Optional. Inline keyboard attached to the message

View source

#thumbnail_height : Int32 | Int64 | Nil #

Optional. Thumbnail height

View source

#thumbnail_height=(thumbnail_height : Int32 | Int64 | Nil) #

Optional. Thumbnail height

View source

#thumbnail_url : String? #

Optional. Url of the thumbnail for the result

View source

#thumbnail_url=(thumbnail_url : String?) #

Optional. Url of the thumbnail for the result

View source

#thumbnail_width : Int32 | Int64 | Nil #

Optional. Thumbnail width

View source

#thumbnail_width=(thumbnail_width : Int32 | Int64 | Nil) #

Optional. Thumbnail width

View source

#title : String #

Title of the venue

View source

#title=(title : String) #

Title of the venue

View source

#type : String #

Type of the result, must be venue

View source

#type=(type : String) #

Type of the result, must be venue

View source