[−][src]Struct tgbot::methods::EditMessageLiveLocation
Edit live location messages sent by the bot or via the bot (for inline bots)
A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation
Methods
impl EditMessageLiveLocation
[src]
pub fn new<C: Into<ChatId>>(
chat_id: C,
message_id: Integer,
latitude: Float,
longitude: Float
) -> Self
[src]
chat_id: C,
message_id: Integer,
latitude: Float,
longitude: Float
) -> Self
Creates a new EditMessageLiveLocation
Arguments
- chat_id - Unique identifier for the target chat
- message_id - Identifier of the sent message
- latitude - Latitude of new location
- longitude Longitude of new location
pub fn with_inline_message_id<S: Into<String>>(
inline_message_id: S,
latitude: Float,
longitude: Float
) -> Self
[src]
inline_message_id: S,
latitude: Float,
longitude: Float
) -> Self
Creates a new EditMessageLiveLocation
Arguments
- inline_message_id - Identifier of the inline message
- latitude - Latitude of new location
- longitude Longitude of new location
pub fn reply_markup<I: Into<InlineKeyboardMarkup>>(
self,
reply_markup: I
) -> Self
[src]
self,
reply_markup: I
) -> Self
New inline keyboard
Trait Implementations
impl Clone for EditMessageLiveLocation
[src]
fn clone(&self) -> EditMessageLiveLocation
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EditMessageLiveLocation
[src]
impl Method for EditMessageLiveLocation
[src]
type Response = EditMessageResult
Type of successful result in API response
fn into_request(self) -> Request
[src]
impl Serialize for EditMessageLiveLocation
[src]
Auto Trait Implementations
impl RefUnwindSafe for EditMessageLiveLocation
impl Send for EditMessageLiveLocation
impl Sync for EditMessageLiveLocation
impl Unpin for EditMessageLiveLocation
impl UnwindSafe for EditMessageLiveLocation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,