pub struct StopMessageLiveLocation {
pub chat_id: ChatId,
pub message_id: i64,
pub reply_markup: Option<InlineKeyboardMarkup>,
}Expand description
Use this method to stop updating a live location message before live_period expires. On success, the edited Message is returned.
Fields§
§chat_id: ChatIdUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_id: i64Identifier of the message to edit
reply_markup: Option<InlineKeyboardMarkup>A JSON-serialized object for a new inline keyboard.
Implementations§
Source§impl StopMessageLiveLocation
impl StopMessageLiveLocation
Sourcepub fn from_chat(chat_id: impl Into<ChatId>, message_id: i64) -> Self
pub fn from_chat(chat_id: impl Into<ChatId>, message_id: i64) -> Self
Create a new stopMessageLiveLocation request from chat message id
Sourcepub fn with_reply_markup(self, markup: impl Into<InlineKeyboardMarkup>) -> Self
pub fn with_reply_markup(self, markup: impl Into<InlineKeyboardMarkup>) -> Self
Set reply markup
Trait Implementations§
Source§impl Clone for StopMessageLiveLocation
impl Clone for StopMessageLiveLocation
Source§fn clone(&self) -> StopMessageLiveLocation
fn clone(&self) -> StopMessageLiveLocation
Returns a duplicate 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 moreSource§impl Serialize for StopMessageLiveLocation
impl Serialize for StopMessageLiveLocation
impl JsonMethod for StopMessageLiveLocation
Auto Trait Implementations§
impl Freeze for StopMessageLiveLocation
impl RefUnwindSafe for StopMessageLiveLocation
impl Send for StopMessageLiveLocation
impl Sync for StopMessageLiveLocation
impl Unpin for StopMessageLiveLocation
impl UnwindSafe for StopMessageLiveLocation
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