pub struct Location { /* private fields */ }
Expand description
Represents an InlineQueryResultLocation
.
Implementations§
source§impl Location
impl Location
sourcepub fn new(title: impl Into<String>, (latitude, longitude): (f64, f64)) -> Self
pub fn new(title: impl Into<String>, (latitude, longitude): (f64, f64)) -> Self
Constructs a Location
.
sourcepub fn horizontal_accuracy(self, horizontal_accuracy: f64) -> Self
pub fn horizontal_accuracy(self, horizontal_accuracy: f64) -> Self
Configures the radius of uncertainty for the location in meters, in range 1.0..=1500.0
.
Panics
Panics if horizontal_accuracy
is not in range 1.0..=1500.0
.
sourcepub const fn live_location(self, live_location: Live) -> Self
pub const fn live_location(self, live_location: Live) -> Self
Configures a live location.
sourcepub fn input_message_content(
self,
content: impl Into<InputMessageContent>
) -> Self
pub fn input_message_content(
self,
content: impl Into<InputMessageContent>
) -> Self
Configures the content shown after sending the message.