pub struct SendLocation { /* private fields */ }Expand description
Builder for the sendLocation method.
Implementations§
Source§impl SendLocation
impl SendLocation
Sourcepub fn message_thread_id(self, id: i64) -> Self
pub fn message_thread_id(self, id: i64) -> Self
Forum topic thread ID.
Sourcepub fn direct_messages_topic_id(self, id: i64) -> Self
pub fn direct_messages_topic_id(self, id: i64) -> Self
Identifier of a direct messages chat topic.
Sourcepub fn horizontal_accuracy(self, v: f64) -> Self
pub fn horizontal_accuracy(self, v: f64) -> Self
Sets the radius of uncertainty for the location, in metres (0–1500).
Sourcepub fn live_period(self, v: u32) -> Self
pub fn live_period(self, v: u32) -> Self
Sets how long the location stays live, in seconds (60–86400).
Sourcepub fn proximity_alert_radius(self, v: u32) -> Self
pub fn proximity_alert_radius(self, v: u32) -> Self
Sets the maximum distance in metres for proximity alerts.
Sourcepub fn disable_notification(self, v: bool) -> Self
pub fn disable_notification(self, v: bool) -> Self
Sends the message silently — the recipient receives no notification sound.
Sourcepub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
pub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
Attaches a reply markup (inline keyboard, reply keyboard, etc.).
Trait Implementations§
Source§impl IntoFuture for SendLocation
impl IntoFuture for SendLocation
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SendLocation as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SendLocation as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for SendLocation
impl !RefUnwindSafe for SendLocation
impl Send for SendLocation
impl Sync for SendLocation
impl Unpin for SendLocation
impl UnsafeUnpin for SendLocation
impl !UnwindSafe for SendLocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more