class
Hamilton::Types::InlineQueryResultLocation
- Hamilton::Types::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.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/inline_query_result.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#heading : Int32 | Nil
For live locations, a direction in which the user is moving, in degrees.
-
#heading=(heading : Int32 | Nil)
For live locations, a direction in which the user is moving, in degrees.
-
#horizontal_accuracy : Float32 | Nil
The radius of uncertainty for the location, measured in meters; 0-1500.
-
#horizontal_accuracy=(horizontal_accuracy : Float32 | Nil)
The radius of uncertainty for the location, measured in meters; 0-1500.
-
#id : String
Unique identifier for this result, 1-64 Bytes.
-
#id=(id : String)
Unique identifier for this result, 1-64 Bytes.
-
#input_message_content : Hamilton::Types::InputMessageContent | Nil
Content of the message to be sent instead of the location.
-
#input_message_content=(input_message_content : Hamilton::Types::InputMessageContent | Nil)
Content of the message to be sent instead of the location.
-
#latitude : Float32
Location latitude in degrees.
-
#latitude=(latitude : Float32)
Location latitude in degrees.
-
#live_period : Int32 | Nil
Period in seconds during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.
-
#live_period=(live_period : Int32 | Nil)
Period in seconds during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.
-
#longitude : Float32
Location longitude in degrees.
-
#longitude=(longitude : Float32)
Location longitude in degrees.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#proximity_alert_radius : Int32 | Nil
For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters.
-
#proximity_alert_radius=(proximity_alert_radius : Int32 | Nil)
For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters.
-
#reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil
Inline keyboard attached to the message.
-
#reply_markup=(reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil)
Inline keyboard attached to the message.
-
#thumbnail_height : Int32 | Nil
Thumbnail height.
-
#thumbnail_height=(thumbnail_height : Int32 | Nil)
Thumbnail height.
-
#thumbnail_url : String | Nil
Url of the thumbnail for the result.
-
#thumbnail_url=(thumbnail_url : String | Nil)
Url of the thumbnail for the result.
-
#thumbnail_width : Int32 | Nil
Thumbnail width.
-
#thumbnail_width=(thumbnail_width : Int32 | Nil)
Thumbnail width.
-
#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".
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
The radius of uncertainty for the location, measured in meters; 0-1500.
The radius of uncertainty for the location, measured in meters; 0-1500.
Content of the message to be sent instead of the location.
Content of the message to be sent instead of the location.
Period in seconds during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.
Period in seconds during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.
For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
Inline keyboard attached to the message.
Inline keyboard attached to the message.