class Tourmaline::InlineQueryResultLocation
 
  - Tourmaline::InlineQueryResultLocation
 - Reference
 - Object
 
Overview
Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
Included Modules
- JSON::Serializable
 
Defined in:
tourmaline/types/api.crConstructors
- .new(id : String, latitude : Float64, longitude : Float64, title : String, type : String = "location", horizontal_accuracy : Float64 | Nil = nil, live_period : Int32 | Int64 | Nil = nil, heading : Int32 | Int64 | Nil = nil, proximity_alert_radius : Int32 | Int64 | 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)
 - .new(pull : JSON::PullParser)
 
Instance Method Summary
- 
        #heading : Int32 | Int64 | Nil
        
          
Optional.
 - 
        #heading=(heading : Int32 | Int64 | Nil)
        
          
Optional.
 - 
        #horizontal_accuracy : Float64 | Nil
        
          
Optional.
 - 
        #horizontal_accuracy=(horizontal_accuracy : Float64 | Nil)
        
          
Optional.
 - 
        #id : String
        
          
Unique identifier for this result, 1-64 Bytes
 - 
        #id=(id : String)
        
          
Unique identifier for this result, 1-64 Bytes
 - 
        #input_message_content : Tourmaline::InputMessageContent | Nil
        
          
Optional.
 - 
        #input_message_content=(input_message_content : Tourmaline::InputMessageContent | Nil)
        
          
Optional.
 - 
        #latitude : Float64
        
          
Location latitude in degrees
 - 
        #latitude=(latitude : Float64)
        
          
Location latitude in degrees
 - 
        #live_period : Int32 | Int64 | Nil
        
          
Optional.
 - 
        #live_period=(live_period : Int32 | Int64 | Nil)
        
          
Optional.
 - 
        #longitude : Float64
        
          
Location longitude in degrees
 - 
        #longitude=(longitude : Float64)
        
          
Location longitude in degrees
 - 
        #proximity_alert_radius : Int32 | Int64 | Nil
        
          
Optional.
 - 
        #proximity_alert_radius=(proximity_alert_radius : Int32 | Int64 | Nil)
        
          
Optional.
 - 
        #reply_markup : Tourmaline::InlineKeyboardMarkup | Nil
        
          
Optional.
 - 
        #reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup | Nil)
        
          
Optional.
 - 
        #thumbnail_height : Int32 | Int64 | Nil
        
          
Optional.
 - 
        #thumbnail_height=(thumbnail_height : Int32 | Int64 | Nil)
        
          
Optional.
 - 
        #thumbnail_url : String | Nil
        
          
Optional.
 - 
        #thumbnail_url=(thumbnail_url : String | Nil)
        
          
Optional.
 - 
        #thumbnail_width : Int32 | Int64 | Nil
        
          
Optional.
 - 
        #thumbnail_width=(thumbnail_width : Int32 | Int64 | Nil)
        
          
Optional.
 - 
        #title : String
        
          
Location title
 - 
        #title=(title : String)
        
          
Location title
 - 
        #type : String
        
          
Type of the result, must be location
 - 
        #type=(type : String)
        
          
Type of the result, must be location
 
Constructor Detail
Instance Method Detail
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
Optional. Content of the message to be sent instead of the location
Optional. Content of the message to be sent instead of the location
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
Optional. Inline keyboard attached to the message
Optional. Inline keyboard attached to the message