class

Tourmaline::InlineQueryResultVenue

Inherits JSON::Serializable / Reference / Object

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. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Constructors

new(id : String, latitude : Float64, longitude : Float64, title : String, address : String, type : String = "venue", foursquare_id : String | Nil = nil, foursquare_type : String | Nil = nil, google_place_id : String | Nil = nil, google_place_type : String | Nil = nil, reply_markup : Tourmaline::InlineKeyboardMarkup | Nil = nil, input_message_content : Tourmaline::InputMessageContent | Nil = nil, thumbnail_url : String | Nil = nil, thumbnail_width : Int32 | Int64 | Nil = nil, thumbnail_height : Int32 | Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

address

Address of the venue

Source
address=(address : String)

Address of the venue

Source
foursquare_id

Optional. Foursquare identifier of the venue if known

Source
foursquare_id=(foursquare_id : String | Nil)

Optional. Foursquare identifier of the venue if known

Source
foursquare_type

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

Source
foursquare_type=(foursquare_type : String | Nil)

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

Source
google_place_id

Optional. Google Places identifier of the venue

Source
google_place_id=(google_place_id : String | Nil)

Optional. Google Places identifier of the venue

Source
google_place_type

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

Source
google_place_type=(google_place_type : String | Nil)

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

Source
id

Unique identifier for this result, 1-64 Bytes

Source
id=(id : String)

Unique identifier for this result, 1-64 Bytes

Source
input_message_content

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

Source
input_message_content=(input_message_content : Tourmaline::InputMessageContent | Nil)

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

Source
latitude

Latitude of the venue location in degrees

Source
latitude=(latitude : Float64)

Latitude of the venue location in degrees

Source
longitude

Longitude of the venue location in degrees

Source
longitude=(longitude : Float64)

Longitude of the venue location in degrees

Source
reply_markup

Optional. Inline keyboard attached to the message

Source
reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup | Nil)

Optional. Inline keyboard attached to the message

Source
thumbnail_height

Optional. Thumbnail height

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

Optional. Thumbnail height

Source
thumbnail_url

Optional. Url of the thumbnail for the result

Source
thumbnail_url=(thumbnail_url : String | Nil)

Optional. Url of the thumbnail for the result

Source
thumbnail_width

Optional. Thumbnail width

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

Optional. Thumbnail width

Source
title

Title of the venue

Source
title=(title : String)

Title of the venue

Source
type

Type of the result, must be venue

Source
type=(type : String)

Type of the result, must be venue

Source