[−][src]Struct tgbot::methods::EditMessageCaption
Edit caption of message sent by the bot or via the bot (for inline bots)
Methods
impl EditMessageCaption
[src]
pub fn new<C: Into<ChatId>>(chat_id: C, message_id: Integer) -> Self
[src]
Creates a new EditMessageCaption
Arguments
- chat_id - Unique identifier for the target chat
- message_id - Identifier of the sent message
pub fn with_inline_message_id<S: Into<String>>(inline_message_id: S) -> Self
[src]
pub fn caption<S: Into<String>>(self, caption: S) -> Self
[src]
New caption of the message
pub fn parse_mode(self, parse_mode: ParseMode) -> Self
[src]
Parse mode
pub fn reply_markup<I: Into<InlineKeyboardMarkup>>(
self,
reply_markup: I
) -> Self
[src]
self,
reply_markup: I
) -> Self
Inline keyboard
Trait Implementations
impl Clone for EditMessageCaption
[src]
fn clone(&self) -> EditMessageCaption
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EditMessageCaption
[src]
impl Method for EditMessageCaption
[src]
type Response = EditMessageResult
Type of successful result in API response
fn into_request(self) -> Request
[src]
impl Serialize for EditMessageCaption
[src]
Auto Trait Implementations
impl RefUnwindSafe for EditMessageCaption
impl Send for EditMessageCaption
impl Sync for EditMessageCaption
impl Unpin for EditMessageCaption
impl UnwindSafe for EditMessageCaption
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>,