Struct botapi::gen_types::InlineQueryResultLocation
source · pub struct InlineQueryResultLocation { /* private fields */ }
Expand description
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.
Implementations§
source§impl InlineQueryResultLocation
impl InlineQueryResultLocation
pub fn noskip(self) -> NoSkipInlineQueryResultLocation
source§impl InlineQueryResultLocation
impl InlineQueryResultLocation
pub fn new(id: String, latitude: f64, longitude: f64, title: String) -> Self
sourcepub fn get_tg_type<'a>(&'a self) -> Cow<'a, str>
pub fn get_tg_type<'a>(&'a self) -> Cow<'a, str>
Type of the result, must be location
sourcepub fn get_tg_type_ref<'a>(&'a self) -> &'a str
pub fn get_tg_type_ref<'a>(&'a self) -> &'a str
Type of the result, must be location
sourcepub fn get_id_ref<'a>(&'a self) -> &'a str
pub fn get_id_ref<'a>(&'a self) -> &'a str
Unique identifier for this result, 1-64 Bytes
sourcepub fn get_latitude<'a>(&'a self) -> f64
pub fn get_latitude<'a>(&'a self) -> f64
Location latitude in degrees
sourcepub fn get_latitude_ref<'a>(&'a self) -> f64
pub fn get_latitude_ref<'a>(&'a self) -> f64
Location latitude in degrees
sourcepub fn get_longitude<'a>(&'a self) -> f64
pub fn get_longitude<'a>(&'a self) -> f64
Location longitude in degrees
sourcepub fn get_longitude_ref<'a>(&'a self) -> f64
pub fn get_longitude_ref<'a>(&'a self) -> f64
Location longitude in degrees
sourcepub fn get_title_ref<'a>(&'a self) -> &'a str
pub fn get_title_ref<'a>(&'a self) -> &'a str
Location title
sourcepub fn get_horizontal_accuracy<'a>(&'a self) -> Option<f64>
pub fn get_horizontal_accuracy<'a>(&'a self) -> Option<f64>
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
sourcepub fn get_horizontal_accuracy_ref<'a>(&'a self) -> Option<f64>
pub fn get_horizontal_accuracy_ref<'a>(&'a self) -> Option<f64>
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
sourcepub fn get_live_period<'a>(&'a self) -> Option<i64>
pub fn get_live_period<'a>(&'a self) -> Option<i64>
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
sourcepub fn get_live_period_ref<'a>(&'a self) -> Option<i64>
pub fn get_live_period_ref<'a>(&'a self) -> Option<i64>
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
sourcepub fn get_heading<'a>(&'a self) -> Option<i64>
pub fn get_heading<'a>(&'a self) -> Option<i64>
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
sourcepub fn get_heading_ref<'a>(&'a self) -> Option<i64>
pub fn get_heading_ref<'a>(&'a self) -> Option<i64>
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
sourcepub fn get_proximity_alert_radius<'a>(&'a self) -> Option<i64>
pub fn get_proximity_alert_radius<'a>(&'a self) -> Option<i64>
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.
sourcepub fn get_proximity_alert_radius_ref<'a>(&'a self) -> Option<i64>
pub fn get_proximity_alert_radius_ref<'a>(&'a self) -> Option<i64>
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.
sourcepub fn get_reply_markup<'a>(&'a self) -> Option<Cow<'a, InlineKeyboardMarkup>>
pub fn get_reply_markup<'a>(&'a self) -> Option<Cow<'a, InlineKeyboardMarkup>>
Optional. Inline keyboard attached to the message
sourcepub fn get_reply_markup_ref<'a>(&'a self) -> Option<&'a InlineKeyboardMarkup>
pub fn get_reply_markup_ref<'a>(&'a self) -> Option<&'a InlineKeyboardMarkup>
Optional. Inline keyboard attached to the message
sourcepub fn get_input_message_content<'a>(
&'a self
) -> Option<Cow<'a, InputMessageContent>>
pub fn get_input_message_content<'a>( &'a self ) -> Option<Cow<'a, InputMessageContent>>
Optional. Content of the message to be sent instead of the location
sourcepub fn get_input_message_content_ref<'a>(
&'a self
) -> Option<&'a InputMessageContent>
pub fn get_input_message_content_ref<'a>( &'a self ) -> Option<&'a InputMessageContent>
Optional. Content of the message to be sent instead of the location
sourcepub fn get_thumbnail_url<'a>(&'a self) -> Option<Cow<'a, str>>
pub fn get_thumbnail_url<'a>(&'a self) -> Option<Cow<'a, str>>
Optional. Url of the thumbnail for the result
sourcepub fn get_thumbnail_url_ref<'a>(&'a self) -> Option<&'a str>
pub fn get_thumbnail_url_ref<'a>(&'a self) -> Option<&'a str>
Optional. Url of the thumbnail for the result
sourcepub fn get_thumbnail_width<'a>(&'a self) -> Option<i64>
pub fn get_thumbnail_width<'a>(&'a self) -> Option<i64>
Optional. Thumbnail width
sourcepub fn get_thumbnail_width_ref<'a>(&'a self) -> Option<i64>
pub fn get_thumbnail_width_ref<'a>(&'a self) -> Option<i64>
Optional. Thumbnail width
sourcepub fn get_thumbnail_height<'a>(&'a self) -> Option<i64>
pub fn get_thumbnail_height<'a>(&'a self) -> Option<i64>
Optional. Thumbnail height
sourcepub fn get_thumbnail_height_ref<'a>(&'a self) -> Option<i64>
pub fn get_thumbnail_height_ref<'a>(&'a self) -> Option<i64>
Optional. Thumbnail height
Trait Implementations§
source§impl Clone for InlineQueryResultLocation
impl Clone for InlineQueryResultLocation
source§fn clone(&self) -> InlineQueryResultLocation
fn clone(&self) -> InlineQueryResultLocation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more