[][src]Struct carapax::prelude::methods::SendLocation

pub struct SendLocation { /* fields omitted */ }

Send point on the map

Methods

impl SendLocation[src]

pub fn new<C>(chat_id: C, latitude: f32, longitude: f32) -> SendLocation where
    C: Into<ChatId>, 
[src]

Creates a new SendLocation with empty optional parameters

Arguments

  • chat_id - Unique identifier for the target chat
  • latitude - Latitude of the location
  • longitude - Longitude of the location

pub fn live_period(self, live_period: i64) -> SendLocation[src]

Period in seconds for which the location will be updated

Should be between 60 and 86400

pub fn disable_notification(self, disable_notification: bool) -> SendLocation[src]

Sends the message silently

Users will receive a notification with no sound

pub fn reply_to_message_id(self, reply_to_message_id: i64) -> SendLocation[src]

If the message is a reply, ID of the original message

pub fn reply_markup<R>(self, reply_markup: R) -> SendLocation where
    R: Into<ReplyMarkup>, 
[src]

Additional interface options

Trait Implementations

impl Debug for SendLocation[src]

impl Method for SendLocation[src]

type Response = Message

Type of successful result in API response

impl Clone for SendLocation[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Serialize for SendLocation[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T