Struct tbot::methods::SendLocation
source · pub struct SendLocation<'a> { /* private fields */ }
Expand description
Sends a location.
Reflects the sendLocation
method.
Implementations§
source§impl<'a> SendLocation<'a>
impl<'a> SendLocation<'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 const fn live_location(self, live_location: Live) -> Self
pub const fn live_location(self, live_location: Live) -> Self
Confgiures a live location.
sourcepub const fn is_notification_disabled(self, is_disabled: bool) -> Self
pub const fn is_notification_disabled(self, is_disabled: bool) -> Self
Configures whether the message is sent silently.
Reflects the disable_notification
parameter.
sourcepub const fn in_reply_to(self, id: Id) -> Self
pub const fn in_reply_to(self, id: Id) -> Self
Configures which message this location is sent in reply to.
Reflects the reply_to_message_id
parameter.
sourcepub const fn allow_sending_without_reply(self) -> Self
pub const fn allow_sending_without_reply(self) -> Self
Configures whether this message should be sent even
if the replied-to message is not found.
Reflects the allow_sending_without_reply
parameter.
sourcepub fn reply_markup(self, markup: impl Into<Any>) -> Self
pub fn reply_markup(self, markup: impl Into<Any>) -> Self
Configures a keyboard for the message.
Reflects the reply_markup
parameter.
source§impl SendLocation<'_>
impl SendLocation<'_>
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 SendLocation<'a>
impl<'a> Clone for SendLocation<'a>
source§fn clone(&self) -> SendLocation<'a>
fn clone(&self) -> SendLocation<'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