Struct tbot::methods::EditMessageLocation
source · pub struct EditMessageLocation<'a> { /* private fields */ }
Expand description
Edits a live location sent by the bot itself.
Reflects the editMessageLiveLocation
method.
Implementations§
source§impl<'a> EditMessageLocation<'a>
impl<'a> EditMessageLocation<'a>
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 fn heading(self, heading: u16) -> Self
pub fn heading(self, heading: u16) -> Self
Configures the direction in which the user is headed. The value must be
in range 1..=360
. Reflects the heading
parameter.
Panics
Panics if heading
is not in range 1..=360
.
sourcepub fn proximity_alert_radius(self, radius: u32) -> Self
pub fn proximity_alert_radius(self, radius: u32) -> Self
Configures the maximum distance for proximity alerts about a user
approaching another, in meters. The value must be in range
1..=100_000
. Reflects the proximity_alert_radius
paramter.
Panics
Panics if the value is not in range 1..=100_000
.
sourcepub fn reply_markup(self, markup: Keyboard) -> Self
pub fn reply_markup(self, markup: Keyboard) -> Self
Configures an inline keyboard for the message.
Reflects the reply_markup
parameter.
source§impl EditMessageLocation<'_>
impl EditMessageLocation<'_>
sourcepub async fn call(self) -> Result<Message, MethodCall>
pub async fn call(self) -> Result<Message, MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for EditMessageLocation<'a>
impl<'a> Clone for EditMessageLocation<'a>
source§fn clone(&self) -> EditMessageLocation<'a>
fn clone(&self) -> EditMessageLocation<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more