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.
Constructors
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)
SourceInstance methods
heading
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
SourceOptional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
Sourcehorizontal_accuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
Sourcehorizontal_accuracy=(horizontal_accuracy :
Float64 |
Nil)
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
Sourceid
Unique identifier for this result, 1-64 Bytes
SourceUnique identifier for this result, 1-64 Bytes
Sourceinput_message_content
Optional. Content of the message to be sent instead of the location
SourceOptional. Content of the message to be sent instead of the location
Sourcelatitude
Location latitude in degrees
SourceLocation latitude in degrees
Sourcelive_period
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
SourceOptional. Period in seconds for which the location can be updated, should be between 60 and 86400.
Sourcelongitude
Location longitude in degrees
SourceLocation longitude in degrees
Sourceproximity_alert_radius
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.
Sourceproximity_alert_radius=(proximity_alert_radius :
Int32 |
Int64 |
Nil)
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.
Sourcereply_markup
Optional. Inline keyboard attached to the message
SourceOptional. Inline keyboard attached to the message
Sourcethumbnail_height
Optional. Thumbnail height
Sourcethumbnail_height=(thumbnail_height :
Int32 |
Int64 |
Nil)
Optional. Thumbnail height
Sourcethumbnail_url
Optional. Url of the thumbnail for the result
Sourcethumbnail_url=(thumbnail_url :
String |
Nil)
Optional. Url of the thumbnail for the result
Sourcethumbnail_width
Optional. Thumbnail width
Sourcethumbnail_width=(thumbnail_width :
Int32 |
Int64 |
Nil)
Optional. Thumbnail width
Sourcetype
Type of the result, must be location
SourceType of the result, must be location
Source