Struct tbot::types::input_message_content::Location
source · pub struct Location { /* private fields */ }
Expand description
Represents an InputLocationMessageContent
.
Implementations§
source§impl Location
impl 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.